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
matplotlib_rs/_kiwi.py ADDED
@@ -0,0 +1,484 @@
1
+ """
2
+ The kiwisolver API used by constrained layout, with the Rust port of kiwi's
3
+ Cassowary solver (licenses/LICENSE_KIWISOLVER), so that matplotlib_rs needs
4
+ only NumPy.
5
+
6
+ The arithmetic follows kiwisolver's ``symbolics.h`` operation by operation
7
+ (e.g. dividing by ``d`` multiplies by ``1.0 / d``) and constraints are reduced
8
+ as by kiwi. kiwi orders the variables of each constraint by their memory
9
+ addresses, so its results can change in the last bits from one process to
10
+ another; here they are ordered by creation, so that layouts are deterministic
11
+ (and in practice identical to kiwisolver's). Set ``MPLRS_KIWI=kiwisolver``
12
+ to use an installed kiwisolver instead (see `load`).
13
+ """
14
+
15
+ import itertools
16
+ import numbers
17
+
18
+ from . import _mplrs
19
+
20
+ __all__ = ["BadRequiredStrength", "Constraint", "DuplicateConstraint",
21
+ "DuplicateEditVariable", "Expression", "Solver", "Term",
22
+ "UnknownConstraint", "UnknownEditVariable", "UnsatisfiableConstraint",
23
+ "Variable", "strength"]
24
+
25
+
26
+ def load():
27
+ """This module, or kiwisolver if ``MPLRS_KIWI=kiwisolver``."""
28
+ import os
29
+ import sys
30
+ if os.environ.get("MPLRS_KIWI") == "kiwisolver":
31
+ import kiwisolver
32
+ return kiwisolver
33
+ return sys.modules[__name__]
34
+
35
+
36
+ class BadRequiredStrength(Exception):
37
+ pass
38
+
39
+
40
+ class DuplicateConstraint(Exception):
41
+ __slots__ = ("constraint",)
42
+
43
+ def __init__(self, constraint):
44
+ self.constraint = constraint
45
+
46
+
47
+ class DuplicateEditVariable(Exception):
48
+ __slots__ = ("edit_variable",)
49
+
50
+ def __init__(self, edit_variable):
51
+ self.edit_variable = edit_variable
52
+
53
+
54
+ class UnknownConstraint(Exception):
55
+ __slots__ = ("constraint",)
56
+
57
+ def __init__(self, constraint):
58
+ self.constraint = constraint
59
+
60
+
61
+ class UnknownEditVariable(Exception):
62
+ __slots__ = ("edit_variable",)
63
+
64
+ def __init__(self, edit_variable):
65
+ self.edit_variable = edit_variable
66
+
67
+
68
+ class UnsatisfiableConstraint(Exception):
69
+ __slots__ = ("constraint",)
70
+
71
+ def __init__(self, constraint):
72
+ self.constraint = constraint
73
+
74
+
75
+ class strength:
76
+ """Constraint strengths (``kiwi::strength``)."""
77
+
78
+ @staticmethod
79
+ def create(a, b, c, w=1.0):
80
+ result = 0.0
81
+ result += max(0.0, min(1000.0, a * w)) * 1000000.0
82
+ result += max(0.0, min(1000.0, b * w)) * 1000.0
83
+ result += max(0.0, min(1000.0, c * w))
84
+ return result
85
+
86
+
87
+ strength.required = strength.create(1000.0, 1000.0, 1000.0)
88
+ strength.strong = strength.create(1.0, 0.0, 0.0)
89
+ strength.medium = strength.create(0.0, 1.0, 0.0)
90
+ strength.weak = strength.create(0.0, 0.0, 1.0)
91
+
92
+ _STRENGTHS = {"required": strength.required, "strong": strength.strong,
93
+ "medium": strength.medium, "weak": strength.weak}
94
+ _OPS = {"<=": 0, ">=": 1, "==": 2}
95
+
96
+
97
+ def _clip(value):
98
+ return max(0.0, min(strength.required, value))
99
+
100
+
101
+ def _to_strength(value):
102
+ if isinstance(value, str):
103
+ try:
104
+ return _STRENGTHS[value]
105
+ except KeyError:
106
+ raise ValueError("string strength must be 'required', 'strong', 'medium', "
107
+ f"or 'weak', not '{value}'") from None
108
+ return _to_double(value)
109
+
110
+
111
+ def _to_double(value):
112
+ if isinstance(value, (float, int)):
113
+ return float(value)
114
+ raise TypeError(f"Expected object of type `float, int, or long`. "
115
+ f"Got object of type `{type(value).__name__}` instead.")
116
+
117
+
118
+ def _number(value):
119
+ """*value* as a float if kiwisolver does arithmetic with it, else None.
120
+
121
+ kiwisolver accepts Python floats and ints and returns NotImplemented for
122
+ other numbers (e.g. NumPy scalars), which then multiply through NumPy's
123
+ object loop with the same result.
124
+ """
125
+ if isinstance(value, (float, int)):
126
+ return float(value)
127
+ if isinstance(value, numbers.Real):
128
+ return float(value)
129
+ return None
130
+
131
+
132
+ _ids = itertools.count(1)
133
+
134
+
135
+ class _Symbolic:
136
+ __slots__ = ()
137
+
138
+ def _expr(self):
139
+ raise NotImplementedError
140
+
141
+ def __neg__(self):
142
+ return self * -1.0
143
+
144
+ def __add__(self, other):
145
+ return _add(self, other)
146
+
147
+ def __radd__(self, other):
148
+ return _add(self, other, reverse=True)
149
+
150
+ def __sub__(self, other):
151
+ return _sub(self, other)
152
+
153
+ def __rsub__(self, other):
154
+ return _sub(self, other, reverse=True)
155
+
156
+ def __truediv__(self, other):
157
+ d = _number(other)
158
+ if d is None or isinstance(other, _Symbolic):
159
+ return NotImplemented
160
+ if d == 0.0:
161
+ raise ZeroDivisionError("float division by zero")
162
+ return self * (1.0 / d)
163
+
164
+ def __eq__(self, other):
165
+ return _constraint(self, other, 2)
166
+
167
+ def __le__(self, other):
168
+ return _constraint(self, other, 0)
169
+
170
+ def __ge__(self, other):
171
+ return _constraint(self, other, 1)
172
+
173
+ def __lt__(self, other):
174
+ raise TypeError(f"unsupported operand type(s) for <: "
175
+ f"'{type(self).__name__}' and '{type(other).__name__}'")
176
+
177
+ def __gt__(self, other):
178
+ raise TypeError(f"unsupported operand type(s) for >: "
179
+ f"'{type(self).__name__}' and '{type(other).__name__}'")
180
+
181
+ def __ne__(self, other):
182
+ raise TypeError(f"unsupported operand type(s) for !=: "
183
+ f"'{type(self).__name__}' and '{type(other).__name__}'")
184
+
185
+ __hash__ = None
186
+
187
+
188
+ class Variable(_Symbolic):
189
+ """A variable of the solver; ``value()`` is set by `.Solver.updateVariables`."""
190
+
191
+ __slots__ = ("_name", "_context", "_value", "_id", "__weakref__")
192
+
193
+ def __init__(self, name="", context=None):
194
+ if not isinstance(name, str):
195
+ raise TypeError(f"Expected object of type `str`. "
196
+ f"Got object of type `{type(name).__name__}` instead.")
197
+ self._name = name
198
+ self._context = context
199
+ self._value = 0.0
200
+ self._id = next(_ids)
201
+
202
+ def name(self):
203
+ return self._name
204
+
205
+ def setName(self, name):
206
+ self._name = name
207
+
208
+ def context(self):
209
+ return self._context
210
+
211
+ def setContext(self, context):
212
+ self._context = context
213
+
214
+ def value(self):
215
+ return self._value
216
+
217
+ def __repr__(self):
218
+ return self._name
219
+
220
+ def __mul__(self, other):
221
+ c = _number(other)
222
+ if c is None or isinstance(other, _Symbolic):
223
+ return NotImplemented
224
+ return Term(self, c)
225
+
226
+ __rmul__ = __mul__
227
+
228
+ def _expr(self):
229
+ return Expression((Term(self, 1.0),))
230
+
231
+
232
+ class Term(_Symbolic):
233
+ __slots__ = ("_variable", "_coefficient")
234
+
235
+ def __init__(self, variable, coefficient=1.0):
236
+ if not isinstance(variable, Variable):
237
+ raise TypeError(f"Expected object of type `Variable`. "
238
+ f"Got object of type `{type(variable).__name__}` instead.")
239
+ self._variable = variable
240
+ self._coefficient = _to_double(coefficient)
241
+
242
+ def variable(self):
243
+ return self._variable
244
+
245
+ def coefficient(self):
246
+ return self._coefficient
247
+
248
+ def value(self):
249
+ return self._coefficient * self._variable._value
250
+
251
+ def __repr__(self):
252
+ return f"{self._coefficient:g} * {self._variable._name}"
253
+
254
+ def __mul__(self, other):
255
+ c = _number(other)
256
+ if c is None or isinstance(other, _Symbolic):
257
+ return NotImplemented
258
+ return Term(self._variable, self._coefficient * c)
259
+
260
+ __rmul__ = __mul__
261
+
262
+
263
+ class Expression(_Symbolic):
264
+ __slots__ = ("_terms", "_constant")
265
+
266
+ def __init__(self, terms, constant=0.0):
267
+ terms = tuple(terms)
268
+ for t in terms:
269
+ if not isinstance(t, Term):
270
+ raise TypeError(f"Expected object of type `Term`. "
271
+ f"Got object of type `{type(t).__name__}` instead.")
272
+ self._terms = terms
273
+ self._constant = _to_double(constant)
274
+
275
+ def terms(self):
276
+ return self._terms
277
+
278
+ def constant(self):
279
+ return self._constant
280
+
281
+ def value(self):
282
+ result = self._constant
283
+ for t in self._terms:
284
+ result += t._coefficient * t._variable._value
285
+ return result
286
+
287
+ def __repr__(self):
288
+ return "".join(f"{t!r} + " for t in self._terms) + f"{self._constant:g}"
289
+
290
+ def __mul__(self, other):
291
+ c = _number(other)
292
+ if c is None or isinstance(other, _Symbolic):
293
+ return NotImplemented
294
+ return Expression(tuple(t * c for t in self._terms), self._constant * c)
295
+
296
+ __rmul__ = __mul__
297
+
298
+
299
+ def _term(x):
300
+ return Term(x, 1.0) if isinstance(x, Variable) else x
301
+
302
+
303
+ def _add(first, second, reverse=False):
304
+ # kiwisolver: Variable -> Term(v, 1.0); Term + Term -> Expression;
305
+ # Expression + Term appends; numbers are added to the constant.
306
+ if not isinstance(second, _Symbolic):
307
+ c = _number(second)
308
+ if c is None:
309
+ return NotImplemented
310
+ a = _term(first)
311
+ if isinstance(a, Term):
312
+ return Expression((a,), c)
313
+ return Expression(a._terms, a._constant + c)
314
+ a, b = (_term(second), _term(first)) if reverse else (_term(first), _term(second))
315
+ if isinstance(a, Expression) and isinstance(b, Expression):
316
+ return Expression(a._terms + b._terms, a._constant + b._constant)
317
+ if isinstance(a, Expression):
318
+ return Expression(a._terms + (b,), a._constant)
319
+ if isinstance(b, Expression):
320
+ return Expression(b._terms + (a,), b._constant)
321
+ return Expression((a, b), 0.0)
322
+
323
+
324
+ def _sub(first, second, reverse=False):
325
+ if reverse:
326
+ # number - symbolic
327
+ c = _number(second)
328
+ if c is None or isinstance(second, _Symbolic):
329
+ return NotImplemented
330
+ return _add(-first, c)
331
+ if not isinstance(second, _Symbolic):
332
+ c = _number(second)
333
+ if c is None:
334
+ return NotImplemented
335
+ return _add(first, -c)
336
+ return _add(first, -second)
337
+
338
+
339
+ class Constraint:
340
+ """A linear constraint ``expression <op> 0`` with a strength."""
341
+
342
+ __slots__ = ("_expression", "_terms", "_op", "_strength", "_id", "__weakref__")
343
+
344
+ def __init__(self, expression, op, strength="required"):
345
+ if not isinstance(expression, Expression):
346
+ raise TypeError(f"Expected object of type `Expression`. "
347
+ f"Got object of type `{type(expression).__name__}` instead.")
348
+ if not isinstance(op, str):
349
+ raise TypeError(f"Expected object of type `str`. "
350
+ f"Got object of type `{type(op).__name__}` instead.")
351
+ if op not in _OPS:
352
+ raise ValueError(f"relational operator must be '==', '<=', or '>=', not '{op}'")
353
+ self._init(_reduce(expression), _OPS[op], _to_strength(strength))
354
+
355
+ def _init(self, expression, op, strength):
356
+ self._expression = expression
357
+ self._op = op
358
+ self._strength = _clip(strength)
359
+ # kiwi reduces again (each variable occurs once here), ordered by
360
+ # the address of each variable's data, i.e. by creation.
361
+ self._terms = sorted(((t._variable._id, 0.0 + t._coefficient)
362
+ for t in expression._terms), key=lambda t: t[0])
363
+ self._id = next(_ids)
364
+ return self
365
+
366
+ def expression(self):
367
+ return self._expression
368
+
369
+ def op(self):
370
+ return {0: "<=", 1: ">=", 2: "=="}[self._op]
371
+
372
+ def strength(self):
373
+ return self._strength
374
+
375
+ def violated(self):
376
+ value = self._expression.value()
377
+ if self._op == 2:
378
+ return not (-value < 1.0e-8 if value < 0.0 else value < 1.0e-8)
379
+ return value < 0.0 if self._op == 1 else value > 0.0
380
+
381
+ def __or__(self, other):
382
+ cn = Constraint.__new__(Constraint)
383
+ cn._expression = self._expression
384
+ cn._terms = self._terms
385
+ cn._op = self._op
386
+ cn._strength = _clip(_to_strength(other))
387
+ cn._id = next(_ids)
388
+ return cn
389
+
390
+ __ror__ = __or__
391
+
392
+ def __repr__(self):
393
+ return (f"{self._expression!r} {self.op()} 0 | strength = {self._strength:g}"
394
+ + (" (VIOLATED)" if self.violated() else ""))
395
+
396
+
397
+ def _reduce(expr):
398
+ coeffs = {}
399
+ variables = {}
400
+ for t in expr._terms:
401
+ key = t._variable._id
402
+ coeffs[key] = coeffs.get(key, 0.0) + t._coefficient
403
+ variables[key] = t._variable
404
+ return Expression(tuple(Term(variables[k], c) for k, c in coeffs.items()),
405
+ expr._constant)
406
+
407
+
408
+ def _constraint(first, second, op):
409
+ if not isinstance(second, _Symbolic) and _number(second) is None:
410
+ return NotImplemented
411
+ expr = _sub(first, second)
412
+ if expr is NotImplemented:
413
+ return expr
414
+ return Constraint.__new__(Constraint)._init(_reduce(expr), op, strength.required)
415
+
416
+
417
+ class Solver:
418
+ """kiwisolver's ``Solver``."""
419
+
420
+ def __init__(self):
421
+ self._impl = _mplrs.KiwiSolver()
422
+ self._vars = {} # id -> Variable, as kept alive by kiwi's solver
423
+ self._cns = {}
424
+
425
+ def _call(self, func, *args, obj=None):
426
+ try:
427
+ return func(*args)
428
+ except ValueError as e:
429
+ name = str(e)
430
+ exc = {"DuplicateConstraint": DuplicateConstraint,
431
+ "UnsatisfiableConstraint": UnsatisfiableConstraint,
432
+ "UnknownConstraint": UnknownConstraint,
433
+ "DuplicateEditVariable": DuplicateEditVariable,
434
+ "UnknownEditVariable": UnknownEditVariable}.get(name)
435
+ if exc is not None:
436
+ raise exc(obj) from None
437
+ if name == "BadRequiredStrength":
438
+ raise BadRequiredStrength(
439
+ "A required strength cannot be used by an edit variable") from None
440
+ raise RuntimeError(name) from None
441
+
442
+ def addConstraint(self, constraint):
443
+ if not isinstance(constraint, Constraint):
444
+ raise TypeError(f"Expected object of type `Constraint`. "
445
+ f"Got object of type `{type(constraint).__name__}` instead.")
446
+ for t in constraint._expression._terms:
447
+ self._vars.setdefault(t._variable._id, t._variable)
448
+ self._call(self._impl.add_constraint, constraint._id, constraint._terms,
449
+ constraint._expression._constant, constraint._op, constraint._strength,
450
+ obj=constraint)
451
+ self._cns[constraint._id] = constraint
452
+
453
+ def removeConstraint(self, constraint):
454
+ self._call(self._impl.remove_constraint, constraint._id, obj=constraint)
455
+ del self._cns[constraint._id]
456
+
457
+ def hasConstraint(self, constraint):
458
+ return self._impl.has_constraint(constraint._id)
459
+
460
+ def addEditVariable(self, variable, strength):
461
+ if not isinstance(variable, Variable):
462
+ raise TypeError(f"Expected object of type `Variable`. "
463
+ f"Got object of type `{type(variable).__name__}` instead.")
464
+ self._vars.setdefault(variable._id, variable)
465
+ self._call(self._impl.add_edit_variable, variable._id, _to_strength(strength),
466
+ obj=variable)
467
+
468
+ def removeEditVariable(self, variable):
469
+ self._call(self._impl.remove_edit_variable, variable._id, obj=variable)
470
+
471
+ def hasEditVariable(self, variable):
472
+ return self._impl.has_edit_variable(variable._id)
473
+
474
+ def suggestValue(self, variable, value):
475
+ self._call(self._impl.suggest_value, variable._id, _to_double(value), obj=variable)
476
+
477
+ def updateVariables(self):
478
+ for var_id, value in self._impl.values():
479
+ self._vars[var_id]._value = value
480
+
481
+ def reset(self):
482
+ self._impl.reset()
483
+ self._vars.clear()
484
+ self._cns.clear()