Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny axis labels when using GR with Plots in IJulia #1746

Open
rdeits opened this issue Sep 15, 2018 · 5 comments
Open

Tiny axis labels when using GR with Plots in IJulia #1746

rdeits opened this issue Sep 15, 2018 · 5 comments

Comments

@rdeits
Copy link
Contributor

rdeits commented Sep 15, 2018

When viewing a plot from Plots.jl with the GR backend in IJulia, the axis labels end up unreadably small, e.g.:

screenshot from 2018-09-15 13-16-21

I can reproduce the issue using both the latest releases of Plots.jl and GR.jl, and it persists when using the master branches of Plots.jl and GR.jl (even after manually rebuilding GR.jl). It looks like there have been some resolution handling changes in GR recently, so perhaps this explains the issue?

Saving the figure to .png or .svg results in normally-sized axis labels.

@mkborregaard
Copy link
Member

It sounds likely to be related to the resolution changes, yes

@mkborregaard
Copy link
Member

It's the eternal issue with Plots that there are so many components that need to interlock - here the GR runtime, GR, Plots, IJulia, svg...

@tkf
Copy link
Contributor

tkf commented Oct 12, 2018

Is there a reason why SVG is the default? FYI PyPlot.jl avoids SVG because it's problematic:

disable SVG output by default, since displaying large SVGs (large datasets) in IJulia is slow, and browser SVG display is buggy. (Similar to IPython.)

--- https://github.com/JuliaPy/PyPlot.jl/blob/daadae458ecb696e29c45636d91a9e7b7eddc246/src/PyPlot.jl#L88

@mkborregaard
Copy link
Member

That's not the issue here, though. Normally svg looks perfectly fine, and is pretty. It's just that GR recently changed it's default SVG resolution, and that has had some interactions with the rest of the ecosystem.

@tkf
Copy link
Contributor

tkf commented Oct 12, 2018

I see. Thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants