matplotlib-rs 0.0.8__cp313-cp313-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.cp313-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,388 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
from matplotlib_rs import _api, backend_tools, cbook, widgets
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ToolEvent:
|
|
6
|
+
"""Event for tool manipulation (add/remove)."""
|
|
7
|
+
def __init__(self, name, sender, tool, data=None):
|
|
8
|
+
self.name = name
|
|
9
|
+
self.sender = sender
|
|
10
|
+
self.tool = tool
|
|
11
|
+
self.data = data
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolTriggerEvent(ToolEvent):
|
|
15
|
+
"""Event to inform that a tool has been triggered."""
|
|
16
|
+
def __init__(self, name, sender, tool, canvasevent=None, data=None):
|
|
17
|
+
super().__init__(name, sender, tool, data)
|
|
18
|
+
self.canvasevent = canvasevent
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ToolManagerMessageEvent:
|
|
22
|
+
"""
|
|
23
|
+
Event carrying messages from toolmanager.
|
|
24
|
+
|
|
25
|
+
Messages usually get displayed to the user by the toolbar.
|
|
26
|
+
"""
|
|
27
|
+
def __init__(self, name, sender, message):
|
|
28
|
+
self.name = name
|
|
29
|
+
self.sender = sender
|
|
30
|
+
self.message = message
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ToolManager:
|
|
34
|
+
"""
|
|
35
|
+
Manager for actions triggered by user interactions (key press, toolbar
|
|
36
|
+
clicks, ...) on a Figure.
|
|
37
|
+
|
|
38
|
+
Attributes
|
|
39
|
+
----------
|
|
40
|
+
figure : `.Figure`
|
|
41
|
+
keypresslock : `~matplotlib.widgets.LockDraw`
|
|
42
|
+
`.LockDraw` object to know if the `canvas` key_press_event is locked.
|
|
43
|
+
messagelock : `~matplotlib.widgets.LockDraw`
|
|
44
|
+
`.LockDraw` object to know if the message is available to write.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def __init__(self, figure=None):
|
|
48
|
+
|
|
49
|
+
self._key_press_handler_id = None
|
|
50
|
+
|
|
51
|
+
self._tools = {}
|
|
52
|
+
self._keys = {}
|
|
53
|
+
self._toggled = {}
|
|
54
|
+
self._callbacks = cbook.CallbackRegistry()
|
|
55
|
+
|
|
56
|
+
# to process keypress event
|
|
57
|
+
self.keypresslock = widgets.LockDraw()
|
|
58
|
+
self.messagelock = widgets.LockDraw()
|
|
59
|
+
|
|
60
|
+
self._figure = None
|
|
61
|
+
self.set_figure(figure)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def canvas(self):
|
|
65
|
+
"""Canvas managed by FigureManager."""
|
|
66
|
+
if not self._figure:
|
|
67
|
+
return None
|
|
68
|
+
return self._figure.canvas
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def figure(self):
|
|
72
|
+
"""Figure that holds the canvas."""
|
|
73
|
+
return self._figure
|
|
74
|
+
|
|
75
|
+
@figure.setter
|
|
76
|
+
def figure(self, figure):
|
|
77
|
+
self.set_figure(figure)
|
|
78
|
+
|
|
79
|
+
def set_figure(self, figure, update_tools=True):
|
|
80
|
+
"""
|
|
81
|
+
Bind the given figure to the tools.
|
|
82
|
+
|
|
83
|
+
Parameters
|
|
84
|
+
----------
|
|
85
|
+
figure : `.Figure`
|
|
86
|
+
update_tools : bool, default: True
|
|
87
|
+
Force tools to update figure.
|
|
88
|
+
"""
|
|
89
|
+
if self._key_press_handler_id:
|
|
90
|
+
self.canvas.mpl_disconnect(self._key_press_handler_id)
|
|
91
|
+
self._figure = figure
|
|
92
|
+
if figure:
|
|
93
|
+
self._key_press_handler_id = self.canvas.mpl_connect(
|
|
94
|
+
'key_press_event', self._key_press)
|
|
95
|
+
if update_tools:
|
|
96
|
+
for tool in self._tools.values():
|
|
97
|
+
tool.figure = figure
|
|
98
|
+
|
|
99
|
+
def toolmanager_connect(self, s, func):
|
|
100
|
+
"""
|
|
101
|
+
Connect event with string *s* to *func*.
|
|
102
|
+
|
|
103
|
+
Parameters
|
|
104
|
+
----------
|
|
105
|
+
s : str
|
|
106
|
+
The name of the event. The following events are recognized:
|
|
107
|
+
|
|
108
|
+
- 'tool_message_event'
|
|
109
|
+
- 'tool_removed_event'
|
|
110
|
+
- 'tool_added_event'
|
|
111
|
+
|
|
112
|
+
For every tool added a new event is created
|
|
113
|
+
|
|
114
|
+
- 'tool_trigger_TOOLNAME', where TOOLNAME is the id of the tool.
|
|
115
|
+
|
|
116
|
+
func : callable
|
|
117
|
+
Callback function for the toolmanager event with signature::
|
|
118
|
+
|
|
119
|
+
def func(event: ToolEvent) -> Any
|
|
120
|
+
|
|
121
|
+
Returns
|
|
122
|
+
-------
|
|
123
|
+
cid
|
|
124
|
+
The callback id for the connection. This can be used in
|
|
125
|
+
`.toolmanager_disconnect`.
|
|
126
|
+
"""
|
|
127
|
+
return self._callbacks.connect(s, func)
|
|
128
|
+
|
|
129
|
+
def toolmanager_disconnect(self, cid):
|
|
130
|
+
"""
|
|
131
|
+
Disconnect callback id *cid*.
|
|
132
|
+
|
|
133
|
+
Example usage::
|
|
134
|
+
|
|
135
|
+
cid = toolmanager.toolmanager_connect('tool_trigger_zoom', onpress)
|
|
136
|
+
#...later
|
|
137
|
+
toolmanager.toolmanager_disconnect(cid)
|
|
138
|
+
"""
|
|
139
|
+
return self._callbacks.disconnect(cid)
|
|
140
|
+
|
|
141
|
+
def message_event(self, message, sender=None):
|
|
142
|
+
"""Emit a `ToolManagerMessageEvent`."""
|
|
143
|
+
if sender is None:
|
|
144
|
+
sender = self
|
|
145
|
+
|
|
146
|
+
s = 'tool_message_event'
|
|
147
|
+
event = ToolManagerMessageEvent(s, sender, message)
|
|
148
|
+
self._callbacks.process(s, event)
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def active_toggle(self):
|
|
152
|
+
"""Currently toggled tools."""
|
|
153
|
+
return self._toggled
|
|
154
|
+
|
|
155
|
+
def get_tool_keymap(self, name):
|
|
156
|
+
"""
|
|
157
|
+
Return the keymap associated with the specified tool.
|
|
158
|
+
|
|
159
|
+
Parameters
|
|
160
|
+
----------
|
|
161
|
+
name : str
|
|
162
|
+
Name of the Tool.
|
|
163
|
+
|
|
164
|
+
Returns
|
|
165
|
+
-------
|
|
166
|
+
list of str
|
|
167
|
+
List of keys associated with the tool.
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
keys = [k for k, i in self._keys.items() if i == name]
|
|
171
|
+
return keys
|
|
172
|
+
|
|
173
|
+
def _remove_keys(self, name):
|
|
174
|
+
for k in self.get_tool_keymap(name):
|
|
175
|
+
del self._keys[k]
|
|
176
|
+
|
|
177
|
+
def update_keymap(self, name, key):
|
|
178
|
+
"""
|
|
179
|
+
Set the keymap to associate with the specified tool.
|
|
180
|
+
|
|
181
|
+
Parameters
|
|
182
|
+
----------
|
|
183
|
+
name : str
|
|
184
|
+
Name of the Tool.
|
|
185
|
+
key : str or list of str
|
|
186
|
+
Keys to associate with the tool.
|
|
187
|
+
"""
|
|
188
|
+
if name not in self._tools:
|
|
189
|
+
raise KeyError(f'{name!r} not in Tools')
|
|
190
|
+
self._remove_keys(name)
|
|
191
|
+
if isinstance(key, str):
|
|
192
|
+
key = [key]
|
|
193
|
+
for k in key:
|
|
194
|
+
if k in self._keys:
|
|
195
|
+
_api.warn_external(
|
|
196
|
+
f'Key {k} changed from {self._keys[k]} to {name}')
|
|
197
|
+
self._keys[k] = name
|
|
198
|
+
|
|
199
|
+
def remove_tool(self, name):
|
|
200
|
+
"""
|
|
201
|
+
Remove tool named *name*.
|
|
202
|
+
|
|
203
|
+
Parameters
|
|
204
|
+
----------
|
|
205
|
+
name : str
|
|
206
|
+
Name of the tool.
|
|
207
|
+
"""
|
|
208
|
+
tool = self.get_tool(name)
|
|
209
|
+
if getattr(tool, 'toggled', False): # If it's a toggled toggle tool, untoggle
|
|
210
|
+
self.trigger_tool(tool, 'toolmanager')
|
|
211
|
+
self._remove_keys(name)
|
|
212
|
+
event = ToolEvent('tool_removed_event', self, tool)
|
|
213
|
+
self._callbacks.process(event.name, event)
|
|
214
|
+
del self._tools[name]
|
|
215
|
+
|
|
216
|
+
def add_tool(self, name, tool, *args, **kwargs):
|
|
217
|
+
"""
|
|
218
|
+
Add *tool* to `ToolManager`.
|
|
219
|
+
|
|
220
|
+
If successful, adds a new event ``tool_trigger_{name}`` where
|
|
221
|
+
``{name}`` is the *name* of the tool; the event is fired every time the
|
|
222
|
+
tool is triggered.
|
|
223
|
+
|
|
224
|
+
Parameters
|
|
225
|
+
----------
|
|
226
|
+
name : str
|
|
227
|
+
Name of the tool, treated as the ID, has to be unique.
|
|
228
|
+
tool : type
|
|
229
|
+
Class of the tool to be added. A subclass will be used
|
|
230
|
+
instead if one was registered for the current canvas class.
|
|
231
|
+
*args, **kwargs
|
|
232
|
+
Passed to the *tool*'s constructor.
|
|
233
|
+
|
|
234
|
+
See Also
|
|
235
|
+
--------
|
|
236
|
+
matplotlib.backend_tools.ToolBase : The base class for tools.
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
tool_cls = backend_tools._find_tool_class(type(self.canvas), tool)
|
|
240
|
+
if not tool_cls:
|
|
241
|
+
raise ValueError('Impossible to find class for %s' % str(tool))
|
|
242
|
+
|
|
243
|
+
if name in self._tools:
|
|
244
|
+
_api.warn_external('A "Tool class" with the same name already '
|
|
245
|
+
'exists, not added')
|
|
246
|
+
return self._tools[name]
|
|
247
|
+
|
|
248
|
+
tool_obj = tool_cls(self, name, *args, **kwargs)
|
|
249
|
+
self._tools[name] = tool_obj
|
|
250
|
+
|
|
251
|
+
if tool_obj.default_keymap is not None:
|
|
252
|
+
self.update_keymap(name, tool_obj.default_keymap)
|
|
253
|
+
|
|
254
|
+
# For toggle tools init the radio_group in self._toggled
|
|
255
|
+
if isinstance(tool_obj, backend_tools.ToolToggleBase):
|
|
256
|
+
# None group is not mutually exclusive, a set is used to keep track
|
|
257
|
+
# of all toggled tools in this group
|
|
258
|
+
if tool_obj.radio_group is None:
|
|
259
|
+
self._toggled.setdefault(None, set())
|
|
260
|
+
else:
|
|
261
|
+
self._toggled.setdefault(tool_obj.radio_group, None)
|
|
262
|
+
|
|
263
|
+
# If initially toggled
|
|
264
|
+
if tool_obj.toggled:
|
|
265
|
+
self._handle_toggle(tool_obj, None, None)
|
|
266
|
+
tool_obj.set_figure(self.figure)
|
|
267
|
+
|
|
268
|
+
event = ToolEvent('tool_added_event', self, tool_obj)
|
|
269
|
+
self._callbacks.process(event.name, event)
|
|
270
|
+
|
|
271
|
+
return tool_obj
|
|
272
|
+
|
|
273
|
+
def _handle_toggle(self, tool, canvasevent, data):
|
|
274
|
+
"""
|
|
275
|
+
Toggle tools, need to untoggle prior to using other Toggle tool.
|
|
276
|
+
Called from trigger_tool.
|
|
277
|
+
|
|
278
|
+
Parameters
|
|
279
|
+
----------
|
|
280
|
+
tool : `.ToolBase`
|
|
281
|
+
canvasevent : Event
|
|
282
|
+
Original Canvas event or None.
|
|
283
|
+
data : object
|
|
284
|
+
Extra data to pass to the tool when triggering.
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
radio_group = tool.radio_group
|
|
288
|
+
# radio_group None is not mutually exclusive
|
|
289
|
+
# just keep track of toggled tools in this group
|
|
290
|
+
if radio_group is None:
|
|
291
|
+
if tool.name in self._toggled[None]:
|
|
292
|
+
self._toggled[None].remove(tool.name)
|
|
293
|
+
else:
|
|
294
|
+
self._toggled[None].add(tool.name)
|
|
295
|
+
return
|
|
296
|
+
|
|
297
|
+
# If the tool already has a toggled state, untoggle it
|
|
298
|
+
if self._toggled[radio_group] == tool.name:
|
|
299
|
+
toggled = None
|
|
300
|
+
# If no tool was toggled in the radio_group
|
|
301
|
+
# toggle it
|
|
302
|
+
elif self._toggled[radio_group] is None:
|
|
303
|
+
toggled = tool.name
|
|
304
|
+
# Other tool in the radio_group is toggled
|
|
305
|
+
else:
|
|
306
|
+
# Untoggle previously toggled tool
|
|
307
|
+
self.trigger_tool(self._toggled[radio_group],
|
|
308
|
+
self,
|
|
309
|
+
canvasevent,
|
|
310
|
+
data)
|
|
311
|
+
toggled = tool.name
|
|
312
|
+
|
|
313
|
+
# Keep track of the toggled tool in the radio_group
|
|
314
|
+
self._toggled[radio_group] = toggled
|
|
315
|
+
|
|
316
|
+
def trigger_tool(self, name, sender=None, canvasevent=None, data=None):
|
|
317
|
+
"""
|
|
318
|
+
Trigger a tool and emit the ``tool_trigger_{name}`` event.
|
|
319
|
+
|
|
320
|
+
Parameters
|
|
321
|
+
----------
|
|
322
|
+
name : str
|
|
323
|
+
Name of the tool.
|
|
324
|
+
sender : object
|
|
325
|
+
Object that wishes to trigger the tool.
|
|
326
|
+
canvasevent : Event
|
|
327
|
+
Original Canvas event or None.
|
|
328
|
+
data : object
|
|
329
|
+
Extra data to pass to the tool when triggering.
|
|
330
|
+
"""
|
|
331
|
+
tool = self.get_tool(name)
|
|
332
|
+
if tool is None:
|
|
333
|
+
return
|
|
334
|
+
|
|
335
|
+
if sender is None:
|
|
336
|
+
sender = self
|
|
337
|
+
|
|
338
|
+
if isinstance(tool, backend_tools.ToolToggleBase):
|
|
339
|
+
self._handle_toggle(tool, canvasevent, data)
|
|
340
|
+
|
|
341
|
+
tool.trigger(sender, canvasevent, data) # Actually trigger Tool.
|
|
342
|
+
|
|
343
|
+
s = 'tool_trigger_%s' % name
|
|
344
|
+
event = ToolTriggerEvent(s, sender, tool, canvasevent, data)
|
|
345
|
+
self._callbacks.process(s, event)
|
|
346
|
+
|
|
347
|
+
def _key_press(self, event):
|
|
348
|
+
if event.key is None or self.keypresslock.locked():
|
|
349
|
+
return
|
|
350
|
+
|
|
351
|
+
name = self._keys.get(event.key, None)
|
|
352
|
+
if name is None:
|
|
353
|
+
return
|
|
354
|
+
self.trigger_tool(name, canvasevent=event)
|
|
355
|
+
|
|
356
|
+
@property
|
|
357
|
+
def tools(self):
|
|
358
|
+
"""A dict mapping tool name -> controlled tool."""
|
|
359
|
+
return self._tools
|
|
360
|
+
|
|
361
|
+
def get_tool(self, name, warn=True):
|
|
362
|
+
"""
|
|
363
|
+
Return the tool object with the given name.
|
|
364
|
+
|
|
365
|
+
For convenience, this passes tool objects through.
|
|
366
|
+
|
|
367
|
+
Parameters
|
|
368
|
+
----------
|
|
369
|
+
name : str or `.ToolBase`
|
|
370
|
+
Name of the tool, or the tool itself.
|
|
371
|
+
warn : bool, default: True
|
|
372
|
+
Whether a warning should be emitted it no tool with the given name
|
|
373
|
+
exists.
|
|
374
|
+
|
|
375
|
+
Returns
|
|
376
|
+
-------
|
|
377
|
+
`.ToolBase` or None
|
|
378
|
+
The tool or None if no tool with the given name exists.
|
|
379
|
+
"""
|
|
380
|
+
if (isinstance(name, backend_tools.ToolBase)
|
|
381
|
+
and name.name in self._tools):
|
|
382
|
+
return name
|
|
383
|
+
if name not in self._tools:
|
|
384
|
+
if warn:
|
|
385
|
+
_api.warn_external(
|
|
386
|
+
f"ToolManager does not control tool {name!r}")
|
|
387
|
+
return None
|
|
388
|
+
return self._tools[name]
|