Folks,

I am trying to make a plot with axes rotated by 45 degrees, so that the 
plot looks like a romb. I set the rotating transform for the subplot, 
but it is still plotted in a normal orientation. Could someone tell my 
why the set_transform function does not work?

Many thanks,

Nick Gnedin


import matplotlib.pyplot as plt
from matplotlib.transforms import Affine2D

tr = Affine2D().rotate_deg(45)

fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_transform(tr)

fig.show()

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to