0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JuliaのPlotsでフォントが小さすぎる

Last updated at Posted at 2018-10-27

 Juliaをjupyter notebookで使い、Plotsで作図するとフォントが小さすぎる現象に陥りました。これはPlotsでGRを使う時にのみ起こるようです。しかもブラウザがChromeだと起こりません。私はWindows10のデフォルトブラウザをEdgeからChromeに変えることでこの問題を回避しました。まだ日本語が表示できない問題を抱えていますが、当面はこれで行こうと思います。

Tiny fonts when using GR (Plots or not) in Jupyter
https://discourse.julialang.org/t/tiny-fonts-when-using-gr-plots-or-not-in-jupyter/16085

using Plots
gr()
x=[1,2,3,4,5]
y=[5,8,3,1,3]

plot(x,y, 
    seriestype=:scatter,
    title="My Scatter Plot", 
    lab = "test",
    xlabel = "X", 
    xlims = (0,6), 
    xticks = 0:1:6, 
    xscale = :identity,
    ylabel = "Y", 
    ylims = (0,10), 
    yticks = 0:1:10, 
    xtickfont = font(20, "Courier"))

##Edge

image.png

##Chrome
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?