Answers for "plot multiple semilog plots on one plot python"

4

python plot multiple lines in same figure

# Short answer:
Call plt.plot() as many times as needed to add additional lines to plot.

# Example usage:
import matplotlib.pylot as plt
x_coordinates = [1, 2, 3]

y1_coordinates = [1, 2, 3]
y2_coordinates = [3, 4, 5]

plt.plot(x_coordinates, y1_coordinates) # plot first line
plt.plot(x_coordinates, y2_coordinates) # plot second line
Posted by: Guest on September-09-2020
2

multiple plot in one figure python

import matplotlib.pyplot as plt

plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.legend(loc='best')
plt.show()
Posted by: Guest on May-07-2020

Code answers related to "plot multiple semilog plots on one plot python"

Python Answers by Framework

Browse Popular Code Answers by Language