-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
[BUG][PGFPlotsX][Unitful] setting axis labels duplicates units #4730
Comments
CC: @t-bltg |
Hum sorry for this. Unitful was written for GR and we never tested it on PGFPlotsX (neither in regression tests). So everything is left to be correctly implemented here. There are choice to be made. I'd say that the units should be in math mode for handling braces/parens (hence rendered slightly italicized). But it's to be discussed. Contributions welcome 🙂. Ping @gustaphe for discussion. |
UnitfulLatexify has a recipe for |
I can't find where, but somewhere the |
Nvm, found it in the fix to the linked issue. The overloading of the guide attribute is a bit of a problem: UnitfulExt uses it to store information about the axis units. It's clever, but not necessarily in the good way. |
When setting axis labels while using units and the PGFPlotsX backend,
the units appear twice in the label.
This probably happens because of the changes in #4723.
The units are also incorrectly italicized (maybe use UnitfulLatexify.jl for it)
Details
Example
crashing example
This has probably the same cause as #4722
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: master
Backend version (
]st -m <backend(s)>
): PGFPlotsX v1.5.3Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: