You will notice that for the figure we created above, each y axis is on a different scale. If we plot it on a logarithmic scale, and the linear_sequence just increases by the same constant, we'll have two overlapping lines and we will only be able to see the one plotted after the first. First, we have to read in the data. 3. In this example, we use the subplots() function to draw multiple plots, and to add one title use the suptitle() function. To plot multiple line plots in Matplotlib, you simply repeatedly call the plot () function, which will apply the changes to the same Figure object: import matplotlib.pyplot as plt x = [ 1, 2, 3, 4, 5, 6 ] y = [ 2, 4, 6, 5, 6, 8 ] y2 = [ 5, 3, 7, 8, 9, 6 ] fig, ax = plt.subplots () ax.plot (x, y) ax.plot (x, y2) plt.show () Adding Legends: You can add a legend to each individual plot using the `legend()` method. Subplots can be arranged in different configurations depending on your needs. Firstly, import all the necessary libraries such as: To increase the size of the figure, we pass, This enumerated object can then be used in loops directly or converted to a list of tuples with the, To auto adjust the layout of the plots, we use the, Then, we create a new figure and multiple plots using, To remove the empty plot at 1st row and 1st column, we use, To auto adjust the layout of the plot, we use, To visualize the plot on users screen, we use, Here we create multiple plots in 2 rows and 2 columns using, Place the circle on top of the plot using the, To add a main title to the figure, we use, We also define different type of histogram types using, Then we set default style of seaborn using, To auto adjsut the layout of multiple plots, we use. Entrepreneur, Software and Machine Learning Engineer, with a deep fascination towards the application of Computation and Deep Learning in Life Sciences (Bioinformatics, Drug Discovery, Genomics), Neuroscience (Computational Neuroscience), robotics and BCIs. What is Wario dropping at the end of Super Mario Land 2 and why? Instead of displaying all three of our lines on the same plot, we might instead choose to display them side-by-side in different plots. Lets say we want to create a figure with two subplots, one above the other. Use argsort () to return the indices . It will redraw the current figure. Plotly is a Python open-source data visualization module that supports a variety of graphs such as line charts, scatter plots, bar charts, histograms, and area plots.