0

so this is the answer for this but i am not able understanding the subplot as 2nd row and we can see that the star part is in the first row so how they are giving it in a 2nd one row?

from matplotlib import pyplot as plt

x = range(7)
straight_line = [0, 1, 2, 3, 4, 5, 6]
parabola = [0, 1, 4, 9, 16, 25, 36]
cubic = [0, 1, 8, 27, 64, 125, 216]

# Subplot 1
plt.subplot(2, 1, 1)

enter image description here

eyllanesc
  • 221,139
  • 17
  • 121
  • 189
  • https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axes_margins.html#sphx-glr-gallery-subplots-axes-and-figures-axes-margins-py – Trenton McKinney Sep 17 '21 at 22:33

0 Answers0