I want to build 2 subheadings using the matlibplot axes. Since these two subtitles have the same labels and ticks, I want to disable the labels and characters of the second subtitle. Below is my short script:
import matplotlib.pyplot as plt ax1=plt.axes([0.1,0.1,0.4,0.8]) ax1.plot(X1,Y1) ax2=plt.axes([0.5,0.1,0.4,0.8]) ax2.plot(X2,Y2)
BTW, the X-axis labels overlap and are not sure if there is a neat solution or not. (A decision can make the last character invisible for each subheading, except for the last, but not sure how). Thanks!
Hailiang zhang
source share