Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 082e045

Browse files
committed
update URLs to "stable"
1 parent bf004a1 commit 082e045

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

cheatsheets.tex

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,14 @@
293293
\begin{myboxed}{Subplots layout \hfill
294294
\API{https://matplotlib.org/tutorials/intermediate/gridspec.html} }
295295
\plot{layout-subplot.pdf}{\textbf{subplot[s]}(rows,cols,…)}
296-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html}
296+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html}
297297
{\ttfamily fig, axs = plt.subplots(3,3)}
298298
{}
299299
\plot{layout-gridspec.pdf}{G = \textbf{gridspec}(rows,cols,…)}
300-
{https://matplotlib.org/api/_as_gen/matplotlib.gridspec.GridSpec.html}
300+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.gridspec.GridSpec.html}
301301
{\ttfamily ax = G[0,:]}{}
302302
\plot{layout-inset.pdf}{ax.\textbf{inset\_axes}(extent)}
303-
{https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.inset_axes.html}
303+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.inset_axes.html}
304304
{}{}
305305
\plot{layout-divider.pdf}{d=\textbf{make\_axes\_locatable}(ax)}
306306
{https://matplotlib.org/mpl_toolkits/axes_grid/users/axes_divider.html}
@@ -337,7 +337,7 @@
337337
% --- Basic plots -----------------------------------------------------------
338338
\begin{myboxed}{Basic plots}
339339
\plot{basic-plot.pdf}{\textbf{plot}([X],Y,[fmt],…)}
340-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html}
340+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html}
341341
{\optional{X},
342342
\mandatory{Y},
343343
\optional{fmt},
@@ -346,7 +346,7 @@
346346
\optional{linestyle}}
347347
{}
348348
\plot{basic-scatter.pdf}{\textbf{scatter}(X,Y,…)}
349-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.scatter.html}
349+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html}
350350
{\mandatory{X},
351351
\mandatory{Y},
352352
\optional{[s]izes},
@@ -355,23 +355,23 @@
355355
\optional{cmap}}
356356
{}
357357
\plot{basic-bar.pdf}{\textbf{bar[h]}(x,height,…)}
358-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.bar.html}
358+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.bar.html}
359359
{ \mandatory{x},
360360
\mandatory{height},
361361
\optional{width},
362362
\optional{bottom},
363363
\optional{align},
364364
\optional{color} }{}
365365
\plot{basic-imshow.pdf}{\textbf{imshow}(Z,[cmap],…)}
366-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html}
366+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.imshow.html}
367367
{ \mandatory{Z},
368368
\optional{cmap},
369369
\optional{interpolation},
370370
\optional{extent},
371371
\optional{origin} }
372372
{}
373373
\plot{basic-contour.pdf}{\textbf{contour[f]}([X],[Y],Z,,…)}
374-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.contour.html}
374+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.contour.html}
375375
{ \optional{X},
376376
\optional{Y},
377377
\mandatory{Z},
@@ -381,7 +381,7 @@
381381
\optional{origin} }
382382
{}
383383
\plot{basic-quiver.pdf}{\textbf{quiver}([X],[Y],U,V,…)}
384-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.quiver.html}
384+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.quiver.html}
385385
{ \optional{X},
386386
\optional{Y},
387387
\mandatory{U},
@@ -391,15 +391,15 @@
391391
\optional{angles} }
392392
{}
393393
\plot{basic-pie.pdf}{\textbf{pie}(X,[explode],…)}
394-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.pie.html}
394+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pie.html}
395395
{\mandatory{Z},
396396
\optional{explode},
397397
\optional{labels},
398398
\optional{colors},
399399
\optional{radius}}
400400
{}
401401
\plot{basic-text.pdf}{\textbf{text}(x,y,text,…)}
402-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.text.html}
402+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.text.html}
403403
{\mandatory{x},
404404
\mandatory{y},
405405
\mandatory{text},
@@ -410,7 +410,7 @@
410410
\optional{transform} }
411411
{}
412412
\plot{basic-fill.pdf}{\textbf{fill[\_between][x]}( … )}
413-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.fill.html}
413+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.fill.html}
414414
{\mandatory{X},
415415
\optional{Y1},
416416
\optional{Y2},
@@ -422,7 +422,7 @@
422422
% --- Advanced plots --------------------------------------------------------
423423
\begin{myboxed}{Advanced plots}
424424
\plot{advanced-step.pdf}{\textbf{step}(X,Y,[fmt],…)}
425-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.step.html}
425+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.step.html}
426426
{\mandatory{X},
427427
\mandatory{Y},
428428
\optional{fmt},
@@ -431,38 +431,38 @@
431431
\optional{where} }
432432
{}
433433
\plot{advanced-boxplot.pdf}{\textbf{boxplot}(X,…)}
434-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.boxplot.html}
434+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html}
435435
{ \mandatory{X},
436436
\optional{notch},
437437
\optional{sym},
438438
\optional{bootstrap},
439439
\optional{widths} }
440440
{}
441441
\plot{advanced-errorbar.pdf}{\textbf{errorbar}(X,Y,xerr,yerr,…)}
442-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.errorbar.html}
442+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.errorbar.html}
443443
{ \mandatory{X},
444444
\mandatory{Y},
445445
\optional{xerr},
446446
\optional{yerr},
447447
\optional{fmt} }
448448
{}
449449
\plot{advanced-hist.pdf}{\textbf{hist}(X, bins, …)}
450-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.hist.html}
450+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html}
451451
{\mandatory{X},
452452
\optional{bins},
453453
\optional{range},
454454
\optional{density},
455455
\optional{weights}}
456456
{}
457457
\plot{advanced-violin.pdf}{\textbf{violinplot}(D,…)}
458-
{https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.violinplot.html}
458+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.violinplot.html}
459459
{\mandatory{D},
460460
\optional{positions},
461461
\optional{widths},
462462
\optional{vert} }
463463
{}
464464
\plot{advanced-barbs.pdf}{\textbf{barbs}([X],[Y], U, V, …)}
465-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.barbs.html}
465+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.barbs.html}
466466
{ \optional{X},
467467
\optional{Y},
468468
\mandatory{U},
@@ -473,21 +473,21 @@
473473
\optional{sizes} }
474474
{}
475475
\plot{advanced-event.pdf}{\textbf{eventplot}(positions,…)}
476-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.eventplot.html}
476+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.eventplot.html}
477477
{\mandatory{positions},
478478
\optional{orientation},
479479
\optional{lineoffsets} }
480480
{}
481481
\plot{advanced-hexbin.pdf}{\textbf{hexbin}(X,Y,C,…)}
482-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.hexbin.html}
482+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hexbin.html}
483483
{\mandatory{X},
484484
\mandatory{Y},
485485
\optional{C},
486486
\optional{gridsize},
487487
\optional{bins} }
488488
{}
489489
\plot{advanced-xcorr.pdf}{\textbf{xcorr}(X,Y,…)}
490-
{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.xcorr.html}
490+
{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xcorr.html}
491491
{\mandatory{X},
492492
\mandatory{Y},
493493
\optional{normed},
@@ -498,7 +498,7 @@
498498

499499
% --- Scale ---------------------------------------------------------------
500500
\begin{myboxed}{Scales \hfill
501-
\API{https://matplotlib.org/api/scale_api.html}}
501+
\API{https://matplotlib.org/stable/api/scale_api.html}}
502502
{\ttfamily ax.\textbf{set\_[xy]scale}(scale,…)}
503503
\smallskip
504504
\scale{scale-linear.pdf}{\textbf{linear}}{any values}
@@ -511,20 +511,20 @@
511511
%
512512
% --- Projections -----------------------------------------------------------
513513
\begin{myboxed}{Projections \hfill
514-
\API{https://matplotlib.org/api/projections_api.html}}
514+
\API{https://matplotlib.org/stable/api/projections_api.html}}
515515
{\ttfamily \textbf{subplot}(…,projection=p)}
516516
\smallskip
517517
\scale{projection-polar.pdf}{p='polar'}{}
518518
\scale{projection-3d.pdf}{p='3d'}{}
519-
% {https://matplotlib.org/api/projections_api.html}
519+
% {https://matplotlib.org/stable/api/projections_api.html}
520520
% {}
521521
% {}
522522
%% \plot{projection-3d.pdf}{p='3d'}
523-
%% {https://matplotlib.org/api/toolkits/mplot3d.html}
523+
%% {https://matplotlib.org/stable/api/toolkits/mplot3d.html}
524524
%% {}
525525
%% {}
526526
\plot{projection-cartopy.pdf}{p=Orthographic()}
527-
{https://matplotlib.org/api/toolkits/mplot3d.html}
527+
{https://matplotlib.org/stable/api/toolkits/mplot3d.html}
528528
{from cartopy.crs import Cartographic}
529529
{}
530530
\end{myboxed}
@@ -541,7 +541,7 @@
541541
%
542542
% --- Markers ---------------------------------------------------------------
543543
\begin{myboxed}{Markers \hfill
544-
\API{https://matplotlib.org/api/markers_api.html}}
544+
\API{https://matplotlib.org/stable/api/markers_api.html}}
545545
\includegraphics[width=\columnwidth]{markers.pdf}
546546
\end{myboxed}
547547
%
@@ -591,7 +591,7 @@
591591

592592
% --- Ticks locators --------------------------------------------------------
593593
\begin{myboxed}{Tick locators \hfill
594-
\API{https://matplotlib.org/api/ticker_api.html}}
594+
\API{https://matplotlib.org/stable/api/ticker_api.html}}
595595
{\tiny \ttfamily
596596
from matplotlib import ticker\\
597597
ax.[xy]axis.set\_[minor|major]\_locator(\textbf{locator})\par
@@ -603,7 +603,7 @@
603603
\vspace{\fill}
604604
%
605605
\begin{myboxed}{Tick formatters \hfill
606-
\API{https://matplotlib.org/api/ticker_api.html}}
606+
\API{https://matplotlib.org/stable/api/ticker_api.html}}
607607
{\tiny \ttfamily
608608
from matplotlib import ticker\\
609609
ax.[xy]axis.set\_[minor|major]\_formatter(\textbf{formatter})\par
@@ -616,19 +616,19 @@
616616
%
617617
\begin{myboxed}{Ornaments}
618618
{\ttfamily ax.\textbf{legend}(…) \hfill
619-
\api{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.legend.html}}\\
619+
\api{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html}}\\
620620
handles, labels, loc, title, frameon\smallskip\\
621621
\includegraphics[width=0.9\columnwidth]{legend.pdf}
622622
\medskip\\
623623
%
624624
{\ttfamily ax.\textbf{colorbar}(…)} \hfill
625-
\api{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.colorbar.html}\\
625+
\api{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.colorbar.html}\\
626626
mappable, ax, cax, orientation \smallskip\\
627627
\includegraphics[width=\columnwidth]{colorbar.pdf}\\
628628
\medskip\\
629629
%
630630
{\ttfamily ax.\textbf{annotate}(…)} \hfill
631-
\api{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.annotate.html}\\
631+
\api{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.annotate.html}\\
632632
\mandatory{text},
633633
\mandatory{xy},
634634
\mandatory{xytext},
@@ -658,7 +658,7 @@
658658
% \vspace{\fill}
659659
%
660660
\begin{myboxed}{Animation \hfill
661-
\API{https://matplotlib.org/api/animation_api.html}}
661+
\API{https://matplotlib.org/stable/api/animation_api.html}}
662662
{\ttfamily \scriptsize
663663
import matplotlib.animation as mpla\par
664664
~\par
@@ -771,7 +771,7 @@
771771

772772
\begin{multicols*}{5}
773773
\begin{myboxed}{Axes adjustments\hfill
774-
\API{https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots_adjust.html}}
774+
\API{https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots_adjust.html}}
775775
plt.\textbf{subplots\_adjust}( … )\\
776776

777777
\includegraphics[width=\columnwidth]{adjustments.pdf}
@@ -899,7 +899,7 @@
899899

900900

901901
\begin{myboxed}{Color names \hfill
902-
\API{https://matplotlib.org/api/colors_api.html} }
902+
\API{https://matplotlib.org/stable/api/colors_api.html} }
903903
\includegraphics[width=\columnwidth]{colornames.pdf}
904904
\end{myboxed}
905905
%

0 commit comments

Comments
 (0)