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,264 @@
|
|
|
1
|
+
# Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
|
|
2
|
+
"""
|
|
3
|
+
Tools for triangular grids.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
8
|
+
from matplotlib_rs import _api
|
|
9
|
+
from matplotlib_rs.tri import Triangulation
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TriAnalyzer:
|
|
13
|
+
"""
|
|
14
|
+
Define basic tools for triangular mesh analysis and improvement.
|
|
15
|
+
|
|
16
|
+
A TriAnalyzer encapsulates a `.Triangulation` object and provides basic
|
|
17
|
+
tools for mesh analysis and mesh improvement.
|
|
18
|
+
|
|
19
|
+
Attributes
|
|
20
|
+
----------
|
|
21
|
+
scale_factors
|
|
22
|
+
|
|
23
|
+
Parameters
|
|
24
|
+
----------
|
|
25
|
+
triangulation : `~matplotlib.tri.Triangulation`
|
|
26
|
+
The encapsulated triangulation to analyze.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
def __init__(self, triangulation):
|
|
30
|
+
_api.check_isinstance(Triangulation, triangulation=triangulation)
|
|
31
|
+
self._triangulation = triangulation
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def scale_factors(self):
|
|
35
|
+
"""
|
|
36
|
+
Factors to rescale the triangulation into a unit square.
|
|
37
|
+
|
|
38
|
+
Returns
|
|
39
|
+
-------
|
|
40
|
+
(float, float)
|
|
41
|
+
Scaling factors (kx, ky) so that the triangulation
|
|
42
|
+
``[triangulation.x * kx, triangulation.y * ky]``
|
|
43
|
+
fits exactly inside a unit square.
|
|
44
|
+
"""
|
|
45
|
+
compressed_triangles = self._triangulation.get_masked_triangles()
|
|
46
|
+
node_used = (np.bincount(np.ravel(compressed_triangles),
|
|
47
|
+
minlength=self._triangulation.x.size) != 0)
|
|
48
|
+
return (1 / np.ptp(self._triangulation.x[node_used]),
|
|
49
|
+
1 / np.ptp(self._triangulation.y[node_used]))
|
|
50
|
+
|
|
51
|
+
def circle_ratios(self, rescale=True):
|
|
52
|
+
"""
|
|
53
|
+
Return a measure of the triangulation triangles flatness.
|
|
54
|
+
|
|
55
|
+
The ratio of the incircle radius over the circumcircle radius is a
|
|
56
|
+
widely used indicator of a triangle flatness.
|
|
57
|
+
It is always ``<= 0.5`` and ``== 0.5`` only for equilateral
|
|
58
|
+
triangles. Circle ratios below 0.01 denote very flat triangles.
|
|
59
|
+
|
|
60
|
+
To avoid unduly low values due to a difference of scale between the 2
|
|
61
|
+
axis, the triangular mesh can first be rescaled to fit inside a unit
|
|
62
|
+
square with `scale_factors` (Only if *rescale* is True, which is
|
|
63
|
+
its default value).
|
|
64
|
+
|
|
65
|
+
Parameters
|
|
66
|
+
----------
|
|
67
|
+
rescale : bool, default: True
|
|
68
|
+
If True, internally rescale (based on `scale_factors`), so that the
|
|
69
|
+
(unmasked) triangles fit exactly inside a unit square mesh.
|
|
70
|
+
|
|
71
|
+
Returns
|
|
72
|
+
-------
|
|
73
|
+
masked array
|
|
74
|
+
Ratio of the incircle radius over the circumcircle radius, for
|
|
75
|
+
each 'rescaled' triangle of the encapsulated triangulation.
|
|
76
|
+
Values corresponding to masked triangles are masked out.
|
|
77
|
+
|
|
78
|
+
"""
|
|
79
|
+
# Coords rescaling
|
|
80
|
+
if rescale:
|
|
81
|
+
(kx, ky) = self.scale_factors
|
|
82
|
+
else:
|
|
83
|
+
(kx, ky) = (1.0, 1.0)
|
|
84
|
+
pts = np.vstack([self._triangulation.x*kx,
|
|
85
|
+
self._triangulation.y*ky]).T
|
|
86
|
+
tri_pts = pts[self._triangulation.triangles]
|
|
87
|
+
# Computes the 3 side lengths
|
|
88
|
+
a = tri_pts[:, 1, :] - tri_pts[:, 0, :]
|
|
89
|
+
b = tri_pts[:, 2, :] - tri_pts[:, 1, :]
|
|
90
|
+
c = tri_pts[:, 0, :] - tri_pts[:, 2, :]
|
|
91
|
+
a = np.hypot(a[:, 0], a[:, 1])
|
|
92
|
+
b = np.hypot(b[:, 0], b[:, 1])
|
|
93
|
+
c = np.hypot(c[:, 0], c[:, 1])
|
|
94
|
+
# circumcircle and incircle radii
|
|
95
|
+
s = (a+b+c)*0.5
|
|
96
|
+
prod = s*(a+b-s)*(a+c-s)*(b+c-s)
|
|
97
|
+
# We have to deal with flat triangles with infinite circum_radius
|
|
98
|
+
bool_flat = (prod == 0.)
|
|
99
|
+
if np.any(bool_flat):
|
|
100
|
+
# Pathologic flow
|
|
101
|
+
ntri = tri_pts.shape[0]
|
|
102
|
+
circum_radius = np.empty(ntri, dtype=np.float64)
|
|
103
|
+
circum_radius[bool_flat] = np.inf
|
|
104
|
+
abc = a*b*c
|
|
105
|
+
circum_radius[~bool_flat] = abc[~bool_flat] / (
|
|
106
|
+
4.0*np.sqrt(prod[~bool_flat]))
|
|
107
|
+
else:
|
|
108
|
+
# Normal optimized flow
|
|
109
|
+
circum_radius = (a*b*c) / (4.0*np.sqrt(prod))
|
|
110
|
+
in_radius = (a*b*c) / (4.0*circum_radius*s)
|
|
111
|
+
circle_ratio = in_radius/circum_radius
|
|
112
|
+
mask = self._triangulation.mask
|
|
113
|
+
if mask is None:
|
|
114
|
+
return circle_ratio
|
|
115
|
+
else:
|
|
116
|
+
return np.ma.array(circle_ratio, mask=mask)
|
|
117
|
+
|
|
118
|
+
def get_flat_tri_mask(self, min_circle_ratio=0.01, rescale=True):
|
|
119
|
+
"""
|
|
120
|
+
Eliminate excessively flat border triangles from the triangulation.
|
|
121
|
+
|
|
122
|
+
Returns a mask *new_mask* which allows to clean the encapsulated
|
|
123
|
+
triangulation from its border-located flat triangles
|
|
124
|
+
(according to their :meth:`circle_ratios`).
|
|
125
|
+
This mask is meant to be subsequently applied to the triangulation
|
|
126
|
+
using `.Triangulation.set_mask`.
|
|
127
|
+
*new_mask* is an extension of the initial triangulation mask
|
|
128
|
+
in the sense that an initially masked triangle will remain masked.
|
|
129
|
+
|
|
130
|
+
The *new_mask* array is computed recursively; at each step flat
|
|
131
|
+
triangles are removed only if they share a side with the current mesh
|
|
132
|
+
border. Thus, no new holes in the triangulated domain will be created.
|
|
133
|
+
|
|
134
|
+
Parameters
|
|
135
|
+
----------
|
|
136
|
+
min_circle_ratio : float, default: 0.01
|
|
137
|
+
Border triangles with incircle/circumcircle radii ratio r/R will
|
|
138
|
+
be removed if r/R < *min_circle_ratio*.
|
|
139
|
+
rescale : bool, default: True
|
|
140
|
+
If True, first, internally rescale (based on `scale_factors`) so
|
|
141
|
+
that the (unmasked) triangles fit exactly inside a unit square
|
|
142
|
+
mesh. This rescaling accounts for the difference of scale which
|
|
143
|
+
might exist between the 2 axis.
|
|
144
|
+
|
|
145
|
+
Returns
|
|
146
|
+
-------
|
|
147
|
+
array of bool
|
|
148
|
+
Mask to apply to encapsulated triangulation.
|
|
149
|
+
All the initially masked triangles remain masked in the
|
|
150
|
+
*new_mask*.
|
|
151
|
+
|
|
152
|
+
Notes
|
|
153
|
+
-----
|
|
154
|
+
The rationale behind this function is that a Delaunay
|
|
155
|
+
triangulation - of an unstructured set of points - sometimes contains
|
|
156
|
+
almost flat triangles at its border, leading to artifacts in plots
|
|
157
|
+
(especially for high-resolution contouring).
|
|
158
|
+
Masked with computed *new_mask*, the encapsulated
|
|
159
|
+
triangulation would contain no more unmasked border triangles
|
|
160
|
+
with a circle ratio below *min_circle_ratio*, thus improving the
|
|
161
|
+
mesh quality for subsequent plots or interpolation.
|
|
162
|
+
"""
|
|
163
|
+
# Recursively computes the mask_current_borders, true if a triangle is
|
|
164
|
+
# at the border of the mesh OR touching the border through a chain of
|
|
165
|
+
# invalid aspect ratio masked_triangles.
|
|
166
|
+
ntri = self._triangulation.triangles.shape[0]
|
|
167
|
+
mask_bad_ratio = self.circle_ratios(rescale) < min_circle_ratio
|
|
168
|
+
|
|
169
|
+
current_mask = self._triangulation.mask
|
|
170
|
+
if current_mask is None:
|
|
171
|
+
current_mask = np.zeros(ntri, dtype=bool)
|
|
172
|
+
valid_neighbors = np.copy(self._triangulation.neighbors)
|
|
173
|
+
renum_neighbors = np.arange(ntri, dtype=np.int32)
|
|
174
|
+
nadd = -1
|
|
175
|
+
while nadd != 0:
|
|
176
|
+
# The active wavefront is the triangles from the border (unmasked
|
|
177
|
+
# but with a least 1 neighbor equal to -1
|
|
178
|
+
wavefront = (np.min(valid_neighbors, axis=1) == -1) & ~current_mask
|
|
179
|
+
# The element from the active wavefront will be masked if their
|
|
180
|
+
# circle ratio is bad.
|
|
181
|
+
added_mask = wavefront & mask_bad_ratio
|
|
182
|
+
current_mask = added_mask | current_mask
|
|
183
|
+
nadd = np.sum(added_mask)
|
|
184
|
+
|
|
185
|
+
# now we have to update the tables valid_neighbors
|
|
186
|
+
valid_neighbors[added_mask, :] = -1
|
|
187
|
+
renum_neighbors[added_mask] = -1
|
|
188
|
+
valid_neighbors = np.where(valid_neighbors == -1, -1,
|
|
189
|
+
renum_neighbors[valid_neighbors])
|
|
190
|
+
|
|
191
|
+
return np.ma.filled(current_mask, True)
|
|
192
|
+
|
|
193
|
+
def _get_compressed_triangulation(self):
|
|
194
|
+
"""
|
|
195
|
+
Compress (if masked) the encapsulated triangulation.
|
|
196
|
+
|
|
197
|
+
Returns minimal-length triangles array (*compressed_triangles*) and
|
|
198
|
+
coordinates arrays (*compressed_x*, *compressed_y*) that can still
|
|
199
|
+
describe the unmasked triangles of the encapsulated triangulation.
|
|
200
|
+
|
|
201
|
+
Returns
|
|
202
|
+
-------
|
|
203
|
+
compressed_triangles : array-like
|
|
204
|
+
the returned compressed triangulation triangles
|
|
205
|
+
compressed_x : array-like
|
|
206
|
+
the returned compressed triangulation 1st coordinate
|
|
207
|
+
compressed_y : array-like
|
|
208
|
+
the returned compressed triangulation 2nd coordinate
|
|
209
|
+
tri_renum : int array
|
|
210
|
+
renumbering table to translate the triangle numbers from the
|
|
211
|
+
encapsulated triangulation into the new (compressed) renumbering.
|
|
212
|
+
-1 for masked triangles (deleted from *compressed_triangles*).
|
|
213
|
+
node_renum : int array
|
|
214
|
+
renumbering table to translate the point numbers from the
|
|
215
|
+
encapsulated triangulation into the new (compressed) renumbering.
|
|
216
|
+
-1 for unused points (i.e. those deleted from *compressed_x* and
|
|
217
|
+
*compressed_y*).
|
|
218
|
+
|
|
219
|
+
"""
|
|
220
|
+
# Valid triangles and renumbering
|
|
221
|
+
tri_mask = self._triangulation.mask
|
|
222
|
+
compressed_triangles = self._triangulation.get_masked_triangles()
|
|
223
|
+
ntri = self._triangulation.triangles.shape[0]
|
|
224
|
+
if tri_mask is not None:
|
|
225
|
+
tri_renum = self._total_to_compress_renum(~tri_mask)
|
|
226
|
+
else:
|
|
227
|
+
tri_renum = np.arange(ntri, dtype=np.int32)
|
|
228
|
+
|
|
229
|
+
# Valid nodes and renumbering
|
|
230
|
+
valid_node = (np.bincount(np.ravel(compressed_triangles),
|
|
231
|
+
minlength=self._triangulation.x.size) != 0)
|
|
232
|
+
compressed_x = self._triangulation.x[valid_node]
|
|
233
|
+
compressed_y = self._triangulation.y[valid_node]
|
|
234
|
+
node_renum = self._total_to_compress_renum(valid_node)
|
|
235
|
+
|
|
236
|
+
# Now renumbering the valid triangles nodes
|
|
237
|
+
compressed_triangles = node_renum[compressed_triangles]
|
|
238
|
+
|
|
239
|
+
return (compressed_triangles, compressed_x, compressed_y, tri_renum,
|
|
240
|
+
node_renum)
|
|
241
|
+
|
|
242
|
+
@staticmethod
|
|
243
|
+
def _total_to_compress_renum(valid):
|
|
244
|
+
"""
|
|
245
|
+
Parameters
|
|
246
|
+
----------
|
|
247
|
+
valid : 1D bool array
|
|
248
|
+
Validity mask.
|
|
249
|
+
|
|
250
|
+
Returns
|
|
251
|
+
-------
|
|
252
|
+
int array
|
|
253
|
+
Array so that (`valid_array` being a compressed array
|
|
254
|
+
based on a `masked_array` with mask ~*valid*):
|
|
255
|
+
|
|
256
|
+
- For all i with valid[i] = True:
|
|
257
|
+
valid_array[renum[i]] = masked_array[i]
|
|
258
|
+
- For all i with valid[i] = False:
|
|
259
|
+
renum[i] = -1 (invalid value)
|
|
260
|
+
"""
|
|
261
|
+
renum = np.full(np.size(valid), -1, dtype=np.int32)
|
|
262
|
+
n_valid = np.sum(valid)
|
|
263
|
+
renum[valid] = np.arange(n_valid, dtype=np.int32)
|
|
264
|
+
return renum
|