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.
Files changed (352) hide show
  1. docs/releases/0.0.1.md +268 -0
  2. docs/releases/0.0.2.md +69 -0
  3. docs/releases/0.0.3.md +80 -0
  4. docs/releases/0.0.4.md +73 -0
  5. docs/releases/0.0.5.md +24 -0
  6. docs/releases/0.0.6.md +24 -0
  7. docs/releases/0.0.7.md +24 -0
  8. docs/releases/0.0.8.md +16 -0
  9. licenses/LICENSE_CONTOURPY +29 -0
  10. licenses/LICENSE_CYCLER +27 -0
  11. licenses/LICENSE_DATEUTIL +54 -0
  12. licenses/LICENSE_KIWISOLVER +71 -0
  13. licenses/LICENSE_LIBWEBP +56 -0
  14. licenses/LICENSE_MATPLOTLIB +1253 -0
  15. licenses/LICENSE_PYPARSING +20 -0
  16. licenses/LICENSE_QHULL +39 -0
  17. licenses/LICENSE_SIX +18 -0
  18. matplotlib_rs/__init__.py +1683 -0
  19. matplotlib_rs/__main__.py +27 -0
  20. matplotlib_rs/_afm.py +500 -0
  21. matplotlib_rs/_animation_data.py +263 -0
  22. matplotlib_rs/_api/__init__.py +495 -0
  23. matplotlib_rs/_api/deprecation.py +534 -0
  24. matplotlib_rs/_axis_py.py +2991 -0
  25. matplotlib_rs/_blocking_input.py +31 -0
  26. matplotlib_rs/_cm.py +1500 -0
  27. matplotlib_rs/_cm_bivar.py +1289 -0
  28. matplotlib_rs/_cm_listed.py +2848 -0
  29. matplotlib_rs/_cm_multivar.py +167 -0
  30. matplotlib_rs/_color_data.py +1142 -0
  31. matplotlib_rs/_colormap.py +132 -0
  32. matplotlib_rs/_constrained_layout.py +825 -0
  33. matplotlib_rs/_contour.py +108 -0
  34. matplotlib_rs/_doc_cache.py +12214 -0
  35. matplotlib_rs/_docstring.py +142 -0
  36. matplotlib_rs/_enums.py +178 -0
  37. matplotlib_rs/_figure_rs.py +294 -0
  38. matplotlib_rs/_fontconfig_pattern.py +129 -0
  39. matplotlib_rs/_foreign.py +220 -0
  40. matplotlib_rs/_hook.py +94 -0
  41. matplotlib_rs/_image.py +160 -0
  42. matplotlib_rs/_imageio.py +229 -0
  43. matplotlib_rs/_internal_utils.py +65 -0
  44. matplotlib_rs/_kiwi.py +484 -0
  45. matplotlib_rs/_layoutgrid.py +549 -0
  46. matplotlib_rs/_live.py +192 -0
  47. matplotlib_rs/_mathtext.py +3103 -0
  48. matplotlib_rs/_mathtext_data.py +1811 -0
  49. matplotlib_rs/_mplrs.cp313-win_amd64.pyd +0 -0
  50. matplotlib_rs/_path.py +25 -0
  51. matplotlib_rs/_png.py +162 -0
  52. matplotlib_rs/_pylab_helpers.py +137 -0
  53. matplotlib_rs/_qhull.py +66 -0
  54. matplotlib_rs/_rcpush.py +84 -0
  55. matplotlib_rs/_spines_rs.py +108 -0
  56. matplotlib_rs/_style_helpers.py +52 -0
  57. matplotlib_rs/_text_helpers.py +51 -0
  58. matplotlib_rs/_tight_bbox.py +85 -0
  59. matplotlib_rs/_tight_layout.py +302 -0
  60. matplotlib_rs/_tri.py +140 -0
  61. matplotlib_rs/_type1font.py +1228 -0
  62. matplotlib_rs/_vendor/__init__.py +8 -0
  63. matplotlib_rs/_vendor/cycler.py +574 -0
  64. matplotlib_rs/_vendor/dateutil/__init__.py +27 -0
  65. matplotlib_rs/_vendor/dateutil/_common.py +44 -0
  66. matplotlib_rs/_vendor/dateutil/_tzdata_impl.py +148 -0
  67. matplotlib_rs/_vendor/dateutil/_version.py +5 -0
  68. matplotlib_rs/_vendor/dateutil/easter.py +90 -0
  69. matplotlib_rs/_vendor/dateutil/parser/__init__.py +62 -0
  70. matplotlib_rs/_vendor/dateutil/parser/_parser.py +1614 -0
  71. matplotlib_rs/_vendor/dateutil/parser/isoparser.py +417 -0
  72. matplotlib_rs/_vendor/dateutil/relativedelta.py +597 -0
  73. matplotlib_rs/_vendor/dateutil/rrule.py +1765 -0
  74. matplotlib_rs/_vendor/dateutil/tz/__init__.py +61 -0
  75. matplotlib_rs/_vendor/dateutil/tz/_common.py +420 -0
  76. matplotlib_rs/_vendor/dateutil/tz/_factories.py +81 -0
  77. matplotlib_rs/_vendor/dateutil/tz/_tzfile.py +1429 -0
  78. matplotlib_rs/_vendor/dateutil/tz/_tzpath.py +105 -0
  79. matplotlib_rs/_vendor/dateutil/tz/tz.py +1473 -0
  80. matplotlib_rs/_vendor/dateutil/tz/win.py +371 -0
  81. matplotlib_rs/_vendor/dateutil/tzwin.py +3 -0
  82. matplotlib_rs/_vendor/dateutil/utils.py +72 -0
  83. matplotlib_rs/_vendor/dateutil/zoneinfo/__init__.py +234 -0
  84. matplotlib_rs/_vendor/pyparsing/__init__.py +414 -0
  85. matplotlib_rs/_vendor/pyparsing/actions.py +265 -0
  86. matplotlib_rs/_vendor/pyparsing/common.py +571 -0
  87. matplotlib_rs/_vendor/pyparsing/core.py +6973 -0
  88. matplotlib_rs/_vendor/pyparsing/exceptions.py +354 -0
  89. matplotlib_rs/_vendor/pyparsing/helpers.py +1770 -0
  90. matplotlib_rs/_vendor/pyparsing/results.py +929 -0
  91. matplotlib_rs/_vendor/pyparsing/testing.py +399 -0
  92. matplotlib_rs/_vendor/pyparsing/unicode.py +357 -0
  93. matplotlib_rs/_vendor/pyparsing/util.py +515 -0
  94. matplotlib_rs/_vendor/pyparsing/warnings.py +11 -0
  95. matplotlib_rs/_vendor/six.py +1004 -0
  96. matplotlib_rs/animation.py +1843 -0
  97. matplotlib_rs/artist.py +2302 -0
  98. matplotlib_rs/axes/__init__.py +19 -0
  99. matplotlib_rs/axes/_axes.py +9402 -0
  100. matplotlib_rs/axes/_bar.py +185 -0
  101. matplotlib_rs/axes/_base.py +5236 -0
  102. matplotlib_rs/axes/_base_rs.py +727 -0
  103. matplotlib_rs/axes/_boxplot.py +391 -0
  104. matplotlib_rs/axes/_hist.py +99 -0
  105. matplotlib_rs/axes/_secondary_axes.py +357 -0
  106. matplotlib_rs/axis.py +1963 -0
  107. matplotlib_rs/backend_bases.py +3760 -0
  108. matplotlib_rs/backend_managers.py +388 -0
  109. matplotlib_rs/backend_tools.py +1002 -0
  110. matplotlib_rs/backends/__init__.py +6 -0
  111. matplotlib_rs/backends/_backend_pdf_ps.py +451 -0
  112. matplotlib_rs/backends/backend_agg.py +552 -0
  113. matplotlib_rs/backends/backend_mixed.py +123 -0
  114. matplotlib_rs/backends/backend_pdf.py +2711 -0
  115. matplotlib_rs/backends/backend_pgf.py +1031 -0
  116. matplotlib_rs/backends/backend_ps.py +1491 -0
  117. matplotlib_rs/backends/backend_svg.py +1395 -0
  118. matplotlib_rs/backends/backend_template.py +214 -0
  119. matplotlib_rs/backends/registry.py +423 -0
  120. matplotlib_rs/bezier.py +691 -0
  121. matplotlib_rs/category.py +236 -0
  122. matplotlib_rs/cbook.py +2762 -0
  123. matplotlib_rs/cm.py +251 -0
  124. matplotlib_rs/collections.py +2711 -0
  125. matplotlib_rs/colorbar.py +1586 -0
  126. matplotlib_rs/colorizer.py +909 -0
  127. matplotlib_rs/colors.py +4278 -0
  128. matplotlib_rs/container.py +256 -0
  129. matplotlib_rs/contour.py +1756 -0
  130. matplotlib_rs/dates.py +1847 -0
  131. matplotlib_rs/dviread.py +1386 -0
  132. matplotlib_rs/figure.py +3815 -0
  133. matplotlib_rs/font_manager.py +1855 -0
  134. matplotlib_rs/ft2font.py +515 -0
  135. matplotlib_rs/gridspec.py +808 -0
  136. matplotlib_rs/hatch.py +244 -0
  137. matplotlib_rs/image.py +1863 -0
  138. matplotlib_rs/inset.py +291 -0
  139. matplotlib_rs/layout_engine.py +310 -0
  140. matplotlib_rs/legend.py +1480 -0
  141. matplotlib_rs/legend_handler.py +812 -0
  142. matplotlib_rs/lines.py +1886 -0
  143. matplotlib_rs/markers.py +908 -0
  144. matplotlib_rs/mathtext.py +141 -0
  145. matplotlib_rs/mlab.py +959 -0
  146. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf +0 -0
  147. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf +0 -0
  148. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf +0 -0
  149. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans.ttf +0 -0
  150. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf +0 -0
  151. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf +0 -0
  152. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf +0 -0
  153. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf +0 -0
  154. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono.ttf +0 -0
  155. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf +0 -0
  156. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf +0 -0
  157. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf +0 -0
  158. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif.ttf +0 -0
  159. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf +0 -0
  160. matplotlib_rs/mpl-data/fonts/ttf/LICENSE_DEJAVU +99 -0
  161. matplotlib_rs/mpl-data/fonts/ttf/LICENSE_STIX +124 -0
  162. matplotlib_rs/mpl-data/fonts/ttf/LastResortHE-Regular.ttf +0 -0
  163. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneral.ttf +0 -0
  164. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBol.ttf +0 -0
  165. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf +0 -0
  166. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralItalic.ttf +0 -0
  167. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUni.ttf +0 -0
  168. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBol.ttf +0 -0
  169. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf +0 -0
  170. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniIta.ttf +0 -0
  171. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf +0 -0
  172. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf +0 -0
  173. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf +0 -0
  174. matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf +0 -0
  175. matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf +0 -0
  176. matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf +0 -0
  177. matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf +0 -0
  178. matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf +0 -0
  179. matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf +0 -0
  180. matplotlib_rs/mpl-data/fonts/ttf/cmb10.ttf +0 -0
  181. matplotlib_rs/mpl-data/fonts/ttf/cmex10.ttf +0 -0
  182. matplotlib_rs/mpl-data/fonts/ttf/cmmi10.ttf +0 -0
  183. matplotlib_rs/mpl-data/fonts/ttf/cmr10.ttf +0 -0
  184. matplotlib_rs/mpl-data/fonts/ttf/cmss10.ttf +0 -0
  185. matplotlib_rs/mpl-data/fonts/ttf/cmsy10.ttf +0 -0
  186. matplotlib_rs/mpl-data/fonts/ttf/cmti10.ttf +0 -0
  187. matplotlib_rs/mpl-data/fonts/ttf/cmtt10.ttf +0 -0
  188. matplotlib_rs/mpl-data/images/back-symbolic.svg +46 -0
  189. matplotlib_rs/mpl-data/images/back.pdf +0 -0
  190. matplotlib_rs/mpl-data/images/back.png +0 -0
  191. matplotlib_rs/mpl-data/images/back.svg +46 -0
  192. matplotlib_rs/mpl-data/images/back_large.png +0 -0
  193. matplotlib_rs/mpl-data/images/filesave-symbolic.svg +68 -0
  194. matplotlib_rs/mpl-data/images/filesave.pdf +72 -0
  195. matplotlib_rs/mpl-data/images/filesave.png +0 -0
  196. matplotlib_rs/mpl-data/images/filesave.svg +68 -0
  197. matplotlib_rs/mpl-data/images/filesave_large.png +0 -0
  198. matplotlib_rs/mpl-data/images/forward-symbolic.svg +46 -0
  199. matplotlib_rs/mpl-data/images/forward.pdf +0 -0
  200. matplotlib_rs/mpl-data/images/forward.png +0 -0
  201. matplotlib_rs/mpl-data/images/forward.svg +46 -0
  202. matplotlib_rs/mpl-data/images/forward_large.png +0 -0
  203. matplotlib_rs/mpl-data/images/hand.pdf +0 -0
  204. matplotlib_rs/mpl-data/images/hand.png +0 -0
  205. matplotlib_rs/mpl-data/images/hand.svg +130 -0
  206. matplotlib_rs/mpl-data/images/help-symbolic.svg +52 -0
  207. matplotlib_rs/mpl-data/images/help.pdf +71 -0
  208. matplotlib_rs/mpl-data/images/help.png +0 -0
  209. matplotlib_rs/mpl-data/images/help.svg +52 -0
  210. matplotlib_rs/mpl-data/images/help_large.png +0 -0
  211. matplotlib_rs/mpl-data/images/home-symbolic.svg +59 -0
  212. matplotlib_rs/mpl-data/images/home.pdf +0 -0
  213. matplotlib_rs/mpl-data/images/home.png +0 -0
  214. matplotlib_rs/mpl-data/images/home.svg +59 -0
  215. matplotlib_rs/mpl-data/images/home_large.png +0 -0
  216. matplotlib_rs/mpl-data/images/matplotlib.pdf +0 -0
  217. matplotlib_rs/mpl-data/images/matplotlib.png +0 -0
  218. matplotlib_rs/mpl-data/images/matplotlib.svg +3171 -0
  219. matplotlib_rs/mpl-data/images/matplotlib_large.png +0 -0
  220. matplotlib_rs/mpl-data/images/move-symbolic.svg +73 -0
  221. matplotlib_rs/mpl-data/images/move.pdf +0 -0
  222. matplotlib_rs/mpl-data/images/move.png +0 -0
  223. matplotlib_rs/mpl-data/images/move.svg +73 -0
  224. matplotlib_rs/mpl-data/images/move_large.png +0 -0
  225. matplotlib_rs/mpl-data/images/qt4_editor_options.pdf +0 -0
  226. matplotlib_rs/mpl-data/images/qt4_editor_options.png +0 -0
  227. matplotlib_rs/mpl-data/images/qt4_editor_options.svg +48 -0
  228. matplotlib_rs/mpl-data/images/qt4_editor_options_large.png +0 -0
  229. matplotlib_rs/mpl-data/images/subplots-symbolic.svg +81 -0
  230. matplotlib_rs/mpl-data/images/subplots.pdf +0 -0
  231. matplotlib_rs/mpl-data/images/subplots.png +0 -0
  232. matplotlib_rs/mpl-data/images/subplots.svg +81 -0
  233. matplotlib_rs/mpl-data/images/subplots_large.png +0 -0
  234. matplotlib_rs/mpl-data/images/zoom_to_rect-symbolic.svg +40 -0
  235. matplotlib_rs/mpl-data/images/zoom_to_rect.pdf +69 -0
  236. matplotlib_rs/mpl-data/images/zoom_to_rect.png +0 -0
  237. matplotlib_rs/mpl-data/images/zoom_to_rect.svg +40 -0
  238. matplotlib_rs/mpl-data/images/zoom_to_rect_large.png +0 -0
  239. matplotlib_rs/mpl-data/kpsewhich.lua +4 -0
  240. matplotlib_rs/mpl-data/matplotlibrc +849 -0
  241. matplotlib_rs/mpl-data/plot_directive/plot_directive.css +16 -0
  242. matplotlib_rs/mpl-data/sample_data/Minduka_Present_Blue_Pack.png +0 -0
  243. matplotlib_rs/mpl-data/sample_data/README.txt +2 -0
  244. matplotlib_rs/mpl-data/sample_data/Stocks.csv +526 -0
  245. matplotlib_rs/mpl-data/sample_data/axes_grid/bivariate_normal.npy +0 -0
  246. matplotlib_rs/mpl-data/sample_data/data_x_x2_x3.csv +11 -0
  247. matplotlib_rs/mpl-data/sample_data/eeg.dat +0 -0
  248. matplotlib_rs/mpl-data/sample_data/embedding_in_wx3.xrc +65 -0
  249. matplotlib_rs/mpl-data/sample_data/goog.npz +0 -0
  250. matplotlib_rs/mpl-data/sample_data/grace_hopper.jpg +0 -0
  251. matplotlib_rs/mpl-data/sample_data/jacksboro_fault_dem.npz +0 -0
  252. matplotlib_rs/mpl-data/sample_data/logo2.png +0 -0
  253. matplotlib_rs/mpl-data/sample_data/membrane.dat +0 -0
  254. matplotlib_rs/mpl-data/sample_data/msft.csv +66 -0
  255. matplotlib_rs/mpl-data/sample_data/s1045.ima.gz +0 -0
  256. matplotlib_rs/mpl-data/sample_data/topobathy.npz +0 -0
  257. matplotlib_rs/mpl-data/stylelib/Solarize_Light2.mplstyle +53 -0
  258. matplotlib_rs/mpl-data/stylelib/_classic_test_patch.mplstyle +8 -0
  259. matplotlib_rs/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle +19 -0
  260. matplotlib_rs/mpl-data/stylelib/_mpl-gallery.mplstyle +19 -0
  261. matplotlib_rs/mpl-data/stylelib/bmh.mplstyle +27 -0
  262. matplotlib_rs/mpl-data/stylelib/classic.mplstyle +491 -0
  263. matplotlib_rs/mpl-data/stylelib/dark_background.mplstyle +26 -0
  264. matplotlib_rs/mpl-data/stylelib/fast.mplstyle +11 -0
  265. matplotlib_rs/mpl-data/stylelib/fivethirtyeight.mplstyle +37 -0
  266. matplotlib_rs/mpl-data/stylelib/ggplot.mplstyle +39 -0
  267. matplotlib_rs/mpl-data/stylelib/grayscale.mplstyle +29 -0
  268. matplotlib_rs/mpl-data/stylelib/petroff10.mplstyle +5 -0
  269. matplotlib_rs/mpl-data/stylelib/petroff6.mplstyle +5 -0
  270. matplotlib_rs/mpl-data/stylelib/petroff8.mplstyle +5 -0
  271. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-bright.mplstyle +3 -0
  272. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-colorblind.mplstyle +3 -0
  273. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark-palette.mplstyle +3 -0
  274. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark.mplstyle +30 -0
  275. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-darkgrid.mplstyle +30 -0
  276. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-deep.mplstyle +3 -0
  277. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-muted.mplstyle +3 -0
  278. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-notebook.mplstyle +21 -0
  279. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-paper.mplstyle +21 -0
  280. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-pastel.mplstyle +3 -0
  281. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-poster.mplstyle +21 -0
  282. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-talk.mplstyle +21 -0
  283. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-ticks.mplstyle +30 -0
  284. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-white.mplstyle +30 -0
  285. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-whitegrid.mplstyle +30 -0
  286. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8.mplstyle +57 -0
  287. matplotlib_rs/mpl-data/stylelib/tableau-colorblind10.mplstyle +3 -0
  288. matplotlib_rs/mpl_toolkits/__init__.py +3 -0
  289. matplotlib_rs/mpl_toolkits/axes_grid1/__init__.py +11 -0
  290. matplotlib_rs/mpl_toolkits/axes_grid1/anchored_artists.py +415 -0
  291. matplotlib_rs/mpl_toolkits/axes_grid1/axes_divider.py +619 -0
  292. matplotlib_rs/mpl_toolkits/axes_grid1/axes_grid.py +565 -0
  293. matplotlib_rs/mpl_toolkits/axes_grid1/axes_rgb.py +158 -0
  294. matplotlib_rs/mpl_toolkits/axes_grid1/axes_size.py +272 -0
  295. matplotlib_rs/mpl_toolkits/axes_grid1/inset_locator.py +525 -0
  296. matplotlib_rs/mpl_toolkits/axes_grid1/mpl_axes.py +129 -0
  297. matplotlib_rs/mpl_toolkits/axes_grid1/parasite_axes.py +261 -0
  298. matplotlib_rs/mpl_toolkits/axisartist/__init__.py +15 -0
  299. matplotlib_rs/mpl_toolkits/axisartist/angle_helper.py +396 -0
  300. matplotlib_rs/mpl_toolkits/axisartist/axes_divider.py +3 -0
  301. matplotlib_rs/mpl_toolkits/axisartist/axis_artist.py +1148 -0
  302. matplotlib_rs/mpl_toolkits/axisartist/axisline_style.py +193 -0
  303. matplotlib_rs/mpl_toolkits/axisartist/axislines.py +475 -0
  304. matplotlib_rs/mpl_toolkits/axisartist/floating_axes.py +265 -0
  305. matplotlib_rs/mpl_toolkits/axisartist/grid_finder.py +329 -0
  306. matplotlib_rs/mpl_toolkits/axisartist/grid_helper_curvelinear.py +353 -0
  307. matplotlib_rs/mpl_toolkits/axisartist/parasite_axes.py +8 -0
  308. matplotlib_rs/mpl_toolkits/mplot3d/__init__.py +4 -0
  309. matplotlib_rs/mpl_toolkits/mplot3d/art3d.py +1758 -0
  310. matplotlib_rs/mpl_toolkits/mplot3d/axes3d.py +4462 -0
  311. matplotlib_rs/mpl_toolkits/mplot3d/axis3d.py +807 -0
  312. matplotlib_rs/mpl_toolkits/mplot3d/proj3d.py +270 -0
  313. matplotlib_rs/offsetbox.py +1726 -0
  314. matplotlib_rs/patches.py +5049 -0
  315. matplotlib_rs/path.py +1147 -0
  316. matplotlib_rs/patheffects.py +512 -0
  317. matplotlib_rs/projections/__init__.py +126 -0
  318. matplotlib_rs/projections/geo.py +512 -0
  319. matplotlib_rs/projections/polar.py +1518 -0
  320. matplotlib_rs/pylab.py +68 -0
  321. matplotlib_rs/pyplot.py +4834 -0
  322. matplotlib_rs/quiver.py +1236 -0
  323. matplotlib_rs/rcsetup.py +3435 -0
  324. matplotlib_rs/sankey.py +815 -0
  325. matplotlib_rs/scale.py +1002 -0
  326. matplotlib_rs/spines.py +618 -0
  327. matplotlib_rs/stackplot.py +144 -0
  328. matplotlib_rs/streamplot.py +768 -0
  329. matplotlib_rs/style/__init__.py +269 -0
  330. matplotlib_rs/style/core.py +28 -0
  331. matplotlib_rs/table.py +860 -0
  332. matplotlib_rs/texmanager.py +375 -0
  333. matplotlib_rs/text.py +2412 -0
  334. matplotlib_rs/textpath.py +377 -0
  335. matplotlib_rs/ticker.py +3111 -0
  336. matplotlib_rs/transforms.py +3069 -0
  337. matplotlib_rs/tri/__init__.py +24 -0
  338. matplotlib_rs/tri/_triangulation.py +248 -0
  339. matplotlib_rs/tri/_tricontour.py +271 -0
  340. matplotlib_rs/tri/_trifinder.py +97 -0
  341. matplotlib_rs/tri/_triinterpolate.py +1575 -0
  342. matplotlib_rs/tri/_tripcolor.py +170 -0
  343. matplotlib_rs/tri/_triplot.py +87 -0
  344. matplotlib_rs/tri/_trirefine.py +308 -0
  345. matplotlib_rs/tri/_tritools.py +264 -0
  346. matplotlib_rs/typing.py +597 -0
  347. matplotlib_rs/units.py +196 -0
  348. matplotlib_rs/widgets.py +4455 -0
  349. matplotlib_rs-0.0.8.dist-info/METADATA +392 -0
  350. matplotlib_rs-0.0.8.dist-info/RECORD +352 -0
  351. matplotlib_rs-0.0.8.dist-info/WHEEL +4 -0
  352. matplotlib_rs-0.0.8.dist-info/sboms/matplotlib-rs.cyclonedx.json +4390 -0
@@ -0,0 +1,495 @@
1
+ # Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
2
+ """
3
+ Helper functions for managing the Matplotlib API.
4
+
5
+ This documentation is only relevant for Matplotlib developers, not for users.
6
+
7
+ .. warning::
8
+
9
+ This module and its submodules are for internal use only. Do not use them
10
+ in your own code. We may change the API at any time with no warning.
11
+
12
+ """
13
+
14
+ import difflib
15
+ import functools
16
+ import itertools
17
+ import pathlib
18
+ import re
19
+ import sys
20
+ import warnings
21
+
22
+ from .deprecation import ( # noqa: F401
23
+ deprecated, warn_deprecated,
24
+ rename_parameter, delete_parameter, make_keyword_only,
25
+ deprecate_method_override, deprecate_privatize_attribute,
26
+ suppress_matplotlib_deprecation_warning,
27
+ MatplotlibDeprecationWarning)
28
+
29
+
30
+ # A sentinel value for optional arguments, when None cannot be used as
31
+ # default because we need to distinguish between None passed explicitly
32
+ # and parameter not given. Usage: def foo(arg=_api.UNSET):
33
+ class _Unset:
34
+ def __repr__(self):
35
+ return "<UNSET>"
36
+ UNSET = _Unset()
37
+
38
+
39
+ class UnsupportedError(RuntimeError):
40
+ """
41
+ Raised on inherited methods if the child class does not support the functionality
42
+ of the base class.
43
+
44
+ See `.unsupported_method` for details.
45
+ """
46
+
47
+
48
+ class unsupported_method:
49
+ """
50
+ Descriptor that creates a method raising `.UnsupportedError`.
51
+
52
+ Historically, we have quite a few cases of inheritance hierarchies that do not
53
+ fully respect the Liskov Substitution Principle, e.g. Axes and Artist. Some of
54
+ the methods of a base class may not be implemented in the child class. In that case,
55
+ we override the method in the child class to raise `.UnsupportedError`.
56
+
57
+ Use in a class body to mark inherited methods as unsupported::
58
+
59
+ class Axes3D(Axes):
60
+ twinx = _api.unsupported_method()
61
+
62
+ Calling ``Axes3D().twinx()`` will raise
63
+ "UnsupportedError: Axes3D does not support 'twinx'."
64
+
65
+ Parameters
66
+ ----------
67
+ append_message : str
68
+ Optional additional text to be appended to the error message.
69
+ """
70
+ def __init__(self, *, append_message=None):
71
+ self.append_message = append_message
72
+
73
+ def __set_name__(self, owner, name):
74
+ message = f"{owner.__name__} does not support '{name}'."
75
+ if self.append_message:
76
+ message += ' ' + self.append_message
77
+
78
+ def method(self, *args, **kwargs):
79
+ raise UnsupportedError(message)
80
+
81
+ method.__name__ = name
82
+ method.__qualname__ = f"{owner.__qualname__}.{name}"
83
+ method.__module__ = owner.__module__
84
+ setattr(owner, name, method)
85
+
86
+
87
+ class classproperty:
88
+ """
89
+ Like `property`, but also triggers on access via the class, and it is the
90
+ *class* that's passed as argument.
91
+
92
+ Examples
93
+ --------
94
+ ::
95
+
96
+ class C:
97
+ @classproperty
98
+ def foo(cls):
99
+ return cls.__name__
100
+
101
+ assert C.foo == "C"
102
+ """
103
+
104
+ def __init__(self, fget, fset=None, fdel=None, doc=None):
105
+ self._fget = fget
106
+ if fset is not None or fdel is not None:
107
+ raise ValueError('classproperty only implements fget.')
108
+ self.fset = fset
109
+ self.fdel = fdel
110
+ # docs are ignored for now
111
+ self._doc = doc
112
+
113
+ def __get__(self, instance, owner):
114
+ return self._fget(owner)
115
+
116
+ @property
117
+ def fget(self):
118
+ return self._fget
119
+
120
+
121
+ # In the following check_foo() functions, the first parameter is positional-only to make
122
+ # e.g. `_api.check_isinstance([...], types=foo)` work.
123
+
124
+ def check_isinstance(types, /, **kwargs):
125
+ """
126
+ For each *key, value* pair in *kwargs*, check that *value* is an instance
127
+ of one of *types*; if not, raise an appropriate TypeError.
128
+
129
+ As a special case, a ``None`` entry in *types* is treated as NoneType.
130
+
131
+ Examples
132
+ --------
133
+ >>> _api.check_isinstance((SomeClass, None), arg=arg)
134
+ """
135
+ none_type = type(None)
136
+ types = ((types,) if isinstance(types, type) else
137
+ (none_type,) if types is None else
138
+ tuple(none_type if tp is None else tp for tp in types))
139
+
140
+ def type_name(tp):
141
+ return ("None" if tp is none_type
142
+ else tp.__qualname__ if tp.__module__ == "builtins"
143
+ else f"{tp.__module__}.{tp.__qualname__}")
144
+
145
+ for k, v in kwargs.items():
146
+ if not isinstance(v, types):
147
+ names = [*map(type_name, types)]
148
+ if "None" in names: # Move it to the end for better wording.
149
+ names.remove("None")
150
+ names.append("None")
151
+ raise TypeError(
152
+ "{!r} must be an instance of {}, not a {}".format(
153
+ k,
154
+ ", ".join(names[:-1]) + " or " + names[-1]
155
+ if len(names) > 1 else names[0],
156
+ type_name(type(v))))
157
+
158
+
159
+ def list_suggestion_error_msg(name, potential, values):
160
+ """
161
+ Generate an error message that a potential setting is not an acceptable value.
162
+
163
+ If the acceptable values are all strings, and sufficiently large, then add just a
164
+ few suggestions to the end of the message. Otherwise list the supported values.
165
+
166
+ Parameters
167
+ ----------
168
+ name : str
169
+ The name of the setting, keyword argument, etc. to generate the message for.
170
+ potential
171
+ The potential value from the user that is not a valid choice.
172
+ values : iterable
173
+ Sequence of values to check on.
174
+ """
175
+ if len(values) > 5 and all(isinstance(v, str) for v in [potential, *values]):
176
+ best = difflib.get_close_matches(potential, values, cutoff=0.5)
177
+ match len(best):
178
+ case 0:
179
+ suggestion = ""
180
+ case 1:
181
+ suggestion = f" Did you mean: {best[0]!r}?"
182
+ case _:
183
+ suggestion = f" Did you mean one of: {', '.join(map(repr, best))}?"
184
+ else:
185
+ suggestion = f" Supported values are {', '.join(map(repr, values))}"
186
+ return f"{potential!r} is not a valid value for {name}.{suggestion}"
187
+
188
+
189
+ def check_in_list(values, /, **kwargs):
190
+ """
191
+ For each *key, value* pair in *kwargs*, check that *value* is in *values*;
192
+ if not, raise an appropriate ValueError.
193
+
194
+ Parameters
195
+ ----------
196
+ values : iterable
197
+ Sequence of values to check on.
198
+
199
+ Note: All values must support == comparisons.
200
+ This means in particular the entries must not be numpy arrays.
201
+ **kwargs : dict
202
+ *key, value* pairs as keyword arguments to find in *values*.
203
+
204
+ Raises
205
+ ------
206
+ ValueError
207
+ If any *value* in *kwargs* is not found in *values*.
208
+
209
+ Examples
210
+ --------
211
+ >>> _api.check_in_list(["foo", "bar"], arg=arg, other_arg=other_arg)
212
+ """
213
+ if not kwargs:
214
+ raise TypeError("No argument to check!")
215
+ for key, val in kwargs.items():
216
+ try:
217
+ exists = val in values
218
+ except ValueError:
219
+ # `in` internally uses `val == values[i]`. There are some objects
220
+ # that do not support == to arbitrary other objects, in particular
221
+ # numpy arrays.
222
+ # Since such objects are not allowed in values, we can gracefully
223
+ # handle the case that val (typically provided by users) is of such
224
+ # type and directly state it's not in the list instead of letting
225
+ # the individual `val == values[i]` ValueError surface.
226
+ exists = False
227
+ if not exists:
228
+ raise ValueError(list_suggestion_error_msg(key, val, values))
229
+
230
+
231
+ def check_shape(shape, /, **kwargs):
232
+ """
233
+ For each *key, value* pair in *kwargs*, check that *value* has the shape *shape*;
234
+ if not, raise an appropriate ValueError.
235
+
236
+ *None* in the shape is treated as a "free" size that can have any length.
237
+ e.g. (None, 2) -> (N, 2)
238
+
239
+ The values checked must be numpy arrays.
240
+
241
+ Examples
242
+ --------
243
+ To check for (N, 2) shaped arrays
244
+
245
+ >>> _api.check_shape((None, 2), arg=arg, other_arg=other_arg)
246
+ """
247
+ for k, v in kwargs.items():
248
+ data_shape = v.shape
249
+
250
+ if (len(data_shape) != len(shape)
251
+ or any(s != t and t is not None for s, t in zip(data_shape, shape))):
252
+ dim_labels = iter(itertools.chain(
253
+ 'NMLKJIH',
254
+ (f"D{i}" for i in itertools.count())))
255
+ text_shape = ", ".join([str(n) if n is not None else next(dim_labels)
256
+ for n in shape[::-1]][::-1])
257
+ if len(shape) == 1:
258
+ text_shape += ","
259
+
260
+ raise ValueError(
261
+ f"{k!r} must be {len(shape)}D with shape ({text_shape}), "
262
+ f"but your input has shape {v.shape}"
263
+ )
264
+
265
+
266
+ def getitem_checked(mapping, /, _error_cls=ValueError, **kwargs):
267
+ """
268
+ *kwargs* must consist of a single *key, value* pair. If *key* is in
269
+ *mapping*, return ``mapping[value]``; else, raise an appropriate
270
+ ValueError.
271
+
272
+ Parameters
273
+ ----------
274
+ _error_cls :
275
+ Class of error to raise.
276
+
277
+ Examples
278
+ --------
279
+ >>> _api.getitem_checked({"foo": "bar"}, arg=arg)
280
+ """
281
+ if len(kwargs) != 1:
282
+ raise ValueError("getitem_checked takes a single keyword argument")
283
+ (k, v), = kwargs.items()
284
+ try:
285
+ return mapping[v]
286
+ except KeyError:
287
+ raise _error_cls(list_suggestion_error_msg(k, v, mapping.keys())) from None
288
+
289
+
290
+ def caching_module_getattr(cls):
291
+ """
292
+ Helper decorator for implementing module-level ``__getattr__`` as a class.
293
+
294
+ This decorator must be used at the module toplevel as follows::
295
+
296
+ @caching_module_getattr
297
+ class __getattr__: # The class *must* be named ``__getattr__``.
298
+ @property # Only properties are taken into account.
299
+ def name(self): ...
300
+
301
+ The ``__getattr__`` class will be replaced by a ``__getattr__``
302
+ function such that trying to access ``name`` on the module will
303
+ resolve the corresponding property (which may be decorated e.g. with
304
+ ``_api.deprecated`` for deprecating module globals). The properties are
305
+ all implicitly cached. Moreover, a suitable AttributeError is generated
306
+ and raised if no property with the given name exists.
307
+ """
308
+
309
+ assert cls.__name__ == "__getattr__"
310
+ # Don't accidentally export cls dunders.
311
+ props = {name: prop for name, prop in vars(cls).items()
312
+ if isinstance(prop, property)}
313
+ instance = cls()
314
+
315
+ @functools.cache
316
+ def __getattr__(name):
317
+ if name in props:
318
+ return props[name].__get__(instance)
319
+ raise AttributeError(
320
+ f"module {cls.__module__!r} has no attribute {name!r}")
321
+
322
+ return __getattr__
323
+
324
+
325
+ def define_aliases(alias_d, cls=None):
326
+ """
327
+ Class decorator for defining property aliases.
328
+
329
+ Use as ::
330
+
331
+ @_api.define_aliases({"property": ["alias", ...], ...})
332
+ class C: ...
333
+
334
+ For each property, if the corresponding ``get_property`` is defined in the
335
+ class so far, an alias named ``get_alias`` will be defined; the same will
336
+ be done for setters. If neither the getter nor the setter exists, an
337
+ exception will be raised.
338
+
339
+ The alias map is stored as the ``_alias_to_prop`` attribute under the format
340
+ ``{"alias": "property", ...}` on the class, and can be used by
341
+ `.normalize_kwargs`.
342
+ """
343
+ if cls is None: # Return the actual class decorator.
344
+ return functools.partial(define_aliases, alias_d)
345
+
346
+ def make_alias(name): # Enforce a closure over *name*.
347
+ @functools.wraps(getattr(cls, name))
348
+ def method(self, *args, **kwargs):
349
+ return getattr(self, name)(*args, **kwargs)
350
+ return method
351
+
352
+ for prop, aliases in alias_d.items():
353
+ exists = False
354
+ for prefix in ["get_", "set_"]:
355
+ if prefix + prop in vars(cls):
356
+ exists = True
357
+ for alias in aliases:
358
+ method = make_alias(prefix + prop)
359
+ method.__name__ = prefix + alias
360
+ method.__doc__ = f"Alias for `{prefix + prop}`."
361
+ setattr(cls, prefix + alias, method)
362
+ if not exists:
363
+ raise ValueError(
364
+ f"Neither getter nor setter exists for {prop!r}")
365
+
366
+ alias_to_prop = {
367
+ alias: prop for prop, aliases in alias_d.items() for alias in aliases}
368
+
369
+ def get_aliased_and_aliases(d):
370
+ return {*d.keys(), *d.values()}
371
+
372
+ preexisting_aliases = getattr(cls, "_alias_to_prop", {})
373
+ conflicting = (get_aliased_and_aliases(preexisting_aliases)
374
+ & get_aliased_and_aliases(alias_to_prop))
375
+ if conflicting:
376
+ # Need to decide on conflict resolution policy.
377
+ raise NotImplementedError(
378
+ f"Parent class already defines conflicting aliases: {conflicting}")
379
+ cls._alias_to_prop = {**preexisting_aliases, **alias_to_prop}
380
+ return cls
381
+
382
+
383
+ def select_matching_signature(funcs, *args, **kwargs):
384
+ """
385
+ Select and call the function that accepts ``*args, **kwargs``.
386
+
387
+ *funcs* is a list of functions which should not raise any exception (other
388
+ than `TypeError` if the arguments passed do not match their signature).
389
+
390
+ `select_matching_signature` tries to call each of the functions in *funcs*
391
+ with ``*args, **kwargs`` (in the order in which they are given). Calls
392
+ that fail with a `TypeError` are silently skipped. As soon as a call
393
+ succeeds, `select_matching_signature` returns its return value. If no
394
+ function accepts ``*args, **kwargs``, then the `TypeError` raised by the
395
+ last failing call is re-raised.
396
+
397
+ Callers should normally make sure that any ``*args, **kwargs`` can only
398
+ bind a single *func* (to avoid any ambiguity), although this is not checked
399
+ by `select_matching_signature`.
400
+
401
+ Notes
402
+ -----
403
+ `select_matching_signature` is intended to help implementing
404
+ signature-overloaded functions. In general, such functions should be
405
+ avoided, except for back-compatibility concerns. A typical use pattern is
406
+ ::
407
+
408
+ def my_func(*args, **kwargs):
409
+ params = select_matching_signature(
410
+ [lambda old1, old2: locals(), lambda new: locals()],
411
+ *args, **kwargs)
412
+ if "old1" in params:
413
+ warn_deprecated(...)
414
+ old1, old2 = params.values() # note that locals() is ordered.
415
+ else:
416
+ new, = params.values()
417
+ # do things with params
418
+
419
+ which allows *my_func* to be called either with two parameters (*old1* and
420
+ *old2*) or a single one (*new*). Note that the new signature is given
421
+ last, so that callers get a `TypeError` corresponding to the new signature
422
+ if the arguments they passed in do not match any signature.
423
+ """
424
+ # Rather than relying on locals() ordering, one could have just used func's
425
+ # signature (``bound = inspect.signature(func).bind(*args, **kwargs);
426
+ # bound.apply_defaults(); return bound``) but that is significantly slower.
427
+ for i, func in enumerate(funcs):
428
+ try:
429
+ return func(*args, **kwargs)
430
+ except TypeError:
431
+ if i == len(funcs) - 1:
432
+ raise
433
+
434
+
435
+ def nargs_error(name, takes, given):
436
+ """Generate a TypeError to be raised by function calls with wrong arity."""
437
+ return TypeError(f"{name}() takes {takes} positional arguments but "
438
+ f"{given} were given")
439
+
440
+
441
+ def kwarg_error(name, kw):
442
+ """
443
+ Generate a TypeError to be raised by function calls with wrong kwarg.
444
+
445
+ Parameters
446
+ ----------
447
+ name : str
448
+ The name of the calling function.
449
+ kw : str or Iterable[str]
450
+ Either the invalid keyword argument name, or an iterable yielding
451
+ invalid keyword arguments (e.g., a ``kwargs`` dict).
452
+ """
453
+ if not isinstance(kw, str):
454
+ kw = next(iter(kw))
455
+ return TypeError(f"{name}() got an unexpected keyword argument '{kw}'")
456
+
457
+
458
+ def recursive_subclasses(cls):
459
+ """Yield *cls* and direct and indirect subclasses of *cls*."""
460
+ yield cls
461
+ for subcls in cls.__subclasses__():
462
+ yield from recursive_subclasses(subcls)
463
+
464
+
465
+ def warn_external(message, category=None):
466
+ """
467
+ `warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
468
+
469
+ The original emitter of the warning can be obtained by patching this
470
+ function back to `warnings.warn`, i.e. ``_api.warn_external =
471
+ warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
472
+ etc.).
473
+ """
474
+ kwargs = {}
475
+ if sys.version_info[:2] >= (3, 12):
476
+ # Go to Python's `site-packages` or `lib` from an editable install.
477
+ basedir = pathlib.Path(__file__).parents[2]
478
+ kwargs['skip_file_prefixes'] = (str(basedir / 'matplotlib'),
479
+ str(basedir / 'mpl_toolkits'))
480
+ else:
481
+ frame = sys._getframe()
482
+ for stacklevel in itertools.count(1):
483
+ if frame is None:
484
+ # when called in embedded context may hit frame is None
485
+ kwargs['stacklevel'] = stacklevel
486
+ break
487
+ if not re.match(r"\A(matplotlib|matplotlib_rs|mpl_toolkits)(\Z|\.(?!tests\.))",
488
+ # Work around sphinx-gallery not setting __name__.
489
+ frame.f_globals.get("__name__", "")):
490
+ kwargs['stacklevel'] = stacklevel
491
+ break
492
+ frame = frame.f_back
493
+ # preemptively break reference cycle between locals and the frame
494
+ del frame
495
+ warnings.warn(message, category, **kwargs)