matplotlib-rs 0.0.8__cp310-cp310-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.cp310-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,353 @@
1
+ # Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
2
+ """
3
+ An experimental support for curvilinear grid.
4
+ """
5
+
6
+ import functools
7
+
8
+ import numpy as np
9
+
10
+ import matplotlib_rs as mpl
11
+ from matplotlib_rs.path import Path
12
+ from matplotlib_rs.transforms import Affine2D, Bbox, IdentityTransform
13
+ from .axislines import (
14
+ _FixedAxisArtistHelperBase, _FloatingAxisArtistHelperBase, GridHelperBase)
15
+ from .axis_artist import AxisArtist
16
+ from .grid_finder import GridFinder
17
+
18
+
19
+ def _value_and_jac_angle(func, xs, ys, xlim, ylim):
20
+ """
21
+ Parameters
22
+ ----------
23
+ func : callable
24
+ A function that transforms the coordinates of a point (x, y) to a new coordinate
25
+ system (u, v), and which can also take x and y as arrays of shape *shape* and
26
+ returns (u, v) as a ``(2, shape)`` array.
27
+ xs, ys : array-likes
28
+ Points where *func* and its derivatives will be evaluated.
29
+ xlim, ylim : pairs of floats
30
+ (min, max) beyond which *func* should not be evaluated.
31
+
32
+ Returns
33
+ -------
34
+ val
35
+ Value of *func* at each point of ``(xs, ys)``.
36
+ thetas_dx
37
+ Angles (in radians) defined by the (u, v) components of the numerically
38
+ differentiated df/dx vector, at each point of ``(xs, ys)``. If needed, the
39
+ differentiation step size is increased until at least one component of df/dx
40
+ is nonzero, under the constraint of not going out of the *xlims*, *ylims*
41
+ bounds. If the gridline at a point is actually null (and the angle is thus not
42
+ well defined), the derivatives are evaluated after taking a small step along y;
43
+ this ensures e.g. that the tick at r=0 on a radial axis of a polar plot is
44
+ parallel with the ticks at r!=0.
45
+ thetas_dy
46
+ Like *thetas_dx*, but for df/dy.
47
+ """
48
+
49
+ shape = np.broadcast_shapes(np.shape(xs), np.shape(ys))
50
+ val = func(xs, ys)
51
+
52
+ # Take finite difference steps towards the furthest bound; the step size will be the
53
+ # min of epsilon and the distance to that bound.
54
+ eps0 = np.finfo(float).eps ** (1/2) # cf. scipy.optimize.approx_fprime
55
+
56
+ def calc_eps(vals, lim):
57
+ lo, hi = sorted(lim)
58
+ dlo = vals - lo
59
+ dhi = hi - vals
60
+ eps_max = np.maximum(dlo, dhi)
61
+ eps = np.where(dhi >= dlo, 1, -1) * np.minimum(eps0, eps_max)
62
+ return eps, eps_max
63
+
64
+ xeps, xeps_max = calc_eps(xs, xlim)
65
+ yeps, yeps_max = calc_eps(ys, ylim)
66
+
67
+ def calc_thetas(dfunc, ps, eps_p0, eps_max, eps_q):
68
+ thetas_dp = np.full(shape, np.nan)
69
+ missing = np.full(shape, True)
70
+ eps_p = eps_p0
71
+ for it, eps_q in enumerate([0, eps_q]):
72
+ while missing.any() and (abs(eps_p) < eps_max).any():
73
+ if it == 0 and (eps_p > 1).any():
74
+ break # Degenerate derivative, move a bit along the other coord.
75
+ eps_p = np.minimum(eps_p, eps_max)
76
+ df_x, df_y = (dfunc(eps_p, eps_q) - dfunc(0, eps_q)) / eps_p
77
+ good = missing & ((df_x != 0) | (df_y != 0))
78
+ thetas_dp[good] = np.arctan2(df_y, df_x)[good]
79
+ missing &= ~good
80
+ eps_p *= 2
81
+ return thetas_dp
82
+
83
+ thetas_dx = calc_thetas(lambda eps_p, eps_q: func(xs + eps_p, ys + eps_q),
84
+ xs, xeps, xeps_max, yeps)
85
+ thetas_dy = calc_thetas(lambda eps_p, eps_q: func(xs + eps_q, ys + eps_p),
86
+ ys, yeps, yeps_max, xeps)
87
+ return (val, thetas_dx, thetas_dy)
88
+
89
+
90
+ class FixedAxisArtistHelper(_FixedAxisArtistHelperBase):
91
+ """
92
+ Helper class for a fixed axis.
93
+ """
94
+
95
+ def __init__(self, grid_helper, side, nth_coord_ticks=None):
96
+ """
97
+ nth_coord = along which coordinate value varies.
98
+ nth_coord = 0 -> x axis, nth_coord = 1 -> y axis
99
+ """
100
+
101
+ super().__init__(loc=side)
102
+
103
+ self.grid_helper = grid_helper
104
+ if nth_coord_ticks is None:
105
+ nth_coord_ticks = self.nth_coord
106
+ self.nth_coord_ticks = nth_coord_ticks
107
+
108
+ self.side = side
109
+
110
+ def update_lim(self, axes):
111
+ self.grid_helper.update_lim(axes)
112
+
113
+ def get_tick_transform(self, axes):
114
+ return axes.transData
115
+
116
+ def get_tick_iterators(self, axes):
117
+ """tick_loc, tick_angle, tick_label"""
118
+ v1, v2 = axes.get_ylim() if self.nth_coord == 0 else axes.get_xlim()
119
+ if v1 > v2: # Inverted limits.
120
+ side = {"left": "right", "right": "left",
121
+ "top": "bottom", "bottom": "top"}[self.side]
122
+ else:
123
+ side = self.side
124
+
125
+ angle_tangent = dict(left=90, right=90, bottom=0, top=0)[side]
126
+
127
+ def iter_major():
128
+ for nth_coord, show_labels in [
129
+ (self.nth_coord_ticks, True), (1 - self.nth_coord_ticks, False)]:
130
+ gi = self.grid_helper._grid_info[["lon", "lat"][nth_coord]]
131
+ for tick in gi["ticks"][side]:
132
+ yield (*tick["loc"], angle_tangent,
133
+ (tick["label"] if show_labels else ""))
134
+
135
+ return iter_major(), iter([])
136
+
137
+
138
+ class FloatingAxisArtistHelper(_FloatingAxisArtistHelperBase):
139
+
140
+ def __init__(self, grid_helper, nth_coord, value, axis_direction=None):
141
+ """
142
+ nth_coord = along which coordinate value varies.
143
+ nth_coord = 0 -> x axis, nth_coord = 1 -> y axis
144
+ """
145
+ super().__init__(nth_coord, value)
146
+ self.value = value
147
+ self.grid_helper = grid_helper
148
+ self._extremes = -np.inf, np.inf
149
+ self._line_num_points = 100 # number of points to create a line
150
+
151
+ def set_extremes(self, e1, e2):
152
+ if e1 is None:
153
+ e1 = -np.inf
154
+ if e2 is None:
155
+ e2 = np.inf
156
+ self._extremes = e1, e2
157
+
158
+ def update_lim(self, axes):
159
+ self.grid_helper.update_lim(axes)
160
+
161
+ x1, x2 = axes.get_xlim()
162
+ y1, y2 = axes.get_ylim()
163
+ grid_finder = self.grid_helper.grid_finder
164
+ tbbox = grid_finder.extreme_finder._find_transformed_bbox(
165
+ grid_finder.get_transform().inverted(), Bbox.from_extents(x1, y1, x2, y2))
166
+
167
+ lon_min, lat_min, lon_max, lat_max = tbbox.extents
168
+ e_min, e_max = self._extremes # ranges of other coordinates
169
+ if self.nth_coord == 0:
170
+ lat_min = max(e_min, lat_min)
171
+ lat_max = min(e_max, lat_max)
172
+ elif self.nth_coord == 1:
173
+ lon_min = max(e_min, lon_min)
174
+ lon_max = min(e_max, lon_max)
175
+
176
+ lon_levs, lon_n, lon_factor = grid_finder.grid_locator1(lon_min, lon_max)
177
+ lat_levs, lat_n, lat_factor = grid_finder.grid_locator2(lat_min, lat_max)
178
+
179
+ if self.nth_coord == 0:
180
+ xys = grid_finder.get_transform().transform(np.column_stack([
181
+ np.full(self._line_num_points, self.value),
182
+ np.linspace(lat_min, lat_max, self._line_num_points),
183
+ ]))
184
+ elif self.nth_coord == 1:
185
+ xys = grid_finder.get_transform().transform(np.column_stack([
186
+ np.linspace(lon_min, lon_max, self._line_num_points),
187
+ np.full(self._line_num_points, self.value),
188
+ ]))
189
+
190
+ self._grid_info = {
191
+ "extremes": Bbox.from_extents(lon_min, lat_min, lon_max, lat_max),
192
+ "lon_info": (lon_levs, lon_n, np.asarray(lon_factor)),
193
+ "lat_info": (lat_levs, lat_n, np.asarray(lat_factor)),
194
+ "lon_labels": grid_finder._format_ticks(
195
+ 1, "bottom", lon_factor, lon_levs),
196
+ "lat_labels": grid_finder._format_ticks(
197
+ 2, "bottom", lat_factor, lat_levs),
198
+ "line_xy": xys,
199
+ }
200
+
201
+ def get_axislabel_transform(self, axes):
202
+ return Affine2D() # axes.transData
203
+
204
+ def get_axislabel_pos_angle(self, axes):
205
+ def trf_xy(x, y):
206
+ trf = self.grid_helper.grid_finder.get_transform() + axes.transData
207
+ return trf.transform([x, y]).T
208
+
209
+ xmin, ymin, xmax, ymax = self._grid_info["extremes"].extents
210
+ if self.nth_coord == 0:
211
+ xx0 = self.value
212
+ yy0 = (ymin + ymax) / 2
213
+ elif self.nth_coord == 1:
214
+ xx0 = (xmin + xmax) / 2
215
+ yy0 = self.value
216
+ xy1, angle_dx, angle_dy = _value_and_jac_angle(
217
+ trf_xy, xx0, yy0, (xmin, xmax), (ymin, ymax))
218
+ p = axes.transAxes.inverted().transform(xy1)
219
+ if 0 <= p[0] <= 1 and 0 <= p[1] <= 1:
220
+ return xy1, np.rad2deg([angle_dy, angle_dx][self.nth_coord])
221
+ else:
222
+ return None, None
223
+
224
+ def get_tick_transform(self, axes):
225
+ return IdentityTransform() # axes.transData
226
+
227
+ def get_tick_iterators(self, axes):
228
+ """tick_loc, tick_angle, tick_label, (optionally) tick_label"""
229
+
230
+ lat_levs, lat_n, lat_factor = self._grid_info["lat_info"]
231
+ yy0 = lat_levs / lat_factor
232
+
233
+ lon_levs, lon_n, lon_factor = self._grid_info["lon_info"]
234
+ xx0 = lon_levs / lon_factor
235
+
236
+ e0, e1 = self._extremes
237
+
238
+ def trf_xy(x, y):
239
+ trf = self.grid_helper.grid_finder.get_transform() + axes.transData
240
+ return trf.transform(np.column_stack(np.broadcast_arrays(x, y))).T
241
+
242
+ # find angles
243
+ if self.nth_coord == 0:
244
+ mask = (e0 <= yy0) & (yy0 <= e1)
245
+ (xx1, yy1), angle_normal, angle_tangent = _value_and_jac_angle(
246
+ trf_xy, self.value, yy0[mask], (-np.inf, np.inf), (e0, e1))
247
+ labels = self._grid_info["lat_labels"]
248
+
249
+ elif self.nth_coord == 1:
250
+ mask = (e0 <= xx0) & (xx0 <= e1)
251
+ (xx1, yy1), angle_tangent, angle_normal = _value_and_jac_angle(
252
+ trf_xy, xx0[mask], self.value, (-np.inf, np.inf), (e0, e1))
253
+ labels = self._grid_info["lon_labels"]
254
+
255
+ labels = [l for l, m in zip(labels, mask) if m]
256
+ tick_to_axes = self.get_tick_transform(axes) - axes.transAxes
257
+ in_01 = functools.partial(
258
+ mpl.transforms._interval_contains_close, (0, 1))
259
+
260
+ def iter_major():
261
+ for x, y, normal, tangent, lab \
262
+ in zip(xx1, yy1, angle_normal, angle_tangent, labels):
263
+ c2 = tick_to_axes.transform((x, y))
264
+ if in_01(c2[0]) and in_01(c2[1]):
265
+ yield [x, y], *np.rad2deg([normal, tangent]), lab
266
+
267
+ return iter_major(), iter([])
268
+
269
+ def get_line_transform(self, axes):
270
+ return axes.transData
271
+
272
+ def get_line(self, axes):
273
+ self.update_lim(axes)
274
+ return Path(self._grid_info["line_xy"])
275
+
276
+
277
+ class GridHelperCurveLinear(GridHelperBase):
278
+ def __init__(self, aux_trans,
279
+ extreme_finder=None,
280
+ grid_locator1=None,
281
+ grid_locator2=None,
282
+ tick_formatter1=None,
283
+ tick_formatter2=None):
284
+ """
285
+ Parameters
286
+ ----------
287
+ aux_trans : `.Transform` or tuple[Callable, Callable]
288
+ The transform from curved coordinates to rectilinear coordinate:
289
+ either a `.Transform` instance (which provides also its inverse),
290
+ or a pair of callables ``(trans, inv_trans)`` that define the
291
+ transform and its inverse. The callables should have signature::
292
+
293
+ x_rect, y_rect = trans(x_curved, y_curved)
294
+ x_curved, y_curved = inv_trans(x_rect, y_rect)
295
+
296
+ extreme_finder
297
+
298
+ grid_locator1, grid_locator2
299
+ Grid locators for each axis.
300
+
301
+ tick_formatter1, tick_formatter2
302
+ Tick formatters for each axis.
303
+ """
304
+ super().__init__()
305
+ self._grid_info = None
306
+ self.grid_finder = GridFinder(aux_trans,
307
+ extreme_finder,
308
+ grid_locator1,
309
+ grid_locator2,
310
+ tick_formatter1,
311
+ tick_formatter2)
312
+
313
+ def update_grid_finder(self, aux_trans=None, **kwargs):
314
+ if aux_trans is not None:
315
+ self.grid_finder.update_transform(aux_trans)
316
+ self.grid_finder.update(**kwargs)
317
+ self._old_limits = None # Force revalidation.
318
+
319
+ def new_fixed_axis(
320
+ self, loc, *, axis_direction=None, offset=None, axes=None, nth_coord=None
321
+ ):
322
+ if axes is None:
323
+ axes = self.axes
324
+ if axis_direction is None:
325
+ axis_direction = loc
326
+ helper = FixedAxisArtistHelper(self, loc, nth_coord_ticks=nth_coord)
327
+ axisline = AxisArtist(axes, helper, axis_direction=axis_direction)
328
+ # Why is clip not set on axisline, unlike in new_floating_axis or in
329
+ # the floating_axig.GridHelperCurveLinear subclass?
330
+ return axisline
331
+
332
+ def new_floating_axis(self, nth_coord, value, axes=None, axis_direction="bottom"):
333
+ if axes is None:
334
+ axes = self.axes
335
+ helper = FloatingAxisArtistHelper(
336
+ self, nth_coord, value, axis_direction)
337
+ axisline = AxisArtist(axes, helper)
338
+ axisline.line.set_clip_on(True)
339
+ axisline.line.set_clip_box(axisline.axes.bbox)
340
+ # axisline.major_ticklabels.set_visible(True)
341
+ # axisline.minor_ticklabels.set_visible(False)
342
+ return axisline
343
+
344
+ def _update_grid(self, bbox):
345
+ self._grid_info = self.grid_finder.get_grid_info(bbox)
346
+
347
+ def get_gridlines(self, which="major", axis="both"):
348
+ grid_lines = []
349
+ if axis in ["both", "x"]:
350
+ grid_lines.extend([gl.T for gl in self._grid_info["lon"]["lines"]])
351
+ if axis in ["both", "y"]:
352
+ grid_lines.extend([gl.T for gl in self._grid_info["lat"]["lines"]])
353
+ return grid_lines
@@ -0,0 +1,8 @@
1
+ # Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
2
+ from matplotlib_rs.mpl_toolkits.axes_grid1.parasite_axes import (
3
+ host_axes_class_factory, parasite_axes_class_factory)
4
+ from .axislines import Axes
5
+
6
+
7
+ ParasiteAxes = parasite_axes_class_factory(Axes)
8
+ HostAxes = SubplotHost = host_axes_class_factory(Axes)
@@ -0,0 +1,4 @@
1
+ # Vendored from matplotlib 3.11 (see licenses/LICENSE_MATPLOTLIB), adapted for matplotlib_rs.
2
+ from .axes3d import Axes3D
3
+
4
+ __all__ = ['Axes3D']