i have started ipython notebook
ipython notebook --pylab inline
this code in 1 cell
df['korisnika'].plot() df['osiguranika'].plot()
this working fine, draw 2 lines, on same chart.
i draw each line on separate chart. , great if charts next each other, not 1 after other.
i know can put second line in next cell, , 2 charts. charts close each other, because represent same logical unit.
make multiple axes first , pass them pandas plot function, like:
fig, axs = plt.subplots(1,2) df['korisnika'].plot(ax=axs[0]) df['osiguranika'].plot(ax=axs[1])
it still gives 1 figure, 2 different plots next each other.
Comments
Post a Comment