// functions of same dimensions as axes (vectors)
// plots only with 2 vectors / matrix of 2 cols
show() :
subplot(rows, cols, pos) : subplot at pos
pos=index (1,2..)pos=(i,j): (tuple) use from index i to j- e.g.: graph made of
r*csubgraphs, numbered1..r*c, row by row
loglog() : graph with logarithmic scale
plot(x, y, color=”string”, linewidth=INT, marker=’char’) :
plot(x, y, “b*”): color+marker
imshow(IMG, str cmap=, int vmin=, int vmax=) :
- add image to axis
cmap: colorcmap='gray': grey maskvmin, vmax: values range
scatter() : graph as scatter points
semilogx() : graph with logarithmic scale (on x)
semilogy() : //
axis(val) : set axises
val="on": showval="off": don't show
figure(figsize=) : dimensions/size
grid() : configure stuff like grid lines
legend([list]) :
suptitle(string) :
title(string, fontsize=INT) : (accepts pseudo-latex text)
title(“[-$\pi$, pi]”): pi
xlabel(string) :
ylabel(string) :
rc() : global configurations
rc(“font”, size=INT): font size
tight_layout() : adjust so all fit
- e.g.: labels dont overlap or go out
// returned by subplot