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
Latex Greek fonts not working in legend #7028
Comments
Your example seems needlessly complicated. You are setting the labels twice both in the plot function and then by supplying the labels_legend to ax.legend. It looks like this is suppling the keys and not the values of the dict to the legend function. The following works for me:
|
Sincerely thanks. Your code works. I guess the overtly complicated code stemmed from older versions of it where I was trying to achieve a specific order in showing the legend entries. In this case, if I want the entries to appear from top-down as specified in
|
Yes the legend will appear in the order that it is added via the plot so you can do it like that. You can also use an ordered dict instead of a regular dictionary to store your names in the order you want. https://docs.python.org/2/library/collections.html#collections.OrderedDict |
I think this issue can be closed? |
Hi Jens, Cheers, Maurizio De Pitta' On Mon, Sep 5, 2016 at 2:04 PM, Jens Hedegaard Nielsen <
|
Thanks good that your problem is solved |
For some reason, I can render
Latex
fonts including Greek ones in my axis labels but when I try to do it with my legends in the same figure, I cannot.Enforcing explicitly
Latex
as described here won't solve the issue.In my code:
The text was updated successfully, but these errors were encountered: