diff --git a/.circleci/config.yml b/.circleci/config.yml index 799c53f..06f76c7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ jobs: - checkout - run: command: echo "placeholder" - + workflows: main: jobs: diff --git a/cheatsheets.tex b/cheatsheets.tex index 5666a60..14fc806 100644 --- a/cheatsheets.tex +++ b/cheatsheets.tex @@ -382,6 +382,15 @@ \optional{extent}, \optional{origin} } {} + \plot{basic-pcolormesh.pdf}{\textbf{pcolormesh}([X],[Y],Z,…)} + {https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pcolormesh.html} + { \optional{X}, + \optional{Y}, + \mandatory{Z}, + \optional{vmin}, + \optional{vmax}, + \optional{cmap}} + {} \plot{basic-quiver.pdf}{\textbf{quiver}([X],[Y],U,V,…)} {https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.quiver.html} { \optional{X}, @@ -488,13 +497,6 @@ \optional{gridsize}, \optional{bins} } {} - \plot{advanced-xcorr.pdf}{\textbf{xcorr}(X,Y,…)} - {https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xcorr.html} - {\mandatory{X}, - \mandatory{Y}, - \optional{normed}, - \optional{detrend} } - {} \end{myboxed} diff --git a/figures/legend.pdf b/figures/legend.pdf index a2fd28b..7cc56ee 100644 Binary files a/figures/legend.pdf and b/figures/legend.pdf differ diff --git a/scripts/basic-plots.py b/scripts/basic-plots.py index e044728..4b58e58 100644 --- a/scripts/basic-plots.py +++ b/scripts/basic-plots.py @@ -79,13 +79,20 @@ plt.savefig("../figures/basic-imshow.pdf") ax.clear() - -# Basic contour plot +# Basic pcolormesh plot # ----------------------------------------------------------------------------- np.random.seed(1) X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) Z = (1 - X/2. + X**5 + Y**3)*np.exp(-X**2-Y**2) Z = Z - Z.min() +plt.pcolormesh(X, Y, Z, cmap='Oranges', shading='auto') +ax.set_xlim(-3, 3), ax.set_xticks(np.arange(-3, 4)) +ax.set_ylim(-3, 3), ax.set_yticks(np.arange(-3,4)) +plt.savefig("../figures/basic-pcolormesh.pdf") +ax.clear() + +# Basic contour plot +# ----------------------------------------------------------------------------- colors = np.zeros((5,4)) colors[:] = mpl.colors.to_rgba("C1") colors[:,3] = np.linspace(0.15, 0.85, len(colors)) @@ -94,8 +101,6 @@ nchunk=10) ax.set_xlim(0, 8), ax.set_xticks(np.arange(1,8)) ax.set_ylim(0, 8), ax.set_yticks(np.arange(1,8)) -# ax.set_axisbelow(True) -# ax.grid(linewidth=0.125, color="0.75") plt.savefig("../figures/basic-contour.pdf") ax.clear()