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

Legend/labels sometimes do not appear correctly #238

Closed
matthieugomez opened this issue Jul 14, 2020 · 6 comments
Closed

Legend/labels sometimes do not appear correctly #238

matthieugomez opened this issue Jul 14, 2020 · 6 comments

Comments

@matthieugomez
Copy link

matthieugomez commented Jul 14, 2020

I use the PGFPlotsX backend in Plots in scripts, and I save the plot in pdf format using savefig. My issue is that, sometimes, the legend and the labels do not appear correctly in the pdf output. Here is an example:

p = plot(rs, [y1 y2 y3], color = [red blue :black],  label = [ L"\frac{-\frac{i}{q}+g - \rho}{\eta + \delta}" L"\frac{r-\rho}{\eta}" ""], legend=:bottomleft, xtickfontsize=14, ytickfontsize=14, guidefontsize = 14, legendfontsize = 40)
savefig(p, "$(ProjectPath)/output/figure/twostates.pdf") 

Screen Shot 2020-07-14 at 9 38 03 AM
Note that the legend has missing characters. Similarly, the yaxis has missing numbers. I have not been able to find a reproductible example: the output is usually correct. I'd appreciate any idea on potential causes, or a pointer on what to try.

@matthieugomez matthieugomez changed the title Legend/labels sometimes do not appear Legend/labels sometimes do not appear correctly Jul 14, 2020
@tpapp
Copy link
Collaborator

tpapp commented Jul 14, 2020

@BeastyBlacksmith, can you please look into whether it is an issue with the Plots backend, or this package?

@KristofferC
Copy link
Owner

Also good to save to a tex file to see if there is something weird there or if it is a pgfplots bug.

@BeastyBlacksmith
Copy link
Contributor

I remember having similar issues when compiling with pdflatex

@tpapp
Copy link
Collaborator

tpapp commented Aug 3, 2020

I am still happy to follow up on this from our end, but need at least an MWE with plain vanilla PGFPlotsX (ideally) or the LaTeX code.

Otherwise, since technically this is not demonstrated to be an issue with this package, I would consider closing this.

@matthieugomez
Copy link
Author

matthieugomez commented Aug 3, 2020 via email

@tpapp
Copy link
Collaborator

tpapp commented Aug 3, 2020

Thanks for the feedback. I am closing for now but please feel free to ask for reopening this if the issue shows up again.

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

4 participants