Plots.jl: scientific format doesn't work from v0.12.3 (GR)

Created on 24 Oct 2017  路  5Comments  路  Source: JuliaPlots/Plots.jl

10^i along y axis is not properly formatted from Plots.jl v.0.12.3 (GR).

Please see the following code:

using Plots
gr()
plot(abs(rand(10)), yaxis=(:log10, (1e-3,1e3)))
savefig("gr.png")

v0.12.2:
plots_v0 12 2

v0.12.3:
plots_v0 12 3

Thank you for your development,

Most helpful comment

A hacky way would be to add "\\ " to the end of every tick so that it gets dispatched to GR.textext() instead of GR.text().

All 5 comments

I'm very sorry that I missed the following:

"GR no longer automatically handles _ and ^ in texts"
https://github.com/JuliaPlots/Plots.jl/releases/tag/v0.12.3

Could you suggest how to automatically handle the scientific format >v0.12.3 ?

This is a bug created by that change. Thanks for reporting.

A hacky way would be to add "\\ " to the end of every tick so that it gets dispatched to GR.textext() instead of GR.text().

not too hacky I think

I'll try it out and see how it behaves.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkborregaard picture mkborregaard  路  3Comments

pkofod picture pkofod  路  3Comments

kersulis picture kersulis  路  5Comments

kleinschmidt picture kleinschmidt  路  3Comments

SebastianM-C picture SebastianM-C  路  4Comments