Winston.jl
Winston.jl copied to clipboard
incorrect axis labels for log plots
Julia Version 0.4.0-dev+1420 using Winston semilogy([0.01,0.1,1,10,100,1000,10000,70000])
Notice the repeated 1000 on the y-axis, which should really be 1000,10000,100000. Possibly trimming the labels to 4 characters?
this comes with some warnings of the following form, so maybe its not a Winston issue?:
(process:1663): Pango-WARNING **: pango_layout_set_markup_with_accel: Attribute 'font' is not allowed on the tag on line 1 char 48
Works for me. Which version of Winston? And this looks like Windows?
I tried the latest version 0.11.6 and also checking out master.
Here's my version info (linux although you're right I did x forward the plot): Julia Version 0.4.0-dev+1441 Commit ab0d6ca (2014-11-07 04:08 UTC) Platform Info: System: Linux (x86_64-redhat-linux6E) CPU: Intel(R) Xeon(R) CPU X5570 @ 2.93GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem) LAPACK: libopenblas LIBM: libopenlibm LLVM: libLLVM-3.3
If the pango error is related, you might try replacing font
with size
in the Cairo
package:
https://github.com/JuliaLang/Cairo.jl/blob/cd923b1b7d90c16006b2c923f0c16277ec2392e6/src/Cairo.jl#L959
Thanks for this suggestion, I tried this a couple weeks back, without success, but I may not be interpreting it correctly. Due to time pressure I ended up plotting it another way.
I was not able to recreate this problem natively on my windows machine using Julia 0.3.3