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

Unicode fonts on GR-backend #1170

Closed
jaakkor2 opened this issue Oct 12, 2017 · 2 comments
Closed

Unicode fonts on GR-backend #1170

jaakkor2 opened this issue Oct 12, 2017 · 2 comments

Comments

@jaakkor2
Copy link
Contributor

With Plots.jl 0.13.1, GR.jl 0.24.0, GR.version() 0.27.0 it is great that yformatter=:scientific almost works. On Windows I get bad fonts. Also, axis labels do not show unicode fonts (but can be worked around by \\mu for μ, for example.

gr

using Plots
gr()
x = linspace( 0.0,5.0,50 )
plot( plot( x, [ x, x.^2 ], grid = true, lab=[ "foo" "bar" ], color=[ :cyan :purple ], xaxis="Length (μm)", yaxis="y-value", lw=2 ), plot( x, 1e6*[ exp.(x), exp.(x.^2) ], grid = true, lw = 1, yformatter=:scientific, leg = false, yaxis="my yaxis label" ), layout=(2,1) )
@improbable-22
Copy link
Contributor

Perhaps of interest, I had a go at making GR replace β with \\beta etc automatically here: jheinen/GR.jl#78 . This could also be done within Plots I'm sure.

@jaakkor2
Copy link
Contributor Author

Closing this issue, as now yformatter=:scientific works. The unicode issue still exist and is open here
#791

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

No branches or pull requests

2 participants