<div dir="ltr"><br clear="all"><div dir="ltr"><div>I am trying to plot multiple plots where for the labels of the x axis I use strings. I the below script in which I am attempting to do this.<br><br><br> data = np.loadtxt(sys.argv[1], dtype='str',delimiter=',', skiprows=1, usecols=(0,1,2,3,4,5))<br> x = data[:,0]<br> date = data[:,1]<br> value1 = data[:,2]<br> value2 = data[:,3]<br><br> my_xticks = data[:,1]<br> plt.xticks(x.astype(float), my_xticks)<br><br> fig, (ax1,ax2) = plt.subplots(nrows=2)<br> my_xticks = data[:,1]<br> ax1.set_xticks(x.astype(float), my_xticks) <br> ax1=plt.plot(x, value1)<br> plt.tick_params(axis='both',which='major', labelsize=7)<br> plt.title('Value1',fontsize=10)<br> plt.grid()<br><br> ax2=plt.plot(x, value2)<br> plt.tick_params(axis='both',which='major', labelsize=7)<br> plt.title('Value2',fontsize=10)<br> plt.grid()<br><br>What can I do to tweak this program to get desired results?<br><div><br></div></div></div>
</div>