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

[BUGZILLA #16948] mathematical label on y-axis is misaligned in X11() #6260

Open
MichaelChirico opened this issue May 19, 2020 · 3 comments
Open

Comments

@MichaelChirico
Copy link
Owner

In base graphics plot.default(), title() with the default X11() driver,
if the y-axis label 'ylab' is a mathematical expression, the components of the expression are misaligned (incorrect x coordinates).
Examples
plot(1:2, xlab=expression(f(x)), ylab=expression(g(x)))

     plot(1:2, xlab=expression(x == f(n)), ylab=expression(y == g(n)))

Does not occur in pdf() or postscript(), only in X11()


METADATA

  • Bug author - Adrian Baddeley
  • Creation time - 2016-06-13 06:01:55 UTC
  • Bugzilla link
  • Status - NEW
  • Alias - None
  • Component - Graphics
  • Version - R 3.3.*
  • Hardware - ix86 (32-bit) Linux
  • Importance - P5 minor
  • Assignee - R-core
  • URL -
  • Modification time - 2016-06-14 20:44 UTC
@MichaelChirico
Copy link
Owner Author

I can confirm this on OSX. Looks like a top-right/bottom-left confusion with rotated character glyphs.


METADATA

  • Comment author - Peter Dalgaard
  • Timestamp - 2016-06-13 09:32:27 UTC

@MichaelChirico
Copy link
Owner Author

Happens in X11(type="Xlib") but not in X11(type="cairo")


METADATA

  • Comment author - Adrian Baddeley
  • Timestamp - 2016-06-14 00:50:26 UTC

@MichaelChirico
Copy link
Owner Author

This was a missing set of parentheses in XRotPaintAlignedString() in src/modules/X11/rotated.c

Just running some checks before committing the fix.


METADATA

  • Comment author - Paul Murrell
  • Timestamp - 2016-06-14 20:44:18 UTC

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

No branches or pull requests

1 participant