Matplotlib: Subplots

preview_player
Показать описание
Code:

import numpy as np
%matplotlib inline

dpi=500)

ax[0,1].plot(x,y, label='sin(x)')

ax[1,0].plot(x,y, label='sin(x)')
ax[1,0].plot(x,2*y, label='2*sin(x)')

# remove tick labels
ax[0,0].set_xticklabels([])
# ax[0,0].set_xticks([])

# ax[0,0].set_ylabel("y axis of [0,0]")
# ax[0,0].set_xlabel("x axis of [0,0]")

ax[1,0].legend(loc=1)

Рекомендации по теме
Комментарии
Автор

Hello Sir, I have 1 panel of 40 subplots and I want to give labels, individual title for each subplot and main title of 40 subplots at a time. For these how can I write the code, actually I gave loop for my subplots but for these labels how can I write it. Could you please suggest me. Thankyou.

sujathayadala