matplotlib-rs 0.0.8__cp315-cp315-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docs/releases/0.0.1.md +268 -0
- docs/releases/0.0.2.md +69 -0
- docs/releases/0.0.3.md +80 -0
- docs/releases/0.0.4.md +73 -0
- docs/releases/0.0.5.md +24 -0
- docs/releases/0.0.6.md +24 -0
- docs/releases/0.0.7.md +24 -0
- docs/releases/0.0.8.md +16 -0
- licenses/LICENSE_CONTOURPY +29 -0
- licenses/LICENSE_CYCLER +27 -0
- licenses/LICENSE_DATEUTIL +54 -0
- licenses/LICENSE_KIWISOLVER +71 -0
- licenses/LICENSE_LIBWEBP +56 -0
- licenses/LICENSE_MATPLOTLIB +1253 -0
- licenses/LICENSE_PYPARSING +20 -0
- licenses/LICENSE_QHULL +39 -0
- licenses/LICENSE_SIX +18 -0
- matplotlib_rs/__init__.py +1683 -0
- matplotlib_rs/__main__.py +27 -0
- matplotlib_rs/_afm.py +500 -0
- matplotlib_rs/_animation_data.py +263 -0
- matplotlib_rs/_api/__init__.py +495 -0
- matplotlib_rs/_api/deprecation.py +534 -0
- matplotlib_rs/_axis_py.py +2991 -0
- matplotlib_rs/_blocking_input.py +31 -0
- matplotlib_rs/_cm.py +1500 -0
- matplotlib_rs/_cm_bivar.py +1289 -0
- matplotlib_rs/_cm_listed.py +2848 -0
- matplotlib_rs/_cm_multivar.py +167 -0
- matplotlib_rs/_color_data.py +1142 -0
- matplotlib_rs/_colormap.py +132 -0
- matplotlib_rs/_constrained_layout.py +825 -0
- matplotlib_rs/_contour.py +108 -0
- matplotlib_rs/_doc_cache.py +12214 -0
- matplotlib_rs/_docstring.py +142 -0
- matplotlib_rs/_enums.py +178 -0
- matplotlib_rs/_figure_rs.py +294 -0
- matplotlib_rs/_fontconfig_pattern.py +129 -0
- matplotlib_rs/_foreign.py +220 -0
- matplotlib_rs/_hook.py +94 -0
- matplotlib_rs/_image.py +160 -0
- matplotlib_rs/_imageio.py +229 -0
- matplotlib_rs/_internal_utils.py +65 -0
- matplotlib_rs/_kiwi.py +484 -0
- matplotlib_rs/_layoutgrid.py +549 -0
- matplotlib_rs/_live.py +192 -0
- matplotlib_rs/_mathtext.py +3103 -0
- matplotlib_rs/_mathtext_data.py +1811 -0
- matplotlib_rs/_mplrs.cp315-win_amd64.pyd +0 -0
- matplotlib_rs/_path.py +25 -0
- matplotlib_rs/_png.py +162 -0
- matplotlib_rs/_pylab_helpers.py +137 -0
- matplotlib_rs/_qhull.py +66 -0
- matplotlib_rs/_rcpush.py +84 -0
- matplotlib_rs/_spines_rs.py +108 -0
- matplotlib_rs/_style_helpers.py +52 -0
- matplotlib_rs/_text_helpers.py +51 -0
- matplotlib_rs/_tight_bbox.py +85 -0
- matplotlib_rs/_tight_layout.py +302 -0
- matplotlib_rs/_tri.py +140 -0
- matplotlib_rs/_type1font.py +1228 -0
- matplotlib_rs/_vendor/__init__.py +8 -0
- matplotlib_rs/_vendor/cycler.py +574 -0
- matplotlib_rs/_vendor/dateutil/__init__.py +27 -0
- matplotlib_rs/_vendor/dateutil/_common.py +44 -0
- matplotlib_rs/_vendor/dateutil/_tzdata_impl.py +148 -0
- matplotlib_rs/_vendor/dateutil/_version.py +5 -0
- matplotlib_rs/_vendor/dateutil/easter.py +90 -0
- matplotlib_rs/_vendor/dateutil/parser/__init__.py +62 -0
- matplotlib_rs/_vendor/dateutil/parser/_parser.py +1614 -0
- matplotlib_rs/_vendor/dateutil/parser/isoparser.py +417 -0
- matplotlib_rs/_vendor/dateutil/relativedelta.py +597 -0
- matplotlib_rs/_vendor/dateutil/rrule.py +1765 -0
- matplotlib_rs/_vendor/dateutil/tz/__init__.py +61 -0
- matplotlib_rs/_vendor/dateutil/tz/_common.py +420 -0
- matplotlib_rs/_vendor/dateutil/tz/_factories.py +81 -0
- matplotlib_rs/_vendor/dateutil/tz/_tzfile.py +1429 -0
- matplotlib_rs/_vendor/dateutil/tz/_tzpath.py +105 -0
- matplotlib_rs/_vendor/dateutil/tz/tz.py +1473 -0
- matplotlib_rs/_vendor/dateutil/tz/win.py +371 -0
- matplotlib_rs/_vendor/dateutil/tzwin.py +3 -0
- matplotlib_rs/_vendor/dateutil/utils.py +72 -0
- matplotlib_rs/_vendor/dateutil/zoneinfo/__init__.py +234 -0
- matplotlib_rs/_vendor/pyparsing/__init__.py +414 -0
- matplotlib_rs/_vendor/pyparsing/actions.py +265 -0
- matplotlib_rs/_vendor/pyparsing/common.py +571 -0
- matplotlib_rs/_vendor/pyparsing/core.py +6973 -0
- matplotlib_rs/_vendor/pyparsing/exceptions.py +354 -0
- matplotlib_rs/_vendor/pyparsing/helpers.py +1770 -0
- matplotlib_rs/_vendor/pyparsing/results.py +929 -0
- matplotlib_rs/_vendor/pyparsing/testing.py +399 -0
- matplotlib_rs/_vendor/pyparsing/unicode.py +357 -0
- matplotlib_rs/_vendor/pyparsing/util.py +515 -0
- matplotlib_rs/_vendor/pyparsing/warnings.py +11 -0
- matplotlib_rs/_vendor/six.py +1004 -0
- matplotlib_rs/animation.py +1843 -0
- matplotlib_rs/artist.py +2302 -0
- matplotlib_rs/axes/__init__.py +19 -0
- matplotlib_rs/axes/_axes.py +9402 -0
- matplotlib_rs/axes/_bar.py +185 -0
- matplotlib_rs/axes/_base.py +5236 -0
- matplotlib_rs/axes/_base_rs.py +727 -0
- matplotlib_rs/axes/_boxplot.py +391 -0
- matplotlib_rs/axes/_hist.py +99 -0
- matplotlib_rs/axes/_secondary_axes.py +357 -0
- matplotlib_rs/axis.py +1963 -0
- matplotlib_rs/backend_bases.py +3760 -0
- matplotlib_rs/backend_managers.py +388 -0
- matplotlib_rs/backend_tools.py +1002 -0
- matplotlib_rs/backends/__init__.py +6 -0
- matplotlib_rs/backends/_backend_pdf_ps.py +451 -0
- matplotlib_rs/backends/backend_agg.py +552 -0
- matplotlib_rs/backends/backend_mixed.py +123 -0
- matplotlib_rs/backends/backend_pdf.py +2711 -0
- matplotlib_rs/backends/backend_pgf.py +1031 -0
- matplotlib_rs/backends/backend_ps.py +1491 -0
- matplotlib_rs/backends/backend_svg.py +1395 -0
- matplotlib_rs/backends/backend_template.py +214 -0
- matplotlib_rs/backends/registry.py +423 -0
- matplotlib_rs/bezier.py +691 -0
- matplotlib_rs/category.py +236 -0
- matplotlib_rs/cbook.py +2762 -0
- matplotlib_rs/cm.py +251 -0
- matplotlib_rs/collections.py +2711 -0
- matplotlib_rs/colorbar.py +1586 -0
- matplotlib_rs/colorizer.py +909 -0
- matplotlib_rs/colors.py +4278 -0
- matplotlib_rs/container.py +256 -0
- matplotlib_rs/contour.py +1756 -0
- matplotlib_rs/dates.py +1847 -0
- matplotlib_rs/dviread.py +1386 -0
- matplotlib_rs/figure.py +3815 -0
- matplotlib_rs/font_manager.py +1855 -0
- matplotlib_rs/ft2font.py +515 -0
- matplotlib_rs/gridspec.py +808 -0
- matplotlib_rs/hatch.py +244 -0
- matplotlib_rs/image.py +1863 -0
- matplotlib_rs/inset.py +291 -0
- matplotlib_rs/layout_engine.py +310 -0
- matplotlib_rs/legend.py +1480 -0
- matplotlib_rs/legend_handler.py +812 -0
- matplotlib_rs/lines.py +1886 -0
- matplotlib_rs/markers.py +908 -0
- matplotlib_rs/mathtext.py +141 -0
- matplotlib_rs/mlab.py +959 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/LICENSE_DEJAVU +99 -0
- matplotlib_rs/mpl-data/fonts/ttf/LICENSE_STIX +124 -0
- matplotlib_rs/mpl-data/fonts/ttf/LastResortHE-Regular.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXGeneral.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralItalic.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXNonUni.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniIta.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmb10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmex10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmmi10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmr10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmss10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmsy10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmti10.ttf +0 -0
- matplotlib_rs/mpl-data/fonts/ttf/cmtt10.ttf +0 -0
- matplotlib_rs/mpl-data/images/back-symbolic.svg +46 -0
- matplotlib_rs/mpl-data/images/back.pdf +0 -0
- matplotlib_rs/mpl-data/images/back.png +0 -0
- matplotlib_rs/mpl-data/images/back.svg +46 -0
- matplotlib_rs/mpl-data/images/back_large.png +0 -0
- matplotlib_rs/mpl-data/images/filesave-symbolic.svg +68 -0
- matplotlib_rs/mpl-data/images/filesave.pdf +72 -0
- matplotlib_rs/mpl-data/images/filesave.png +0 -0
- matplotlib_rs/mpl-data/images/filesave.svg +68 -0
- matplotlib_rs/mpl-data/images/filesave_large.png +0 -0
- matplotlib_rs/mpl-data/images/forward-symbolic.svg +46 -0
- matplotlib_rs/mpl-data/images/forward.pdf +0 -0
- matplotlib_rs/mpl-data/images/forward.png +0 -0
- matplotlib_rs/mpl-data/images/forward.svg +46 -0
- matplotlib_rs/mpl-data/images/forward_large.png +0 -0
- matplotlib_rs/mpl-data/images/hand.pdf +0 -0
- matplotlib_rs/mpl-data/images/hand.png +0 -0
- matplotlib_rs/mpl-data/images/hand.svg +130 -0
- matplotlib_rs/mpl-data/images/help-symbolic.svg +52 -0
- matplotlib_rs/mpl-data/images/help.pdf +71 -0
- matplotlib_rs/mpl-data/images/help.png +0 -0
- matplotlib_rs/mpl-data/images/help.svg +52 -0
- matplotlib_rs/mpl-data/images/help_large.png +0 -0
- matplotlib_rs/mpl-data/images/home-symbolic.svg +59 -0
- matplotlib_rs/mpl-data/images/home.pdf +0 -0
- matplotlib_rs/mpl-data/images/home.png +0 -0
- matplotlib_rs/mpl-data/images/home.svg +59 -0
- matplotlib_rs/mpl-data/images/home_large.png +0 -0
- matplotlib_rs/mpl-data/images/matplotlib.pdf +0 -0
- matplotlib_rs/mpl-data/images/matplotlib.png +0 -0
- matplotlib_rs/mpl-data/images/matplotlib.svg +3171 -0
- matplotlib_rs/mpl-data/images/matplotlib_large.png +0 -0
- matplotlib_rs/mpl-data/images/move-symbolic.svg +73 -0
- matplotlib_rs/mpl-data/images/move.pdf +0 -0
- matplotlib_rs/mpl-data/images/move.png +0 -0
- matplotlib_rs/mpl-data/images/move.svg +73 -0
- matplotlib_rs/mpl-data/images/move_large.png +0 -0
- matplotlib_rs/mpl-data/images/qt4_editor_options.pdf +0 -0
- matplotlib_rs/mpl-data/images/qt4_editor_options.png +0 -0
- matplotlib_rs/mpl-data/images/qt4_editor_options.svg +48 -0
- matplotlib_rs/mpl-data/images/qt4_editor_options_large.png +0 -0
- matplotlib_rs/mpl-data/images/subplots-symbolic.svg +81 -0
- matplotlib_rs/mpl-data/images/subplots.pdf +0 -0
- matplotlib_rs/mpl-data/images/subplots.png +0 -0
- matplotlib_rs/mpl-data/images/subplots.svg +81 -0
- matplotlib_rs/mpl-data/images/subplots_large.png +0 -0
- matplotlib_rs/mpl-data/images/zoom_to_rect-symbolic.svg +40 -0
- matplotlib_rs/mpl-data/images/zoom_to_rect.pdf +69 -0
- matplotlib_rs/mpl-data/images/zoom_to_rect.png +0 -0
- matplotlib_rs/mpl-data/images/zoom_to_rect.svg +40 -0
- matplotlib_rs/mpl-data/images/zoom_to_rect_large.png +0 -0
- matplotlib_rs/mpl-data/kpsewhich.lua +4 -0
- matplotlib_rs/mpl-data/matplotlibrc +849 -0
- matplotlib_rs/mpl-data/plot_directive/plot_directive.css +16 -0
- matplotlib_rs/mpl-data/sample_data/Minduka_Present_Blue_Pack.png +0 -0
- matplotlib_rs/mpl-data/sample_data/README.txt +2 -0
- matplotlib_rs/mpl-data/sample_data/Stocks.csv +526 -0
- matplotlib_rs/mpl-data/sample_data/axes_grid/bivariate_normal.npy +0 -0
- matplotlib_rs/mpl-data/sample_data/data_x_x2_x3.csv +11 -0
- matplotlib_rs/mpl-data/sample_data/eeg.dat +0 -0
- matplotlib_rs/mpl-data/sample_data/embedding_in_wx3.xrc +65 -0
- matplotlib_rs/mpl-data/sample_data/goog.npz +0 -0
- matplotlib_rs/mpl-data/sample_data/grace_hopper.jpg +0 -0
- matplotlib_rs/mpl-data/sample_data/jacksboro_fault_dem.npz +0 -0
- matplotlib_rs/mpl-data/sample_data/logo2.png +0 -0
- matplotlib_rs/mpl-data/sample_data/membrane.dat +0 -0
- matplotlib_rs/mpl-data/sample_data/msft.csv +66 -0
- matplotlib_rs/mpl-data/sample_data/s1045.ima.gz +0 -0
- matplotlib_rs/mpl-data/sample_data/topobathy.npz +0 -0
- matplotlib_rs/mpl-data/stylelib/Solarize_Light2.mplstyle +53 -0
- matplotlib_rs/mpl-data/stylelib/_classic_test_patch.mplstyle +8 -0
- matplotlib_rs/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle +19 -0
- matplotlib_rs/mpl-data/stylelib/_mpl-gallery.mplstyle +19 -0
- matplotlib_rs/mpl-data/stylelib/bmh.mplstyle +27 -0
- matplotlib_rs/mpl-data/stylelib/classic.mplstyle +491 -0
- matplotlib_rs/mpl-data/stylelib/dark_background.mplstyle +26 -0
- matplotlib_rs/mpl-data/stylelib/fast.mplstyle +11 -0
- matplotlib_rs/mpl-data/stylelib/fivethirtyeight.mplstyle +37 -0
- matplotlib_rs/mpl-data/stylelib/ggplot.mplstyle +39 -0
- matplotlib_rs/mpl-data/stylelib/grayscale.mplstyle +29 -0
- matplotlib_rs/mpl-data/stylelib/petroff10.mplstyle +5 -0
- matplotlib_rs/mpl-data/stylelib/petroff6.mplstyle +5 -0
- matplotlib_rs/mpl-data/stylelib/petroff8.mplstyle +5 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-bright.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-colorblind.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark-palette.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark.mplstyle +30 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-darkgrid.mplstyle +30 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-deep.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-muted.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-notebook.mplstyle +21 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-paper.mplstyle +21 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-pastel.mplstyle +3 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-poster.mplstyle +21 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-talk.mplstyle +21 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-ticks.mplstyle +30 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-white.mplstyle +30 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-whitegrid.mplstyle +30 -0
- matplotlib_rs/mpl-data/stylelib/seaborn-v0_8.mplstyle +57 -0
- matplotlib_rs/mpl-data/stylelib/tableau-colorblind10.mplstyle +3 -0
- matplotlib_rs/mpl_toolkits/__init__.py +3 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/__init__.py +11 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/anchored_artists.py +415 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/axes_divider.py +619 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/axes_grid.py +565 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/axes_rgb.py +158 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/axes_size.py +272 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/inset_locator.py +525 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/mpl_axes.py +129 -0
- matplotlib_rs/mpl_toolkits/axes_grid1/parasite_axes.py +261 -0
- matplotlib_rs/mpl_toolkits/axisartist/__init__.py +15 -0
- matplotlib_rs/mpl_toolkits/axisartist/angle_helper.py +396 -0
- matplotlib_rs/mpl_toolkits/axisartist/axes_divider.py +3 -0
- matplotlib_rs/mpl_toolkits/axisartist/axis_artist.py +1148 -0
- matplotlib_rs/mpl_toolkits/axisartist/axisline_style.py +193 -0
- matplotlib_rs/mpl_toolkits/axisartist/axislines.py +475 -0
- matplotlib_rs/mpl_toolkits/axisartist/floating_axes.py +265 -0
- matplotlib_rs/mpl_toolkits/axisartist/grid_finder.py +329 -0
- matplotlib_rs/mpl_toolkits/axisartist/grid_helper_curvelinear.py +353 -0
- matplotlib_rs/mpl_toolkits/axisartist/parasite_axes.py +8 -0
- matplotlib_rs/mpl_toolkits/mplot3d/__init__.py +4 -0
- matplotlib_rs/mpl_toolkits/mplot3d/art3d.py +1758 -0
- matplotlib_rs/mpl_toolkits/mplot3d/axes3d.py +4462 -0
- matplotlib_rs/mpl_toolkits/mplot3d/axis3d.py +807 -0
- matplotlib_rs/mpl_toolkits/mplot3d/proj3d.py +270 -0
- matplotlib_rs/offsetbox.py +1726 -0
- matplotlib_rs/patches.py +5049 -0
- matplotlib_rs/path.py +1147 -0
- matplotlib_rs/patheffects.py +512 -0
- matplotlib_rs/projections/__init__.py +126 -0
- matplotlib_rs/projections/geo.py +512 -0
- matplotlib_rs/projections/polar.py +1518 -0
- matplotlib_rs/pylab.py +68 -0
- matplotlib_rs/pyplot.py +4834 -0
- matplotlib_rs/quiver.py +1236 -0
- matplotlib_rs/rcsetup.py +3435 -0
- matplotlib_rs/sankey.py +815 -0
- matplotlib_rs/scale.py +1002 -0
- matplotlib_rs/spines.py +618 -0
- matplotlib_rs/stackplot.py +144 -0
- matplotlib_rs/streamplot.py +768 -0
- matplotlib_rs/style/__init__.py +269 -0
- matplotlib_rs/style/core.py +28 -0
- matplotlib_rs/table.py +860 -0
- matplotlib_rs/texmanager.py +375 -0
- matplotlib_rs/text.py +2412 -0
- matplotlib_rs/textpath.py +377 -0
- matplotlib_rs/ticker.py +3111 -0
- matplotlib_rs/transforms.py +3069 -0
- matplotlib_rs/tri/__init__.py +24 -0
- matplotlib_rs/tri/_triangulation.py +248 -0
- matplotlib_rs/tri/_tricontour.py +271 -0
- matplotlib_rs/tri/_trifinder.py +97 -0
- matplotlib_rs/tri/_triinterpolate.py +1575 -0
- matplotlib_rs/tri/_tripcolor.py +170 -0
- matplotlib_rs/tri/_triplot.py +87 -0
- matplotlib_rs/tri/_trirefine.py +308 -0
- matplotlib_rs/tri/_tritools.py +264 -0
- matplotlib_rs/typing.py +597 -0
- matplotlib_rs/units.py +196 -0
- matplotlib_rs/widgets.py +4455 -0
- matplotlib_rs-0.0.8.dist-info/METADATA +392 -0
- matplotlib_rs-0.0.8.dist-info/RECORD +352 -0
- matplotlib_rs-0.0.8.dist-info/WHEEL +4 -0
- matplotlib_rs-0.0.8.dist-info/sboms/matplotlib-rs.cyclonedx.json +4390 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
"""
|
|
3
|
+
Core functions and attributes for the matplotlib style library:
|
|
4
|
+
|
|
5
|
+
``use``
|
|
6
|
+
Select style sheet to override the current matplotlib settings.
|
|
7
|
+
``context``
|
|
8
|
+
Context manager to use a style sheet temporarily.
|
|
9
|
+
``available``
|
|
10
|
+
List available style sheets. Underscore-prefixed names are considered private and
|
|
11
|
+
not listed, though may still be accessed directly from ``library``.
|
|
12
|
+
``library``
|
|
13
|
+
A dictionary of style names and matplotlib settings.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
import contextlib
|
|
17
|
+
import importlib.resources
|
|
18
|
+
import logging
|
|
19
|
+
import os
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
import warnings
|
|
22
|
+
|
|
23
|
+
import matplotlib_rs as mpl
|
|
24
|
+
from matplotlib_rs import _api, _docstring, rc_params_from_file, rcParamsDefault
|
|
25
|
+
|
|
26
|
+
_log = logging.getLogger(__name__)
|
|
27
|
+
|
|
28
|
+
__all__ = ['use', 'context', 'available', 'library', 'reload_library']
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
_BASE_LIBRARY_PATH = os.path.join(mpl.get_data_path(), 'stylelib')
|
|
32
|
+
# Users may want multiple library paths, so store a list of paths.
|
|
33
|
+
USER_LIBRARY_PATHS = [os.path.join(mpl.get_configdir(), 'stylelib')]
|
|
34
|
+
_STYLE_EXTENSION = 'mplstyle'
|
|
35
|
+
# A list of rcParams that should not be applied from styles
|
|
36
|
+
_STYLE_BLACKLIST = {
|
|
37
|
+
'interactive', 'backend', 'webagg.port', 'webagg.address',
|
|
38
|
+
'webagg.port_retries', 'webagg.open_in_browser', 'backend_fallback',
|
|
39
|
+
'toolbar', 'timezone', 'figure.max_open_warning',
|
|
40
|
+
'figure.raise_window', 'savefig.directory', 'tk.window_focus',
|
|
41
|
+
'docstring.hardcopy', 'date.epoch'}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@_docstring.Substitution(
|
|
45
|
+
"\n".join(map("- {}".format, sorted(_STYLE_BLACKLIST, key=str.lower)))
|
|
46
|
+
)
|
|
47
|
+
def use(style):
|
|
48
|
+
"""
|
|
49
|
+
Use Matplotlib style settings from a style specification.
|
|
50
|
+
|
|
51
|
+
The style name of 'default' is reserved for reverting back to
|
|
52
|
+
the default style settings.
|
|
53
|
+
|
|
54
|
+
.. note::
|
|
55
|
+
|
|
56
|
+
This updates the `.rcParams` with the settings from the style.
|
|
57
|
+
`.rcParams` not defined in the style are kept.
|
|
58
|
+
|
|
59
|
+
Parameters
|
|
60
|
+
----------
|
|
61
|
+
style : str, dict, Path or list
|
|
62
|
+
|
|
63
|
+
A style specification. Valid options are:
|
|
64
|
+
|
|
65
|
+
str
|
|
66
|
+
- One of the style names in `.style.available` (a builtin style or
|
|
67
|
+
a style installed in the user library path).
|
|
68
|
+
|
|
69
|
+
- A dotted name of the form "package.style_name"; in that case,
|
|
70
|
+
"package" should be an importable Python package name, e.g. at
|
|
71
|
+
``/path/to/package/__init__.py``; the loaded style file is
|
|
72
|
+
``/path/to/package/style_name.mplstyle``. (Style files in
|
|
73
|
+
subpackages are likewise supported.)
|
|
74
|
+
|
|
75
|
+
- The path or URL to a style file, which gets loaded by
|
|
76
|
+
`.rc_params_from_file`.
|
|
77
|
+
|
|
78
|
+
dict
|
|
79
|
+
A mapping of key/value pairs for `matplotlib.rcParams`.
|
|
80
|
+
|
|
81
|
+
Path
|
|
82
|
+
The path to a style file, which gets loaded by
|
|
83
|
+
`.rc_params_from_file`.
|
|
84
|
+
|
|
85
|
+
list
|
|
86
|
+
A list of style specifiers (str, Path or dict), which are applied
|
|
87
|
+
from first to last in the list.
|
|
88
|
+
|
|
89
|
+
Notes
|
|
90
|
+
-----
|
|
91
|
+
The following `.rcParams` are not related to style and will be ignored if
|
|
92
|
+
found in a style specification:
|
|
93
|
+
|
|
94
|
+
%s
|
|
95
|
+
"""
|
|
96
|
+
_load_library()
|
|
97
|
+
if isinstance(style, (str, Path)) or hasattr(style, 'keys'):
|
|
98
|
+
# If name is a single str, Path or dict, make it a single element list.
|
|
99
|
+
styles = [style]
|
|
100
|
+
else:
|
|
101
|
+
styles = style
|
|
102
|
+
|
|
103
|
+
style_alias = {'mpl20': 'default', 'mpl15': 'classic'}
|
|
104
|
+
|
|
105
|
+
for style in styles:
|
|
106
|
+
if isinstance(style, str):
|
|
107
|
+
style = style_alias.get(style, style)
|
|
108
|
+
if style == "default":
|
|
109
|
+
# Deprecation warnings were already handled when creating
|
|
110
|
+
# rcParamsDefault, no need to reemit them here.
|
|
111
|
+
with _api.suppress_matplotlib_deprecation_warning():
|
|
112
|
+
# don't trigger RcParams.__getitem__('backend')
|
|
113
|
+
style = {k: rcParamsDefault[k] for k in rcParamsDefault
|
|
114
|
+
if k not in _STYLE_BLACKLIST}
|
|
115
|
+
elif style in library:
|
|
116
|
+
style = library[style]
|
|
117
|
+
elif "." in style:
|
|
118
|
+
pkg, _, name = style.rpartition(".")
|
|
119
|
+
try:
|
|
120
|
+
path = importlib.resources.files(pkg) / f"{name}.{_STYLE_EXTENSION}"
|
|
121
|
+
style = rc_params_from_file(path, use_default_template=False)
|
|
122
|
+
except (ModuleNotFoundError, OSError, TypeError) as exc:
|
|
123
|
+
# There is an ambiguity whether a dotted name refers to a
|
|
124
|
+
# package.style_name or to a dotted file path. Currently,
|
|
125
|
+
# we silently try the first form and then the second one;
|
|
126
|
+
# in the future, we may consider forcing file paths to
|
|
127
|
+
# either use Path objects or be prepended with "./" and use
|
|
128
|
+
# the slash as marker for file paths.
|
|
129
|
+
pass
|
|
130
|
+
if isinstance(style, (str, Path)):
|
|
131
|
+
try:
|
|
132
|
+
style = rc_params_from_file(style, use_default_template=False)
|
|
133
|
+
except OSError as err:
|
|
134
|
+
raise OSError(
|
|
135
|
+
f"{style!r} is not a valid package style, path of style "
|
|
136
|
+
f"file, URL of style file, or library style name (library "
|
|
137
|
+
f"styles are listed in `style.available`)") from err
|
|
138
|
+
filtered = {}
|
|
139
|
+
for k in style: # don't trigger RcParams.__getitem__('backend')
|
|
140
|
+
if k in _STYLE_BLACKLIST:
|
|
141
|
+
_api.warn_external(
|
|
142
|
+
f"Style includes a parameter, {k!r}, that is not "
|
|
143
|
+
f"related to style. Ignoring this parameter.")
|
|
144
|
+
else:
|
|
145
|
+
filtered[k] = style[k]
|
|
146
|
+
mpl.rcParams.update(filtered)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
@contextlib.contextmanager
|
|
150
|
+
def context(style, after_reset=False):
|
|
151
|
+
"""
|
|
152
|
+
Context manager for using style settings temporarily.
|
|
153
|
+
|
|
154
|
+
Parameters
|
|
155
|
+
----------
|
|
156
|
+
style : str, dict, Path or list
|
|
157
|
+
A style specification. Valid options are:
|
|
158
|
+
|
|
159
|
+
str
|
|
160
|
+
- One of the style names in `.style.available` (a builtin style or
|
|
161
|
+
a style installed in the user library path).
|
|
162
|
+
|
|
163
|
+
- A dotted name of the form "package.style_name"; in that case,
|
|
164
|
+
"package" should be an importable Python package name, e.g. at
|
|
165
|
+
``/path/to/package/__init__.py``; the loaded style file is
|
|
166
|
+
``/path/to/package/style_name.mplstyle``. (Style files in
|
|
167
|
+
subpackages are likewise supported.)
|
|
168
|
+
|
|
169
|
+
- The path or URL to a style file, which gets loaded by
|
|
170
|
+
`.rc_params_from_file`.
|
|
171
|
+
dict
|
|
172
|
+
A mapping of key/value pairs for `matplotlib.rcParams`.
|
|
173
|
+
|
|
174
|
+
Path
|
|
175
|
+
The path to a style file, which gets loaded by
|
|
176
|
+
`.rc_params_from_file`.
|
|
177
|
+
|
|
178
|
+
list
|
|
179
|
+
A list of style specifiers (str, Path or dict), which are applied
|
|
180
|
+
from first to last in the list.
|
|
181
|
+
|
|
182
|
+
after_reset : bool
|
|
183
|
+
If True, apply style after resetting settings to their defaults;
|
|
184
|
+
otherwise, apply style on top of the current settings.
|
|
185
|
+
"""
|
|
186
|
+
with mpl.rc_context():
|
|
187
|
+
if after_reset:
|
|
188
|
+
mpl.rcdefaults()
|
|
189
|
+
use(style)
|
|
190
|
+
yield
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def _update_user_library(library):
|
|
194
|
+
"""Update style library with user-defined rc files."""
|
|
195
|
+
for stylelib_path in map(os.path.expanduser, USER_LIBRARY_PATHS):
|
|
196
|
+
styles = _read_style_directory(stylelib_path)
|
|
197
|
+
_update_nested_dict(library, styles)
|
|
198
|
+
return library
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
@_api.deprecated("3.11")
|
|
202
|
+
def update_user_library(library):
|
|
203
|
+
return _update_user_library(library)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def _read_style_directory(style_dir):
|
|
207
|
+
"""Return dictionary of styles defined in *style_dir*."""
|
|
208
|
+
styles = dict()
|
|
209
|
+
for path in Path(style_dir).glob(f"*.{_STYLE_EXTENSION}"):
|
|
210
|
+
with warnings.catch_warnings(record=True) as warns:
|
|
211
|
+
styles[path.stem] = rc_params_from_file(path, use_default_template=False)
|
|
212
|
+
for w in warns:
|
|
213
|
+
_log.warning('In %s: %s', path, w.message)
|
|
214
|
+
return styles
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
@_api.deprecated("3.11")
|
|
218
|
+
def read_style_directory(style_dir):
|
|
219
|
+
return _read_style_directory(style_dir)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def _update_nested_dict(main_dict, new_dict):
|
|
223
|
+
"""
|
|
224
|
+
Update nested dict (only level of nesting) with new values.
|
|
225
|
+
|
|
226
|
+
Unlike `dict.update`, this assumes that the values of the parent dict are
|
|
227
|
+
dicts (or dict-like), so you shouldn't replace the nested dict if it
|
|
228
|
+
already exists. Instead you should update the sub-dict.
|
|
229
|
+
"""
|
|
230
|
+
# update named styles specified by user
|
|
231
|
+
for name, rc_dict in new_dict.items():
|
|
232
|
+
main_dict.setdefault(name, {}).update(rc_dict)
|
|
233
|
+
return main_dict
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
@_api.deprecated("3.11")
|
|
237
|
+
def update_nested_dict(main_dict, new_dict):
|
|
238
|
+
return _update_nested_dict(main_dict, new_dict)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
# Load style library
|
|
242
|
+
# ==================
|
|
243
|
+
_base_library = None
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
def _load_library():
|
|
247
|
+
global _base_library, library, available
|
|
248
|
+
if _base_library is None:
|
|
249
|
+
_base_library = _read_style_directory(_BASE_LIBRARY_PATH)
|
|
250
|
+
library = {}
|
|
251
|
+
available = []
|
|
252
|
+
reload_library()
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def __getattr__(name):
|
|
256
|
+
if name in ("library", "available"):
|
|
257
|
+
_load_library()
|
|
258
|
+
return globals()[name]
|
|
259
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def reload_library():
|
|
263
|
+
"""Reload the style library."""
|
|
264
|
+
if _base_library is None:
|
|
265
|
+
return _load_library()
|
|
266
|
+
library.clear()
|
|
267
|
+
library.update(_update_user_library(_base_library.copy()))
|
|
268
|
+
available[:] = sorted(name for name in library if not name.startswith('_'))
|
|
269
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
"""
|
|
3
|
+
Core functions and attributes for the matplotlib style library:
|
|
4
|
+
|
|
5
|
+
``use``
|
|
6
|
+
Select style sheet to override the current matplotlib settings.
|
|
7
|
+
``context``
|
|
8
|
+
Context manager to use a style sheet temporarily.
|
|
9
|
+
``available``
|
|
10
|
+
List available style sheets.
|
|
11
|
+
``library``
|
|
12
|
+
A dictionary of style names and matplotlib settings.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from .. import _api
|
|
16
|
+
from . import (
|
|
17
|
+
use, context, available, library, reload_library, USER_LIBRARY_PATHS,
|
|
18
|
+
_BASE_LIBRARY_PATH as BASE_LIBRARY_PATH,
|
|
19
|
+
_STYLE_EXTENSION as STYLE_EXTENSION,
|
|
20
|
+
_STYLE_BLACKLIST as STYLE_BLACKLIST,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"use", "context", "available", "library", "reload_library",
|
|
25
|
+
"USER_LIBRARY_PATHS", "BASE_LIBRARY_PATH", "STYLE_EXTENSION", "STYLE_BLACKLIST",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
_api.warn_deprecated("3.11", name=__name__, obj_type="module")
|