5,337
edits
No edit summary |
(→Usage) |
||
Line 30: | Line 30: | ||
plt.rc('legend', fontsize=SMALL_SIZE) # legend fontsize | plt.rc('legend', fontsize=SMALL_SIZE) # legend fontsize | ||
plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title | plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title | ||
</syntaxhighlight> | |||
===Multiple Figures=== | |||
<syntaxhighlight lang="python"> | |||
plt.figure() | |||
f, axarr = plt.subplots(3,1) | |||
axarr[0].imshow(np.clip(x_val[0, 0, :, :, :].numpy(), 0, 1)) | |||
axarr[1].imshow(np.clip(val_image[0, :, :, :].numpy(), 0, 1)) | |||
axarr[2].imshow(np.clip(y_val[0, :, :, :].numpy(), 0, 1)) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==Animations== | ==Animations== | ||
* [https://towardsdatascience.com/animations-with-matplotlib-d96375c5442c Animations with Matplotlib] | * [https://towardsdatascience.com/animations-with-matplotlib-d96375c5442c Animations with Matplotlib] |