We wanna generate a list of colors automatically based on the elements in some list (the idea from popai),
Axes' options,
Set equal 2 axes (ref),
Check the official doc for more information.
👉 Check more in official doc.
Suppose we have a list of group with different colors. We wanna make legends for them,
Plot from a list of true/false (ref to an example of Bernoulli distribution)
For example, we wanna create a
4x4
plots (ref),Using
ax
To be sure that
plt.savefig()
(ref) comes before plt.show()
. In the case you wanna use any time you want, just call plt.gcf()
to "get current figure" first. For example, (ref)Remark: There are the axes inside the exported photo (all are printed on notebook)!!
They export only the photo.