I want to plot two figures in one image using matplotlib. Data which I want to plot is:
x1 = ['sale','pseudo','test_mode']
y1 = [2374064, 515, 13]
x2 = ['ready','void']
y2 = [2373078, 1514]
I want to plot the bar plot for both the figure in one image. I used the code given below:
f, (ax1, ax2) = plt.subplots(1, 2, sharey=True)
ax1.plot(x1, y1)
ax1.set_title('Two plots')
ax2.plot(x2, y2)
but its giving error:
ValueError: could not convert string to float: PSEUDO
How I can plot them in one image using matplotlib?