In matplolib for a timeline, can I set the y axis to different values ββon the left and make another y axis to the right with a different scale?
I use this:
import matplotlib.pyplot as plt plt.axis('normal') plt.axvspan(76, 76, facecolor='g', alpha=1) plt.plot(ts, 'b',linewidth=1.5) plt.ylabel("name",fontsize=14,color='blue') plt.ylim(ymax=100) plt.xlim(xmax=100) plt.grid(True) plt.title("name", fontsize=20,color='black') plt.xlabel('xlabel', fontsize=14, color='b') plt.show()
Can I give 2 y axis on this graph?
In selector selector:
plt.axvspan(76, 76, facecolor='g', alpha=1)
I want to change the text to characterize this range, for example "This is a range selector", how can I do it?
Helen firs
source share