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

incorrect axis labels for log plots #179

Open
dfagnan opened this issue Nov 7, 2014 · 4 comments
Open

incorrect axis labels for log plots #179

dfagnan opened this issue Nov 7, 2014 · 4 comments

Comments

@dfagnan
Copy link

dfagnan commented Nov 7, 2014

Julia Version 0.4.0-dev+1420
using Winston
semilogy([0.01,0.1,1,10,100,1000,10000,70000])

image

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

@nolta
Copy link
Member

nolta commented Nov 7, 2014

Works for me. Which version of Winston? And this looks like Windows?

@dfagnan
Copy link
Author

dfagnan commented Nov 8, 2014

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

@nolta
Copy link
Member

nolta commented Nov 14, 2014

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

@dfagnan
Copy link
Author

dfagnan commented Dec 4, 2014

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

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