Explore Courses Blog Tutorials Interview Questions
0 votes
in Data Science by (17.6k points)

I have started my IPython Notebook with

ipython notebook --pylab inline

This is my code in one cell



This is working fine, it will draw two lines, but on the same chart.

I would like to draw each line on a separate chart. And it would be great if the charts would be next to each other, not one after the other.

I know that I can put the second line in the next cell, and then I would get two charts. But I would like the charts close to each other, because they represent the same logical unit.

1 Answer

0 votes
by (41.4k points)

1.Make the multiple axes.

2. After that pass them to the Pandas plot function.

fig, axs = plt.subplots(1,2)



Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 30, 2020 in Python by laddulakshana (16.4k points)
0 votes
1 answer
asked Oct 8, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

Browse Categories