I am trying to create a simple stereographic diagram of the trajectory of the sun similar to this: http://wiki.naturalfrequency.com/wiki/Sun-Path_Diagram
I can rotate the polar graph and set the scale to 90. How do I flip the y axis? Currently, the axis goes from 0> 90, how to change the axis to 90> 0 to represent the azimuth?
I tried:
ax.invert_yaxis() ax.yaxis_inverted()
Further, how would I like to create a stereographic projection, rather than an equidistant projection?
My code is:
import matplotlib.pylab as plt testFig = plt.figure(1, figsize=(8,8)) rect = [0.1,0.1,0.8,0.8] testAx = testFig.add_axes(rect,polar=True) testAx.invert_yaxis() testAx.set_theta_zero_location('N') testAx.set_theta_direction(-1) Azi = [90,180,270] Alt= [0,42,0] testAx.plot(Azi,Alt) plt.show()
At present, my code doesn't seem to even build the lines correctly, will I need to convert the angle or degrees to something else?
Any help is greatly appreciated.
source share