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,158 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
from types import MethodType
|
|
3
|
+
|
|
4
|
+
import numpy as np
|
|
5
|
+
|
|
6
|
+
from .axes_divider import make_axes_locatable, Size
|
|
7
|
+
from .mpl_axes import Axes, SimpleAxisArtist
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def make_rgb_axes(ax, pad=0.01, axes_class=None, **kwargs):
|
|
11
|
+
"""
|
|
12
|
+
Parameters
|
|
13
|
+
----------
|
|
14
|
+
ax : `~matplotlib.axes.Axes`
|
|
15
|
+
Axes instance to create the RGB Axes in.
|
|
16
|
+
pad : float, optional
|
|
17
|
+
Fraction of the Axes height to pad.
|
|
18
|
+
axes_class : `matplotlib.axes.Axes` or None, optional
|
|
19
|
+
Axes class to use for the R, G, and B Axes. If None, use
|
|
20
|
+
the same class as *ax*.
|
|
21
|
+
**kwargs
|
|
22
|
+
Forwarded to *axes_class* init for the R, G, and B Axes.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
divider = make_axes_locatable(ax)
|
|
26
|
+
|
|
27
|
+
pad_size = pad * Size.AxesY(ax)
|
|
28
|
+
|
|
29
|
+
xsize = ((1-2*pad)/3) * Size.AxesX(ax)
|
|
30
|
+
ysize = ((1-2*pad)/3) * Size.AxesY(ax)
|
|
31
|
+
|
|
32
|
+
divider.set_horizontal([Size.AxesX(ax), pad_size, xsize])
|
|
33
|
+
divider.set_vertical([ysize, pad_size, ysize, pad_size, ysize])
|
|
34
|
+
|
|
35
|
+
ax.set_axes_locator(divider.new_locator(0, 0, ny1=-1))
|
|
36
|
+
|
|
37
|
+
ax_rgb = []
|
|
38
|
+
if axes_class is None:
|
|
39
|
+
axes_class = type(ax)
|
|
40
|
+
|
|
41
|
+
for ny in [4, 2, 0]:
|
|
42
|
+
ax1 = axes_class(ax.get_figure(), ax.get_position(original=True),
|
|
43
|
+
sharex=ax, sharey=ax, **kwargs)
|
|
44
|
+
locator = divider.new_locator(nx=2, ny=ny)
|
|
45
|
+
ax1.set_axes_locator(locator)
|
|
46
|
+
for t in ax1.yaxis.get_ticklabels() + ax1.xaxis.get_ticklabels():
|
|
47
|
+
t.set_visible(False)
|
|
48
|
+
try:
|
|
49
|
+
for axis in ax1.axis.values():
|
|
50
|
+
axis.major_ticklabels.set_visible(False)
|
|
51
|
+
except AttributeError:
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
ax_rgb.append(ax1)
|
|
55
|
+
|
|
56
|
+
fig = ax.get_figure()
|
|
57
|
+
for ax1 in ax_rgb:
|
|
58
|
+
fig.add_axes(ax1)
|
|
59
|
+
|
|
60
|
+
return ax_rgb
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class RGBAxes:
|
|
64
|
+
"""
|
|
65
|
+
4-panel `~.Axes.imshow` (RGB, R, G, B).
|
|
66
|
+
|
|
67
|
+
Layout::
|
|
68
|
+
|
|
69
|
+
┌───────────────┬─────┐
|
|
70
|
+
│ │ R │
|
|
71
|
+
│ ├─────┤
|
|
72
|
+
│ RGB │ G │
|
|
73
|
+
│ ├─────┤
|
|
74
|
+
│ │ B │
|
|
75
|
+
└───────────────┴─────┘
|
|
76
|
+
|
|
77
|
+
Subclasses can override the ``_defaultAxesClass`` attribute.
|
|
78
|
+
By default RGBAxes uses `.mpl_axes.Axes`.
|
|
79
|
+
|
|
80
|
+
Attributes
|
|
81
|
+
----------
|
|
82
|
+
RGB : ``_defaultAxesClass``
|
|
83
|
+
The Axes object for the three-channel `~.Axes.imshow`.
|
|
84
|
+
R : ``_defaultAxesClass``
|
|
85
|
+
The Axes object for the red channel `~.Axes.imshow`.
|
|
86
|
+
G : ``_defaultAxesClass``
|
|
87
|
+
The Axes object for the green channel `~.Axes.imshow`.
|
|
88
|
+
B : ``_defaultAxesClass``
|
|
89
|
+
The Axes object for the blue channel `~.Axes.imshow`.
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
_defaultAxesClass = Axes
|
|
93
|
+
|
|
94
|
+
def __init__(self, *args, pad=0, **kwargs):
|
|
95
|
+
"""
|
|
96
|
+
Parameters
|
|
97
|
+
----------
|
|
98
|
+
pad : float, default: 0
|
|
99
|
+
Fraction of the Axes height to put as padding.
|
|
100
|
+
axes_class : `~matplotlib.axes.Axes`
|
|
101
|
+
Axes class to use. If not provided, ``_defaultAxesClass`` is used.
|
|
102
|
+
*args
|
|
103
|
+
Forwarded to *axes_class* init for the RGB Axes
|
|
104
|
+
**kwargs
|
|
105
|
+
Forwarded to *axes_class* init for the RGB, R, G, and B Axes
|
|
106
|
+
"""
|
|
107
|
+
axes_class = kwargs.pop("axes_class", self._defaultAxesClass)
|
|
108
|
+
self.RGB = ax = axes_class(*args, **kwargs)
|
|
109
|
+
ax.get_figure().add_axes(ax)
|
|
110
|
+
self.R, self.G, self.B = make_rgb_axes(
|
|
111
|
+
ax, pad=pad, axes_class=axes_class, **kwargs)
|
|
112
|
+
# Set the line color and ticks for the axes.
|
|
113
|
+
for ax1 in [self.RGB, self.R, self.G, self.B]:
|
|
114
|
+
if isinstance(ax1.axis, MethodType):
|
|
115
|
+
ad = Axes.AxisDict(self)
|
|
116
|
+
ad.update(
|
|
117
|
+
bottom=SimpleAxisArtist(ax1.xaxis, 1, ax1.spines["bottom"]),
|
|
118
|
+
top=SimpleAxisArtist(ax1.xaxis, 2, ax1.spines["top"]),
|
|
119
|
+
left=SimpleAxisArtist(ax1.yaxis, 1, ax1.spines["left"]),
|
|
120
|
+
right=SimpleAxisArtist(ax1.yaxis, 2, ax1.spines["right"]))
|
|
121
|
+
else:
|
|
122
|
+
ad = ax1.axis
|
|
123
|
+
ad[:].line.set_color("w")
|
|
124
|
+
ad[:].major_ticks.set_markeredgecolor("w")
|
|
125
|
+
|
|
126
|
+
def imshow_rgb(self, r, g, b, **kwargs):
|
|
127
|
+
"""
|
|
128
|
+
Create the four images {rgb, r, g, b}.
|
|
129
|
+
|
|
130
|
+
Parameters
|
|
131
|
+
----------
|
|
132
|
+
r, g, b : array-like
|
|
133
|
+
The red, green, and blue arrays.
|
|
134
|
+
**kwargs
|
|
135
|
+
Forwarded to `~.Axes.imshow` calls for the four images.
|
|
136
|
+
|
|
137
|
+
Returns
|
|
138
|
+
-------
|
|
139
|
+
rgb : `~matplotlib.image.AxesImage`
|
|
140
|
+
r : `~matplotlib.image.AxesImage`
|
|
141
|
+
g : `~matplotlib.image.AxesImage`
|
|
142
|
+
b : `~matplotlib.image.AxesImage`
|
|
143
|
+
"""
|
|
144
|
+
if not (r.shape == g.shape == b.shape):
|
|
145
|
+
raise ValueError(
|
|
146
|
+
f'Input shapes ({r.shape}, {g.shape}, {b.shape}) do not match')
|
|
147
|
+
RGB = np.dstack([r, g, b])
|
|
148
|
+
R = np.zeros_like(RGB)
|
|
149
|
+
R[:, :, 0] = r
|
|
150
|
+
G = np.zeros_like(RGB)
|
|
151
|
+
G[:, :, 1] = g
|
|
152
|
+
B = np.zeros_like(RGB)
|
|
153
|
+
B[:, :, 2] = b
|
|
154
|
+
im_rgb = self.RGB.imshow(RGB, **kwargs)
|
|
155
|
+
im_r = self.R.imshow(R, **kwargs)
|
|
156
|
+
im_g = self.G.imshow(G, **kwargs)
|
|
157
|
+
im_b = self.B.imshow(B, **kwargs)
|
|
158
|
+
return im_rgb, im_r, im_g, im_b
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
"""
|
|
3
|
+
Provides classes of simple units that will be used with `.AxesDivider`
|
|
4
|
+
class (or others) to determine the size of each Axes. The unit
|
|
5
|
+
classes define `!get_size` method that returns a tuple of two floats,
|
|
6
|
+
meaning relative and absolute sizes, respectively.
|
|
7
|
+
|
|
8
|
+
Note that this class is nothing more than a simple tuple of two
|
|
9
|
+
floats. Take a look at the Divider class to see how these two
|
|
10
|
+
values are used.
|
|
11
|
+
|
|
12
|
+
Once created, the unit classes can be modified by simple arithmetic
|
|
13
|
+
operations: addition /subtraction with another unit type or a real number and scaling
|
|
14
|
+
(multiplication or division) by a real number.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from numbers import Real
|
|
18
|
+
|
|
19
|
+
from matplotlib_rs import _api
|
|
20
|
+
from matplotlib_rs.axes import Axes
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class _Base:
|
|
24
|
+
def __rmul__(self, other):
|
|
25
|
+
return self * other
|
|
26
|
+
|
|
27
|
+
def __mul__(self, other):
|
|
28
|
+
if not isinstance(other, Real):
|
|
29
|
+
return NotImplemented
|
|
30
|
+
return Fraction(other, self)
|
|
31
|
+
|
|
32
|
+
def __div__(self, other):
|
|
33
|
+
return (1 / other) * self
|
|
34
|
+
|
|
35
|
+
def __add__(self, other):
|
|
36
|
+
if isinstance(other, _Base):
|
|
37
|
+
return Add(self, other)
|
|
38
|
+
else:
|
|
39
|
+
return Add(self, Fixed(other))
|
|
40
|
+
|
|
41
|
+
def __neg__(self):
|
|
42
|
+
return -1 * self
|
|
43
|
+
|
|
44
|
+
def __radd__(self, other):
|
|
45
|
+
# other cannot be a _Base instance, because A + B would trigger
|
|
46
|
+
# A.__add__(B) first.
|
|
47
|
+
return Add(self, Fixed(other))
|
|
48
|
+
|
|
49
|
+
def __sub__(self, other):
|
|
50
|
+
return self + (-other)
|
|
51
|
+
|
|
52
|
+
def get_size(self, renderer):
|
|
53
|
+
"""
|
|
54
|
+
Return two-float tuple with relative and absolute sizes.
|
|
55
|
+
"""
|
|
56
|
+
raise NotImplementedError("Subclasses must implement")
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class Add(_Base):
|
|
60
|
+
"""
|
|
61
|
+
Sum of two sizes.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def __init__(self, a, b):
|
|
65
|
+
self._a = a
|
|
66
|
+
self._b = b
|
|
67
|
+
|
|
68
|
+
def get_size(self, renderer):
|
|
69
|
+
a_rel_size, a_abs_size = self._a.get_size(renderer)
|
|
70
|
+
b_rel_size, b_abs_size = self._b.get_size(renderer)
|
|
71
|
+
return a_rel_size + b_rel_size, a_abs_size + b_abs_size
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class Fixed(_Base):
|
|
75
|
+
"""
|
|
76
|
+
Simple fixed size with absolute part = *fixed_size* and relative part = 0.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
def __init__(self, fixed_size):
|
|
80
|
+
_api.check_isinstance(Real, fixed_size=fixed_size)
|
|
81
|
+
self.fixed_size = fixed_size
|
|
82
|
+
|
|
83
|
+
def get_size(self, renderer):
|
|
84
|
+
rel_size = 0.
|
|
85
|
+
abs_size = self.fixed_size
|
|
86
|
+
return rel_size, abs_size
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class Scaled(_Base):
|
|
90
|
+
"""
|
|
91
|
+
Simple scaled(?) size with absolute part = 0 and
|
|
92
|
+
relative part = *scalable_size*.
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def __init__(self, scalable_size):
|
|
96
|
+
self._scalable_size = scalable_size
|
|
97
|
+
|
|
98
|
+
def get_size(self, renderer):
|
|
99
|
+
rel_size = self._scalable_size
|
|
100
|
+
abs_size = 0.
|
|
101
|
+
return rel_size, abs_size
|
|
102
|
+
|
|
103
|
+
Scalable = Scaled
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _get_axes_aspect(ax):
|
|
107
|
+
aspect = ax.get_aspect()
|
|
108
|
+
if aspect == "auto":
|
|
109
|
+
aspect = 1.
|
|
110
|
+
return aspect
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class AxesX(_Base):
|
|
114
|
+
"""
|
|
115
|
+
Scaled size whose relative part corresponds to the data width
|
|
116
|
+
of the *axes* multiplied by the *aspect*.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
def __init__(self, axes, aspect=1., ref_ax=None):
|
|
120
|
+
self._axes = axes
|
|
121
|
+
self._aspect = aspect
|
|
122
|
+
if aspect == "axes" and ref_ax is None:
|
|
123
|
+
raise ValueError("ref_ax must be set when aspect='axes'")
|
|
124
|
+
self._ref_ax = ref_ax
|
|
125
|
+
|
|
126
|
+
def get_size(self, renderer):
|
|
127
|
+
l1, l2 = self._axes.get_xlim()
|
|
128
|
+
if self._aspect == "axes":
|
|
129
|
+
ref_aspect = _get_axes_aspect(self._ref_ax)
|
|
130
|
+
aspect = ref_aspect / _get_axes_aspect(self._axes)
|
|
131
|
+
else:
|
|
132
|
+
aspect = self._aspect
|
|
133
|
+
|
|
134
|
+
rel_size = abs(l2-l1)*aspect
|
|
135
|
+
abs_size = 0.
|
|
136
|
+
return rel_size, abs_size
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class AxesY(_Base):
|
|
140
|
+
"""
|
|
141
|
+
Scaled size whose relative part corresponds to the data height
|
|
142
|
+
of the *axes* multiplied by the *aspect*.
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
def __init__(self, axes, aspect=1., ref_ax=None):
|
|
146
|
+
self._axes = axes
|
|
147
|
+
self._aspect = aspect
|
|
148
|
+
if aspect == "axes" and ref_ax is None:
|
|
149
|
+
raise ValueError("ref_ax must be set when aspect='axes'")
|
|
150
|
+
self._ref_ax = ref_ax
|
|
151
|
+
|
|
152
|
+
def get_size(self, renderer):
|
|
153
|
+
l1, l2 = self._axes.get_ylim()
|
|
154
|
+
|
|
155
|
+
if self._aspect == "axes":
|
|
156
|
+
ref_aspect = _get_axes_aspect(self._ref_ax)
|
|
157
|
+
aspect = _get_axes_aspect(self._axes)
|
|
158
|
+
else:
|
|
159
|
+
aspect = self._aspect
|
|
160
|
+
|
|
161
|
+
rel_size = abs(l2-l1)*aspect
|
|
162
|
+
abs_size = 0.
|
|
163
|
+
return rel_size, abs_size
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
class MaxExtent(_Base):
|
|
167
|
+
"""
|
|
168
|
+
Size whose absolute part is either the largest width or the largest height
|
|
169
|
+
of the given *artist_list*.
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
def __init__(self, artist_list, w_or_h):
|
|
173
|
+
self._artist_list = artist_list
|
|
174
|
+
_api.check_in_list(["width", "height"], w_or_h=w_or_h)
|
|
175
|
+
self._w_or_h = w_or_h
|
|
176
|
+
|
|
177
|
+
def add_artist(self, a):
|
|
178
|
+
self._artist_list.append(a)
|
|
179
|
+
|
|
180
|
+
def get_size(self, renderer):
|
|
181
|
+
rel_size = 0.
|
|
182
|
+
extent_list = [
|
|
183
|
+
getattr(a.get_window_extent(renderer), self._w_or_h) / a.figure.dpi
|
|
184
|
+
for a in self._artist_list]
|
|
185
|
+
abs_size = max(extent_list, default=0)
|
|
186
|
+
return rel_size, abs_size
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class MaxWidth(MaxExtent):
|
|
190
|
+
"""
|
|
191
|
+
Size whose absolute part is the largest width of the given *artist_list*.
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
def __init__(self, artist_list):
|
|
195
|
+
super().__init__(artist_list, "width")
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class MaxHeight(MaxExtent):
|
|
199
|
+
"""
|
|
200
|
+
Size whose absolute part is the largest height of the given *artist_list*.
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
def __init__(self, artist_list):
|
|
204
|
+
super().__init__(artist_list, "height")
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class Fraction(_Base):
|
|
208
|
+
"""
|
|
209
|
+
An instance whose size is a *fraction* of the *ref_size*.
|
|
210
|
+
|
|
211
|
+
>>> s = Fraction(0.3, AxesX(ax))
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
def __init__(self, fraction, ref_size):
|
|
215
|
+
_api.check_isinstance(Real, fraction=fraction)
|
|
216
|
+
self._fraction_ref = ref_size
|
|
217
|
+
self._fraction = fraction
|
|
218
|
+
|
|
219
|
+
def get_size(self, renderer):
|
|
220
|
+
if self._fraction_ref is None:
|
|
221
|
+
return self._fraction, 0.
|
|
222
|
+
else:
|
|
223
|
+
r, a = self._fraction_ref.get_size(renderer)
|
|
224
|
+
rel_size = r*self._fraction
|
|
225
|
+
abs_size = a*self._fraction
|
|
226
|
+
return rel_size, abs_size
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def from_any(size, fraction_ref=None):
|
|
230
|
+
"""
|
|
231
|
+
Create a Fixed unit when the first argument is a float, or a
|
|
232
|
+
Fraction unit if that is a string that ends with %. The second
|
|
233
|
+
argument is only meaningful when Fraction unit is created.
|
|
234
|
+
|
|
235
|
+
>>> from mpl_toolkits.axes_grid1.axes_size import from_any
|
|
236
|
+
>>> a = from_any(1.2) # => Fixed(1.2)
|
|
237
|
+
>>> from_any("50%", a) # => Fraction(0.5, a)
|
|
238
|
+
"""
|
|
239
|
+
if isinstance(size, Real):
|
|
240
|
+
return Fixed(size)
|
|
241
|
+
elif isinstance(size, str):
|
|
242
|
+
if size[-1] == "%":
|
|
243
|
+
return Fraction(float(size[:-1]) / 100, fraction_ref)
|
|
244
|
+
raise ValueError("Unknown format")
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
class _AxesDecorationsSize(_Base):
|
|
248
|
+
"""
|
|
249
|
+
Fixed size, corresponding to the size of decorations on a given Axes side.
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
_get_size_map = {
|
|
253
|
+
"left": lambda tight_bb, axes_bb: axes_bb.xmin - tight_bb.xmin,
|
|
254
|
+
"right": lambda tight_bb, axes_bb: tight_bb.xmax - axes_bb.xmax,
|
|
255
|
+
"bottom": lambda tight_bb, axes_bb: axes_bb.ymin - tight_bb.ymin,
|
|
256
|
+
"top": lambda tight_bb, axes_bb: tight_bb.ymax - axes_bb.ymax,
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
def __init__(self, ax, direction):
|
|
260
|
+
_api.check_in_list(self._get_size_map, direction=direction)
|
|
261
|
+
self._direction = direction
|
|
262
|
+
self._ax_list = [ax] if isinstance(ax, Axes) else ax
|
|
263
|
+
|
|
264
|
+
def get_size(self, renderer):
|
|
265
|
+
sz = max([
|
|
266
|
+
self._get_size_map[self._direction](
|
|
267
|
+
ax.get_tightbbox(renderer, call_axes_locator=False), ax.bbox)
|
|
268
|
+
for ax in self._ax_list])
|
|
269
|
+
dpi = renderer.points_to_pixels(72)
|
|
270
|
+
abs_size = sz / dpi
|
|
271
|
+
rel_size = 0
|
|
272
|
+
return rel_size, abs_size
|