-1
fig_1 = plt.figure(1, figsize=(6.4, 4.8))

chart_1 = fig_1.add_subplot(121)
chart_2 = fig_1.add_subplot(122)

chart_1.plot(year, apl_price)
chart_2.plot(year, ms_price)

plt.show()

enter image description here

Lucas
  • 6,869
  • 5
  • 29
  • 44
  • 2
    `chart_1.set_xlabel(...)`, `chart_1.set_ylabel(...)`... Also perhaps easier to do `fig_1, (chart_1, chart_2) = plt.subplots(ncols=2, figsize=(6.4, 4.8))`. – BigBen May 06 '21 at 17:48

1 Answers1

0

I suppose you're using matplolib, you can use matplotlib.pyplot.xlabel and matplotlib.pyplot.ylabel : matplotlib.pyplot.xlabel matplotlib.pyplot.ylabel

LittleSoap
  • 74
  • 5