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.
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.cp315-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,515 @@
1
+ # Vendored by tools/vendor_deps.py from pyparsing 3.3.3 (see licenses/LICENSE_PYPARSING).
2
+ # util.py
3
+ import contextlib
4
+ import re
5
+ from functools import lru_cache, wraps
6
+ import inspect
7
+ import itertools
8
+ import types
9
+ from typing import Callable, Union, Iterable, TypeVar, cast, Any
10
+ import warnings
11
+
12
+ from .warnings import PyparsingDeprecationWarning, PyparsingDiagnosticWarning
13
+
14
+ _bslash = chr(92)
15
+ C = TypeVar("C", bound=Callable)
16
+
17
+
18
+ class __config_flags:
19
+ """Internal class for defining compatibility and debugging flags"""
20
+
21
+ _all_names: list[str] = []
22
+ _fixed_names: list[str] = []
23
+ _type_desc = "configuration"
24
+
25
+ @classmethod
26
+ def _set(cls, dname, value):
27
+ if dname in cls._fixed_names:
28
+ warnings.warn(
29
+ f"{cls.__name__}.{dname} {cls._type_desc} is {str(getattr(cls, dname)).upper()}"
30
+ f" and cannot be overridden",
31
+ PyparsingDiagnosticWarning,
32
+ stacklevel=3,
33
+ )
34
+ return
35
+ if dname in cls._all_names:
36
+ setattr(cls, dname, value)
37
+ else:
38
+ raise ValueError(f"no such {cls._type_desc} {dname!r}")
39
+
40
+ enable = classmethod(lambda cls, name: cls._set(name, True))
41
+ disable = classmethod(lambda cls, name: cls._set(name, False))
42
+
43
+
44
+ @lru_cache(maxsize=128)
45
+ def col(loc: int, strg: str) -> int:
46
+ """
47
+ Returns current column within a string, counting newlines as line separators.
48
+ The first column is number 1.
49
+
50
+ Note: the default parsing behavior is to expand tabs in the input string
51
+ before starting the parsing process. See
52
+ :meth:`ParserElement.parse_string` for more
53
+ information on parsing strings containing ``<TAB>`` s, and suggested
54
+ methods to maintain a consistent view of the parsed string, the parse
55
+ location, and line and column positions within the parsed string.
56
+ """
57
+ s = strg
58
+ return 1 if 0 < loc < len(s) and s[loc - 1] == "\n" else loc - s.rfind("\n", 0, loc)
59
+
60
+
61
+ @lru_cache(maxsize=128)
62
+ def lineno(loc: int, strg: str) -> int:
63
+ """Returns current line number within a string, counting newlines as line separators.
64
+ The first line is number 1.
65
+
66
+ Note - the default parsing behavior is to expand tabs in the input string
67
+ before starting the parsing process. See :meth:`ParserElement.parse_string`
68
+ for more information on parsing strings containing ``<TAB>`` s, and
69
+ suggested methods to maintain a consistent view of the parsed string, the
70
+ parse location, and line and column positions within the parsed string.
71
+ """
72
+ return strg.count("\n", 0, loc) + 1
73
+
74
+
75
+ @lru_cache(maxsize=128)
76
+ def line(loc: int, strg: str) -> str:
77
+ """
78
+ Returns the line of text containing loc within a string, counting newlines as line separators.
79
+ """
80
+ last_cr = strg.rfind("\n", 0, loc)
81
+ next_cr = strg.find("\n", loc)
82
+ return strg[last_cr + 1 : next_cr] if next_cr >= 0 else strg[last_cr + 1 :]
83
+
84
+
85
+ class _UnboundedCache:
86
+ def __init__(self):
87
+ cache = {}
88
+ cache_get = cache.get
89
+ self.not_in_cache = not_in_cache = object()
90
+
91
+ def get(_, key):
92
+ return cache_get(key, not_in_cache)
93
+
94
+ def set_(_, key, value):
95
+ cache[key] = value
96
+
97
+ def clear(_):
98
+ cache.clear()
99
+
100
+ self.size = None
101
+ self.get = types.MethodType(get, self)
102
+ self.set = types.MethodType(set_, self)
103
+ self.clear = types.MethodType(clear, self)
104
+
105
+
106
+ class _FifoCache:
107
+ def __init__(self, size):
108
+ cache = {}
109
+ self.size = size
110
+ self.not_in_cache = not_in_cache = object()
111
+ cache_get = cache.get
112
+ cache_pop = cache.pop
113
+
114
+ def get(_, key):
115
+ return cache_get(key, not_in_cache)
116
+
117
+ def set_(_, key, value):
118
+ cache[key] = value
119
+ while len(cache) > size:
120
+ # pop oldest element in cache by getting the first key
121
+ cache_pop(next(iter(cache)))
122
+
123
+ def clear(_):
124
+ cache.clear()
125
+
126
+ self.get = types.MethodType(get, self)
127
+ self.set = types.MethodType(set_, self)
128
+ self.clear = types.MethodType(clear, self)
129
+
130
+
131
+ class LRUMemo:
132
+ """
133
+ A memoizing mapping that retains `capacity` deleted items
134
+
135
+ The memo tracks retained items by their access order; once `capacity` items
136
+ are retained, the least recently used item is discarded.
137
+ """
138
+
139
+ def __init__(self, capacity):
140
+ self._capacity = capacity
141
+ self._active = {}
142
+ self._memory = {}
143
+
144
+ def __getitem__(self, key):
145
+ try:
146
+ return self._active[key]
147
+ except KeyError:
148
+ self._memory[key] = self._memory.pop(key)
149
+ return self._memory[key]
150
+
151
+ def __setitem__(self, key, value):
152
+ self._memory.pop(key, None)
153
+ self._active[key] = value
154
+
155
+ def __delitem__(self, key):
156
+ try:
157
+ value = self._active.pop(key)
158
+ except KeyError:
159
+ pass
160
+ else:
161
+ oldest_keys = list(self._memory)[: -(self._capacity + 1)]
162
+ for key_to_delete in oldest_keys:
163
+ self._memory.pop(key_to_delete)
164
+ self._memory[key] = value
165
+
166
+ def clear(self):
167
+ self._active.clear()
168
+ self._memory.clear()
169
+
170
+
171
+ class UnboundedMemo(dict):
172
+ """
173
+ A memoizing mapping that retains all deleted items
174
+ """
175
+
176
+ def __delitem__(self, key):
177
+ pass
178
+
179
+
180
+ def _escape_regex_range_chars(s: str) -> str:
181
+ # escape these chars: ^-[]
182
+ for c in r"\^-[]":
183
+ s = s.replace(c, _bslash + c)
184
+ s = s.replace("\n", r"\n")
185
+ s = s.replace("\t", r"\t")
186
+ return str(s)
187
+
188
+
189
+ class _GroupConsecutive:
190
+ """
191
+ Used as a callable `key` for itertools.groupby to group
192
+ characters that are consecutive:
193
+
194
+ .. testcode::
195
+
196
+ from itertools import groupby
197
+ from pyparsing.util import _GroupConsecutive
198
+
199
+ grouped = groupby("abcdejkmpqrs", key=_GroupConsecutive())
200
+ for index, group in grouped:
201
+ print(tuple([index, list(group)]))
202
+
203
+ prints:
204
+
205
+ .. testoutput::
206
+
207
+ (0, ['a', 'b', 'c', 'd', 'e'])
208
+ (1, ['j', 'k'])
209
+ (2, ['m'])
210
+ (3, ['p', 'q', 'r', 's'])
211
+ """
212
+
213
+ def __init__(self) -> None:
214
+ self.prev = 0
215
+ self.counter = itertools.count()
216
+ self.value = -1
217
+
218
+ def __call__(self, char: str) -> int:
219
+ c_int = ord(char)
220
+ self.prev, prev = c_int, self.prev
221
+ if c_int - prev > 1:
222
+ self.value = next(self.counter)
223
+ return self.value
224
+
225
+
226
+ def _is_iterable(obj, _str_type=(str, bytes), _iter_exception=Exception):
227
+ # str's are iterable, but in pyparsing, we don't want to iterate over them
228
+ if isinstance(obj, _str_type):
229
+ return False
230
+
231
+ try:
232
+ iter(obj)
233
+ except _iter_exception: # noqa
234
+ return False
235
+ else:
236
+ return True
237
+
238
+
239
+ def _escape_re_range_char(c: str) -> str:
240
+ return fr"\{c}" if c in r"\^-][" else c
241
+
242
+
243
+ def _collapse_string_to_ranges(
244
+ s: Union[str, Iterable[str]], re_escape: bool = True
245
+ ) -> str:
246
+ r"""
247
+ Take a string or list of single-character strings, and return
248
+ a string of the consecutive characters in that string collapsed
249
+ into groups, as might be used in a regular expression '[a-z]'
250
+ character set::
251
+
252
+ 'a' -> 'a' -> '[a]'
253
+ 'bc' -> 'bc' -> '[bc]'
254
+ 'defgh' -> 'd-h' -> '[d-h]'
255
+ 'fdgeh' -> 'd-h' -> '[d-h]'
256
+ 'jklnpqrtu' -> 'j-lnp-rtu' -> '[j-lnp-rtu]'
257
+
258
+ Duplicates get collapsed out::
259
+
260
+ 'aaa' -> 'a' -> '[a]'
261
+ 'bcbccb' -> 'bc' -> '[bc]'
262
+ 'defghhgf' -> 'd-h' -> '[d-h]'
263
+ 'jklnpqrjjjtu' -> 'j-lnp-rtu' -> '[j-lnp-rtu]'
264
+
265
+ Spaces are preserved::
266
+
267
+ 'ab c' -> ' a-c' -> '[ a-c]'
268
+
269
+ Characters that are significant when defining regex ranges
270
+ get escaped::
271
+
272
+ 'acde[]-' -> r'\-\[\]ac-e' -> r'[\-\[\]ac-e]'
273
+ """
274
+
275
+ # Developer notes:
276
+ # - Do not optimize this code assuming that the given input string
277
+ # or internal lists will be short (such as in loading generators into
278
+ # lists to make it easier to find the last element); this method is also
279
+ # used to generate regex ranges for character sets in the pyparsing.unicode
280
+ # classes, and these can be _very_ long lists of strings
281
+
282
+ escape_re_range_char: Callable[[str], str]
283
+ if re_escape:
284
+ escape_re_range_char = _escape_re_range_char
285
+ else:
286
+ escape_re_range_char = lambda ss: ss
287
+
288
+ ret = []
289
+
290
+ # reduce input string to remove duplicates, and put in sorted order
291
+ s_chars: list[str] = sorted(set(s))
292
+
293
+ if len(s_chars) > 2:
294
+ # find groups of characters that are consecutive (can be collapsed
295
+ # down to "<first>-<last>")
296
+ for _, chars in itertools.groupby(s_chars, key=_GroupConsecutive()):
297
+ # _ is unimportant, is just used to identify groups
298
+ # chars is an iterator of one or more consecutive characters
299
+ # that comprise the current group
300
+ first = last = next(chars)
301
+ with contextlib.suppress(ValueError):
302
+ *_, last = chars
303
+
304
+ if first == last:
305
+ # there was only a single char in this group
306
+ ret.append(escape_re_range_char(first))
307
+
308
+ elif last == chr(ord(first) + 1):
309
+ # there were only 2 characters in this group
310
+ # 'a','b' -> 'ab'
311
+ ret.append(f"{escape_re_range_char(first)}{escape_re_range_char(last)}")
312
+
313
+ else:
314
+ # there were > 2 characters in this group, make into a range
315
+ # 'c','d','e' -> 'c-e'
316
+ ret.append(
317
+ f"{escape_re_range_char(first)}-{escape_re_range_char(last)}"
318
+ )
319
+ else:
320
+ # only 1 or 2 chars were given to form into groups
321
+ # 'a' -> ['a']
322
+ # 'bc' -> ['b', 'c']
323
+ # 'dg' -> ['d', 'g']
324
+ # no need to list them with "-", just return as a list
325
+ # (after escaping)
326
+ ret = [escape_re_range_char(c) for c in s_chars]
327
+
328
+ return "".join(ret)
329
+
330
+
331
+ def _flatten(ll: Iterable) -> list:
332
+ ret = []
333
+ for i in ll:
334
+ # Developer notes:
335
+ # - do not collapse this section of code, isinstance checks are done
336
+ # in optimal order
337
+ if isinstance(i, str):
338
+ ret.append(i)
339
+ elif isinstance(i, Iterable):
340
+ ret.extend(_flatten(i))
341
+ else:
342
+ ret.append(i)
343
+ return ret
344
+
345
+
346
+ def _convert_escaped_numerics_to_char(s: str) -> str:
347
+ if s == "0":
348
+ return "\0"
349
+ if s.isdigit() and len(s) == 3:
350
+ return chr(int(s, 8))
351
+ elif s.startswith(("u", "x")):
352
+ return chr(int(s[1:], 16))
353
+ return s
354
+
355
+
356
+ def make_compressed_re(
357
+ word_list: Iterable[str],
358
+ max_level: int = 2,
359
+ *,
360
+ non_capturing_groups: bool = True,
361
+ _level: int = 1,
362
+ ) -> str:
363
+ """
364
+ Create a regular expression string from a list of words, collapsing by common
365
+ prefixes and optional suffixes.
366
+
367
+ Calls itself recursively to build nested sublists for each group of suffixes
368
+ that have a shared prefix.
369
+ """
370
+
371
+ def get_suffixes_from_common_prefixes(namelist: list[str]):
372
+ if len(namelist) > 1:
373
+ for prefix, suffixes in itertools.groupby(namelist, key=lambda s: s[:1]):
374
+ yield prefix, sorted([s[1:] for s in suffixes], key=len, reverse=True)
375
+ else:
376
+ yield namelist[0][0], [namelist[0][1:]]
377
+
378
+ if _level == 1:
379
+ if not word_list:
380
+ raise ValueError("no words given to make_compressed_re()")
381
+
382
+ if "" in word_list:
383
+ raise ValueError("word list cannot contain empty string")
384
+ else:
385
+ # internal recursive call, just return empty string if no words
386
+ if not word_list:
387
+ return ""
388
+
389
+ # dedupe the word list
390
+ word_list = list({}.fromkeys(word_list))
391
+
392
+ if max_level == 0:
393
+ if any(len(wd) > 1 for wd in word_list):
394
+ return "|".join(
395
+ sorted([re.escape(wd) for wd in word_list], key=len, reverse=True)
396
+ )
397
+ else:
398
+ return f"[{''.join(_escape_regex_range_chars(wd) for wd in word_list)}]"
399
+
400
+ ret = []
401
+ sep = ""
402
+ ncgroup = "?:" if non_capturing_groups else ""
403
+
404
+ for initial, suffixes in get_suffixes_from_common_prefixes(sorted(word_list)):
405
+ ret.append(sep)
406
+ sep = "|"
407
+
408
+ initial = re.escape(initial)
409
+
410
+ trailing = ""
411
+ if "" in suffixes:
412
+ trailing = "?"
413
+ suffixes.remove("")
414
+
415
+ if len(suffixes) > 1:
416
+ if all(len(s) == 1 for s in suffixes):
417
+ ret.append(
418
+ f"{initial}[{''.join(_escape_regex_range_chars(s) for s in suffixes)}]{trailing}"
419
+ )
420
+ else:
421
+ if _level < max_level:
422
+ suffix_re = make_compressed_re(
423
+ sorted(suffixes),
424
+ max_level,
425
+ non_capturing_groups=non_capturing_groups,
426
+ _level=_level + 1,
427
+ )
428
+ ret.append(f"{initial}({ncgroup}{suffix_re}){trailing}")
429
+ else:
430
+ if all(len(s) == 1 for s in suffixes):
431
+ ret.append(
432
+ f"{initial}[{''.join(_escape_regex_range_chars(s) for s in suffixes)}]{trailing}"
433
+ )
434
+ else:
435
+ suffixes.sort(key=len, reverse=True)
436
+ ret.append(
437
+ f"{initial}({ncgroup}{'|'.join(re.escape(s) for s in suffixes)}){trailing}"
438
+ )
439
+ else:
440
+ if suffixes:
441
+ suffix = re.escape(suffixes[0])
442
+ if len(suffix) > 1 and trailing:
443
+ ret.append(f"{initial}({ncgroup}{suffix}){trailing}")
444
+ else:
445
+ ret.append(f"{initial}{suffix}{trailing}")
446
+ else:
447
+ ret.append(initial)
448
+ return "".join(ret)
449
+
450
+
451
+ def replaced_by_pep8(compat_name: str, fn: C) -> C:
452
+
453
+ # Unwrap staticmethod/classmethod
454
+ fn = getattr(fn, "__func__", fn)
455
+
456
+ # (Presence of 'self' arg in signature is used by explain_exception() methods, so we take
457
+ # some extra steps to add it if present in decorated function.)
458
+ if ["self"] == list(inspect.signature(fn).parameters)[:1]:
459
+
460
+ @wraps(fn)
461
+ def _inner(self, *args, **kwargs):
462
+ warnings.warn(
463
+ f"{compat_name!r} deprecated - use {fn.__name__!r}",
464
+ PyparsingDeprecationWarning,
465
+ stacklevel=2,
466
+ )
467
+ return fn(self, *args, **kwargs)
468
+
469
+ else:
470
+
471
+ @wraps(fn)
472
+ def _inner(*args, **kwargs):
473
+ warnings.warn(
474
+ f"{compat_name!r} deprecated - use {fn.__name__!r}",
475
+ PyparsingDeprecationWarning,
476
+ stacklevel=2,
477
+ )
478
+ return fn(*args, **kwargs)
479
+
480
+ _inner.__doc__ = f"""
481
+ .. deprecated:: 3.0.0
482
+ Use :class:`{fn.__name__}` instead
483
+ """
484
+ _inner.__name__ = compat_name
485
+ _inner.__annotations__ = fn.__annotations__
486
+ if isinstance(fn, types.FunctionType):
487
+ _inner.__kwdefaults__ = fn.__kwdefaults__ # type: ignore [attr-defined]
488
+ elif isinstance(fn, type) and hasattr(fn, "__init__"):
489
+ _inner.__kwdefaults__ = fn.__init__.__kwdefaults__ # type: ignore [misc,attr-defined]
490
+ else:
491
+ _inner.__kwdefaults__ = None # type: ignore [attr-defined]
492
+ _inner.__qualname__ = fn.__qualname__
493
+ return cast(C, _inner)
494
+
495
+
496
+ def _to_pep8_name(s: str, _re_sub_pattern=re.compile(r"([a-z])([A-Z])")) -> str:
497
+ s = _re_sub_pattern.sub(r"\1_\2", s)
498
+ return s.lower()
499
+
500
+
501
+ def deprecate_argument(
502
+ kwargs: dict[str, Any], arg_name: str, default_value=None, *, new_name: str = ""
503
+ ) -> Any:
504
+
505
+ if arg_name in kwargs:
506
+ new_name = new_name or _to_pep8_name(arg_name)
507
+ warnings.warn(
508
+ f"{arg_name!r} argument is deprecated, use {new_name!r}",
509
+ category=PyparsingDeprecationWarning,
510
+ stacklevel=3,
511
+ )
512
+ else:
513
+ kwargs[arg_name] = default_value
514
+
515
+ return kwargs[arg_name]
@@ -0,0 +1,11 @@
1
+ # Vendored by tools/vendor_deps.py from pyparsing 3.3.3 (see licenses/LICENSE_PYPARSING).
2
+ class PyparsingWarning(UserWarning):
3
+ """Base warning class for all pyparsing warnings"""
4
+
5
+
6
+ class PyparsingDeprecationWarning(PyparsingWarning, DeprecationWarning):
7
+ """Base warning class for all pyparsing deprecation warnings"""
8
+
9
+
10
+ class PyparsingDiagnosticWarning(PyparsingWarning):
11
+ """Base warning class for all pyparsing diagnostic warnings"""