मैं y_axis को कैसे उलटा सकता हूं? जेड एक np.array.Thank आपएक matplotlib grafic में एक अक्ष को घुमाएं
Z=TempLake
X,Y=np.meshgrid(range(Z.shape[0]+1),range(Z.shape[1]+1))
im = plt.pcolormesh(X,Y,Z.transpose(), cmap='hot')
plt.colorbar(im, orientation='horizontal')
plt.show()
मैं इस है:
मैं इस की जरूरत है:
[इस] के कर्टसी (http://old.nabble.com/How-to-reverse-the-direction-of-an-axis--td15170464.html) पोस्ट, आप या तो 'ax.set_ylim' का उपयोग कर सकते हैं (ax.get_ylim() [:: - 1]) 'या ['ax.invert_yaxis()'] (http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.invert_yaxis), जहां 'ax' एक 'matplotlib.axes.Axes' ऑब्जेक्ट है। – Chris
[Matplotlib समन्वय के संभावित डुप्लिकेट। sys मूल शीर्ष बाईं ओर] (http://stackoverflow.com/questions/1349230/matplotlib-coord-sys-origin-to-top-left) – Chris