In matplolib for a time line diagram can I set to y-axis different values on the left and make another y-axis to the right with other scale?
I am using 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 in this plot?
In span selector:
plt.axvspan(76, 76, facecolor='g', alpha=1)
I want to right text to characterize this span for example 'This is span selector' how can I make it?