|
From: Bartosz T. <b.t...@bi...> - 2009-09-16 19:32:47
|
Dear all,
I have a problem with exporting polar plots to SVG. When attached to
axes which are not centered in the figure, the content (grids, data,
etc.) seems not to be shifted correctly with the axes. However, when I
plot it directly to the screen or export to PNG everything is fine.
Here is an example reproducing this error:
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_axes([0.4, 0.4, 0.25, 0.25], polar=True)
theta1 = np.pi/4
ax.plot([theta1, theta1], [0, 1], '-')
plt.savefig('test_polar.svg')
plt.savefig('test_polar.png')
plt.show()
I was able to reproduce the problem it in matplotlib 0.99.0 (Backend:
GTKAgg).
Cheers,
Bartosz
|