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 rendering of <sup> in axis labels in IJulia #441

Closed
tomasaschan opened this issue Sep 27, 2014 · 4 comments
Closed

Incorrect rendering of <sup> in axis labels in IJulia #441

tomasaschan opened this issue Sep 27, 2014 · 4 comments

Comments

@tomasaschan
Copy link
Contributor

I just stumbled over the following:

x = [-pi:.1:pi]
y = x.^2

plot(x=x,y=y,Geom.line,Guide.xlabel("x [m]"),Guide.ylabel("x<sup>2</sup> [m<sup>2</sup>]"))

If run in IJulia, it gives a plot like

<sup> broken

Note how the closing ] is superscripted although it's outside of <sup></sup> in the label definition. If I draw it to PNG and open it in e.g. eog it looks fine. Is this a Gadfly problem, an IJulia problem, or both?

@tomasaschan
Copy link
Contributor Author

Probably Gadfly - SVG output is broken too (perhaps that's what IJulia is using?).

@dcjones
Copy link
Collaborator

dcjones commented Sep 27, 2014

You're in luck, I fixed this yesterday: #439. I'll probably tag a new version today, but it should work in Compose master.

@tomasaschan
Copy link
Contributor Author

Haha, you rock! =)

I just discovered that the sizing is pretty broken when rendering with large fonts (try <sup>-ing something in font size above 30pt - the superscripts are barely smaller than the normal font) - is that fixed too?

@tomasaschan
Copy link
Contributor Author

This looks all good now. Don't know if this was 439 or something else, but it's not an issue anymore =)

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