Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Subscripts and superscripts not saving in .tiff files #1877

Closed
jamiebull1 opened this Issue Apr 1, 2013 · 3 comments

Comments

Projects
None yet
3 participants

I'm trying to create a .tiff with axis labels which include sub and superscript notation. I've used the $ notation $kgCO_2e/m^2$' to enclose the label and it shows up fine in the interactive output. It also saves as expected when saved to .png. However when saving to .tiff it shows up as the full text kgCO_2e/m^2.

The following snippet reproduces the problem.

import matplotlib.pyplot as plt

xs = [1,2]
ys = [2,3]
fig = plt.figure(figsize=(9,7))
ax1 = fig.add_subplot(111)
ax1.plot(xs, ys)
ax1.set_ylabel('$kgCO_2e/m^2$')
plt.show()
Owner

mdboom commented Apr 1, 2013

Which backend are you using?

WXAgg

Member

dmcdougall commented Jun 16, 2013

Looks like this was fixed by #1770.

@jamiebull1 If I am mistaken, please feel free to reopen this issue.

@dmcdougall dmcdougall closed this Jun 16, 2013

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