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,597 @@
1
+ # Vendored by tools/vendor_deps.py from python-dateutil 3.0.0 (see licenses/LICENSE_DATEUTIL).
2
+ # -*- coding: utf-8 -*-
3
+ import datetime
4
+ import calendar
5
+
6
+ import operator
7
+ from math import copysign
8
+
9
+ from matplotlib_rs._vendor.six import integer_types
10
+ from warnings import warn
11
+
12
+ from ._common import weekday
13
+
14
+ MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7))
15
+
16
+ __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "FR", "SA", "SU"]
17
+
18
+
19
+ class relativedelta(object):
20
+ """
21
+ The relativedelta type is designed to be applied to an existing datetime and
22
+ can replace specific components of that datetime, or represents an interval
23
+ of time.
24
+
25
+ It is based on the specification of the excellent work done by M.-A. Lemburg
26
+ in his
27
+ `mx.DateTime <https://www.egenix.com/products/python/mxBase/mxDateTime/>`_ extension.
28
+ However, notice that this type does *NOT* implement the same algorithm as
29
+ his work. Do *NOT* expect it to behave like mx.DateTime's counterpart.
30
+
31
+ There are two different ways to build a relativedelta instance. The
32
+ first one is passing it two date/datetime classes::
33
+
34
+ relativedelta(datetime1, datetime2)
35
+
36
+ The second one is passing it any number of the following keyword arguments::
37
+
38
+ relativedelta(arg1=x,arg2=y,arg3=z...)
39
+
40
+ year, month, day, hour, minute, second, microsecond:
41
+ Absolute information (argument is singular); adding or subtracting a
42
+ relativedelta with absolute information does not perform an arithmetic
43
+ operation, but rather REPLACES the corresponding value in the
44
+ original datetime with the value(s) in relativedelta.
45
+
46
+ years, months, weeks, days, hours, minutes, seconds, microseconds:
47
+ Relative information, may be negative (argument is plural); adding
48
+ or subtracting a relativedelta with relative information performs
49
+ the corresponding arithmetic operation on the original datetime value
50
+ with the information in the relativedelta.
51
+
52
+ weekday:
53
+ One of the weekday instances (MO, TU, etc) available in the
54
+ relativedelta module. These instances may receive a parameter N,
55
+ specifying the Nth weekday, which could be positive or negative
56
+ (like MO(+1) or MO(-2)). Not specifying it is the same as specifying
57
+ +1. You can also use an integer, where 0=MO. This argument is always
58
+ relative e.g. if the calculated date is already Monday, using MO(1)
59
+ or MO(-1) won't change the day. To effectively make it absolute, use
60
+ it in combination with the day argument (e.g. day=1, MO(1) for first
61
+ Monday of the month).
62
+
63
+ leapdays:
64
+ Will add given days to the date found, if year is a leap
65
+ year, and the date found is post 28 of february.
66
+
67
+ yearday, nlyearday:
68
+ Set the yearday or the non-leap year day (jump leap days).
69
+ These are converted to day/month/leapdays information.
70
+
71
+ There are relative and absolute forms of the keyword
72
+ arguments. The plural is relative, and the singular is
73
+ absolute. For each argument in the order below, the absolute form
74
+ is applied first (by setting each attribute to that value) and
75
+ then the relative form (by adding the value to the attribute).
76
+
77
+ The order of attributes considered when this relativedelta is
78
+ added to a datetime is:
79
+
80
+ 1. Year
81
+ 2. Month
82
+ 3. Day
83
+ 4. Hours
84
+ 5. Minutes
85
+ 6. Seconds
86
+ 7. Microseconds
87
+
88
+ Finally, weekday is applied, using the rule described above.
89
+
90
+ For example
91
+
92
+ >>> from datetime import datetime
93
+ >>> from dateutil.relativedelta import relativedelta, MO
94
+ >>> dt = datetime(2018, 4, 9, 13, 37, 0)
95
+ >>> delta = relativedelta(hours=25, day=1, weekday=MO(1))
96
+ >>> dt + delta
97
+ datetime.datetime(2018, 4, 2, 14, 37)
98
+
99
+ First, the day is set to 1 (the first of the month), then 25 hours
100
+ are added, to get to the 2nd day and 14th hour, finally the
101
+ weekday is applied, but since the 2nd is already a Monday there is
102
+ no effect.
103
+
104
+ """
105
+
106
+ def __init__(self, dt1=None, dt2=None,
107
+ years=0, months=0, days=0, leapdays=0, weeks=0,
108
+ hours=0, minutes=0, seconds=0, microseconds=0,
109
+ year=None, month=None, day=None, weekday=None,
110
+ yearday=None, nlyearday=None,
111
+ hour=None, minute=None, second=None, microsecond=None):
112
+
113
+ if dt1 and dt2:
114
+ # datetime is a subclass of date. So both must be date
115
+ if not (isinstance(dt1, datetime.date) and
116
+ isinstance(dt2, datetime.date)):
117
+ raise TypeError("relativedelta only diffs datetime/date")
118
+
119
+ # We allow two dates, or two datetimes, so we coerce them to be
120
+ # of the same type
121
+ if (isinstance(dt1, datetime.datetime) !=
122
+ isinstance(dt2, datetime.datetime)):
123
+ if not isinstance(dt1, datetime.datetime):
124
+ dt1 = datetime.datetime.fromordinal(dt1.toordinal())
125
+ elif not isinstance(dt2, datetime.datetime):
126
+ dt2 = datetime.datetime.fromordinal(dt2.toordinal())
127
+
128
+ self.years = 0
129
+ self.months = 0
130
+ self.days = 0
131
+ self.leapdays = 0
132
+ self.hours = 0
133
+ self.minutes = 0
134
+ self.seconds = 0
135
+ self.microseconds = 0
136
+ self.year = None
137
+ self.month = None
138
+ self.day = None
139
+ self.weekday = None
140
+ self.hour = None
141
+ self.minute = None
142
+ self.second = None
143
+ self.microsecond = None
144
+ self._has_time = 0
145
+
146
+ # Get year / month delta between the two
147
+ months = (dt1.year - dt2.year) * 12 + (dt1.month - dt2.month)
148
+ self._set_months(months)
149
+
150
+ # Remove the year/month delta so the timedelta is just well-defined
151
+ # time units (seconds, days and microseconds)
152
+ dtm = self.__radd__(dt2)
153
+
154
+ # If we've overshot our target, make an adjustment
155
+ if dt1 < dt2:
156
+ compare = operator.gt
157
+ increment = 1
158
+ else:
159
+ compare = operator.lt
160
+ increment = -1
161
+
162
+ while compare(dt1, dtm):
163
+ months += increment
164
+ self._set_months(months)
165
+ dtm = self.__radd__(dt2)
166
+
167
+ # Get the timedelta between the "months-adjusted" date and dt1
168
+ delta = dt1 - dtm
169
+ self.seconds = delta.seconds + delta.days * 86400
170
+ self.microseconds = delta.microseconds
171
+ else:
172
+ # Check for non-integer values in integer-only quantities
173
+ if any(x is not None and x != int(x) for x in (years, months)):
174
+ raise ValueError("Non-integer years and months are "
175
+ "ambiguous and not currently supported.")
176
+
177
+ # Relative information
178
+ self.years = int(years)
179
+ self.months = int(months)
180
+ self.days = days + weeks * 7
181
+ self.leapdays = leapdays
182
+ self.hours = hours
183
+ self.minutes = minutes
184
+ self.seconds = seconds
185
+ self.microseconds = microseconds
186
+
187
+ # Absolute information
188
+ self.year = year
189
+ self.month = month
190
+ self.day = day
191
+ self.hour = hour
192
+ self.minute = minute
193
+ self.second = second
194
+ self.microsecond = microsecond
195
+
196
+ if any(x is not None and int(x) != x
197
+ for x in (year, month, day, hour,
198
+ minute, second, microsecond)):
199
+ # For now we'll deprecate floats - later it'll be an error.
200
+ warn("Non-integer value passed as absolute information. " +
201
+ "This is not a well-defined condition and will raise " +
202
+ "errors in future versions.", DeprecationWarning)
203
+
204
+ if isinstance(weekday, integer_types):
205
+ self.weekday = weekdays[weekday]
206
+ else:
207
+ self.weekday = weekday
208
+
209
+ yday = 0
210
+ if nlyearday:
211
+ yday = nlyearday
212
+ elif yearday:
213
+ yday = yearday
214
+ if yearday > 59:
215
+ self.leapdays = -1
216
+ if yday:
217
+ ydayidx = [31, 59, 90, 120, 151, 181, 212,
218
+ 243, 273, 304, 334, 366]
219
+ for idx, ydays in enumerate(ydayidx):
220
+ if yday <= ydays:
221
+ self.month = idx+1
222
+ if idx == 0:
223
+ self.day = yday
224
+ else:
225
+ self.day = yday-ydayidx[idx-1]
226
+ break
227
+ else:
228
+ raise ValueError("invalid year day (%d)" % yday)
229
+
230
+ self._fix()
231
+
232
+ def _fix(self):
233
+ if abs(self.microseconds) > 999999:
234
+ s = _sign(self.microseconds)
235
+ div, mod = divmod(self.microseconds * s, 1000000)
236
+ self.microseconds = mod * s
237
+ self.seconds += div * s
238
+ if abs(self.seconds) > 59:
239
+ s = _sign(self.seconds)
240
+ div, mod = divmod(self.seconds * s, 60)
241
+ self.seconds = mod * s
242
+ self.minutes += div * s
243
+ if abs(self.minutes) > 59:
244
+ s = _sign(self.minutes)
245
+ div, mod = divmod(self.minutes * s, 60)
246
+ self.minutes = mod * s
247
+ self.hours += div * s
248
+ if abs(self.hours) > 23:
249
+ s = _sign(self.hours)
250
+ div, mod = divmod(self.hours * s, 24)
251
+ self.hours = mod * s
252
+ self.days += div * s
253
+ if abs(self.months) > 11:
254
+ s = _sign(self.months)
255
+ div, mod = divmod(self.months * s, 12)
256
+ self.months = mod * s
257
+ self.years += div * s
258
+ if (self.hours or self.minutes or self.seconds or self.microseconds
259
+ or self.hour is not None or self.minute is not None or
260
+ self.second is not None or self.microsecond is not None):
261
+ self._has_time = 1
262
+ else:
263
+ self._has_time = 0
264
+
265
+ @property
266
+ def weeks(self):
267
+ return int(self.days / 7.0)
268
+
269
+ @weeks.setter
270
+ def weeks(self, value):
271
+ self.days = self.days - (self.weeks * 7) + value * 7
272
+
273
+ def _set_months(self, months):
274
+ self.months = months
275
+ if abs(self.months) > 11:
276
+ s = _sign(self.months)
277
+ div, mod = divmod(self.months * s, 12)
278
+ self.months = mod * s
279
+ self.years = div * s
280
+ else:
281
+ self.years = 0
282
+
283
+ def normalized(self):
284
+ """
285
+ Return a version of this object represented entirely using integer
286
+ values for the relative attributes.
287
+
288
+ >>> relativedelta(days=1.5, hours=2).normalized()
289
+ relativedelta(days=+1, hours=+14)
290
+
291
+ :return:
292
+ Returns a :class:`dateutil.relativedelta.relativedelta` object.
293
+ """
294
+ # Cascade remainders down (rounding each to roughly nearest microsecond)
295
+ days = int(self.days)
296
+
297
+ hours_f = round(self.hours + 24 * (self.days - days), 11)
298
+ hours = int(hours_f)
299
+
300
+ minutes_f = round(self.minutes + 60 * (hours_f - hours), 10)
301
+ minutes = int(minutes_f)
302
+
303
+ seconds_f = round(self.seconds + 60 * (minutes_f - minutes), 8)
304
+ seconds = int(seconds_f)
305
+
306
+ microseconds = round(self.microseconds + 1e6 * (seconds_f - seconds))
307
+
308
+ # Constructor carries overflow back up with call to _fix()
309
+ return self.__class__(years=self.years, months=self.months,
310
+ days=days, hours=hours, minutes=minutes,
311
+ seconds=seconds, microseconds=microseconds,
312
+ leapdays=self.leapdays, year=self.year,
313
+ month=self.month, day=self.day,
314
+ weekday=self.weekday, hour=self.hour,
315
+ minute=self.minute, second=self.second,
316
+ microsecond=self.microsecond)
317
+
318
+ def __add__(self, other):
319
+ if isinstance(other, relativedelta):
320
+ return self.__class__(years=other.years + self.years,
321
+ months=other.months + self.months,
322
+ days=other.days + self.days,
323
+ hours=other.hours + self.hours,
324
+ minutes=other.minutes + self.minutes,
325
+ seconds=other.seconds + self.seconds,
326
+ microseconds=(other.microseconds +
327
+ self.microseconds),
328
+ leapdays=other.leapdays or self.leapdays,
329
+ year=(other.year if other.year is not None
330
+ else self.year),
331
+ month=(other.month if other.month is not None
332
+ else self.month),
333
+ day=(other.day if other.day is not None
334
+ else self.day),
335
+ weekday=(other.weekday if other.weekday is not None
336
+ else self.weekday),
337
+ hour=(other.hour if other.hour is not None
338
+ else self.hour),
339
+ minute=(other.minute if other.minute is not None
340
+ else self.minute),
341
+ second=(other.second if other.second is not None
342
+ else self.second),
343
+ microsecond=(other.microsecond if other.microsecond
344
+ is not None else
345
+ self.microsecond))
346
+ if isinstance(other, datetime.timedelta):
347
+ return self.__class__(years=self.years,
348
+ months=self.months,
349
+ days=self.days + other.days,
350
+ hours=self.hours,
351
+ minutes=self.minutes,
352
+ seconds=self.seconds + other.seconds,
353
+ microseconds=self.microseconds + other.microseconds,
354
+ leapdays=self.leapdays,
355
+ year=self.year,
356
+ month=self.month,
357
+ day=self.day,
358
+ weekday=self.weekday,
359
+ hour=self.hour,
360
+ minute=self.minute,
361
+ second=self.second,
362
+ microsecond=self.microsecond)
363
+ if not isinstance(other, datetime.date):
364
+ return NotImplemented
365
+ elif self._has_time and not isinstance(other, datetime.datetime):
366
+ other = datetime.datetime.fromordinal(other.toordinal())
367
+ year = (self.year or other.year)+self.years
368
+ month = self.month or other.month
369
+ if self.months:
370
+ assert 1 <= abs(self.months) <= 12
371
+ month += self.months
372
+ if month > 12:
373
+ year += 1
374
+ month -= 12
375
+ elif month < 1:
376
+ year -= 1
377
+ month += 12
378
+ day = min(calendar.monthrange(year, month)[1],
379
+ self.day or other.day)
380
+ repl = {"year": year, "month": month, "day": day}
381
+ for attr in ["hour", "minute", "second", "microsecond"]:
382
+ value = getattr(self, attr)
383
+ if value is not None:
384
+ repl[attr] = value
385
+ days = self.days
386
+ if self.leapdays and month > 2 and calendar.isleap(year):
387
+ days += self.leapdays
388
+ ret = (other.replace(**repl)
389
+ + datetime.timedelta(days=days,
390
+ hours=self.hours,
391
+ minutes=self.minutes,
392
+ seconds=self.seconds,
393
+ microseconds=self.microseconds))
394
+ if self.weekday:
395
+ weekday, nth = self.weekday.weekday, self.weekday.n or 1
396
+ jumpdays = (abs(nth) - 1) * 7
397
+ if nth > 0:
398
+ jumpdays += (7 - ret.weekday() + weekday) % 7
399
+ else:
400
+ jumpdays += (ret.weekday() - weekday) % 7
401
+ jumpdays *= -1
402
+ ret += datetime.timedelta(days=jumpdays)
403
+ return ret
404
+
405
+ def __radd__(self, other):
406
+ return self.__add__(other)
407
+
408
+ def __rsub__(self, other):
409
+ return self.__neg__().__radd__(other)
410
+
411
+ def __sub__(self, other):
412
+ if not isinstance(other, relativedelta):
413
+ return NotImplemented # In case the other object defines __rsub__
414
+ return self.__class__(years=self.years - other.years,
415
+ months=self.months - other.months,
416
+ days=self.days - other.days,
417
+ hours=self.hours - other.hours,
418
+ minutes=self.minutes - other.minutes,
419
+ seconds=self.seconds - other.seconds,
420
+ microseconds=self.microseconds - other.microseconds,
421
+ leapdays=self.leapdays or other.leapdays,
422
+ year=(self.year if self.year is not None
423
+ else other.year),
424
+ month=(self.month if self.month is not None else
425
+ other.month),
426
+ day=(self.day if self.day is not None else
427
+ other.day),
428
+ weekday=(self.weekday if self.weekday is not None else
429
+ other.weekday),
430
+ hour=(self.hour if self.hour is not None else
431
+ other.hour),
432
+ minute=(self.minute if self.minute is not None else
433
+ other.minute),
434
+ second=(self.second if self.second is not None else
435
+ other.second),
436
+ microsecond=(self.microsecond if self.microsecond
437
+ is not None else
438
+ other.microsecond))
439
+
440
+ def __abs__(self):
441
+ return self.__class__(years=abs(self.years),
442
+ months=abs(self.months),
443
+ days=abs(self.days),
444
+ hours=abs(self.hours),
445
+ minutes=abs(self.minutes),
446
+ seconds=abs(self.seconds),
447
+ microseconds=abs(self.microseconds),
448
+ leapdays=self.leapdays,
449
+ year=self.year,
450
+ month=self.month,
451
+ day=self.day,
452
+ weekday=self.weekday,
453
+ hour=self.hour,
454
+ minute=self.minute,
455
+ second=self.second,
456
+ microsecond=self.microsecond)
457
+
458
+ def __neg__(self):
459
+ return self.__class__(years=-self.years,
460
+ months=-self.months,
461
+ days=-self.days,
462
+ hours=-self.hours,
463
+ minutes=-self.minutes,
464
+ seconds=-self.seconds,
465
+ microseconds=-self.microseconds,
466
+ leapdays=self.leapdays,
467
+ year=self.year,
468
+ month=self.month,
469
+ day=self.day,
470
+ weekday=self.weekday,
471
+ hour=self.hour,
472
+ minute=self.minute,
473
+ second=self.second,
474
+ microsecond=self.microsecond)
475
+
476
+ def __bool__(self):
477
+ return not (not self.years and
478
+ not self.months and
479
+ not self.days and
480
+ not self.hours and
481
+ not self.minutes and
482
+ not self.seconds and
483
+ not self.microseconds and
484
+ not self.leapdays and
485
+ self.year is None and
486
+ self.month is None and
487
+ self.day is None and
488
+ self.weekday is None and
489
+ self.hour is None and
490
+ self.minute is None and
491
+ self.second is None and
492
+ self.microsecond is None)
493
+ # Compatibility with Python 2.x
494
+ __nonzero__ = __bool__
495
+
496
+ def __mul__(self, other):
497
+ try:
498
+ f = float(other)
499
+ except TypeError:
500
+ return NotImplemented
501
+
502
+ return self.__class__(years=int(self.years * f),
503
+ months=int(self.months * f),
504
+ days=int(self.days * f),
505
+ hours=int(self.hours * f),
506
+ minutes=int(self.minutes * f),
507
+ seconds=int(self.seconds * f),
508
+ microseconds=int(self.microseconds * f),
509
+ leapdays=self.leapdays,
510
+ year=self.year,
511
+ month=self.month,
512
+ day=self.day,
513
+ weekday=self.weekday,
514
+ hour=self.hour,
515
+ minute=self.minute,
516
+ second=self.second,
517
+ microsecond=self.microsecond)
518
+
519
+ __rmul__ = __mul__
520
+
521
+ def __eq__(self, other):
522
+ if not isinstance(other, relativedelta):
523
+ return NotImplemented
524
+ if self.weekday or other.weekday:
525
+ if not self.weekday or not other.weekday:
526
+ return False
527
+ if self.weekday.weekday != other.weekday.weekday:
528
+ return False
529
+ n1, n2 = self.weekday.n, other.weekday.n
530
+ if n1 != n2 and not ((not n1 or n1 == 1) and (not n2 or n2 == 1)):
531
+ return False
532
+ return (self.years == other.years and
533
+ self.months == other.months and
534
+ self.days == other.days and
535
+ self.hours == other.hours and
536
+ self.minutes == other.minutes and
537
+ self.seconds == other.seconds and
538
+ self.microseconds == other.microseconds and
539
+ self.leapdays == other.leapdays and
540
+ self.year == other.year and
541
+ self.month == other.month and
542
+ self.day == other.day and
543
+ self.hour == other.hour and
544
+ self.minute == other.minute and
545
+ self.second == other.second and
546
+ self.microsecond == other.microsecond)
547
+
548
+ def __hash__(self):
549
+ return hash((
550
+ self.weekday,
551
+ self.years,
552
+ self.months,
553
+ self.days,
554
+ self.hours,
555
+ self.minutes,
556
+ self.seconds,
557
+ self.microseconds,
558
+ self.leapdays,
559
+ self.year,
560
+ self.month,
561
+ self.day,
562
+ self.hour,
563
+ self.minute,
564
+ self.second,
565
+ self.microsecond,
566
+ ))
567
+
568
+ def __div__(self, other):
569
+ try:
570
+ reciprocal = 1 / float(other)
571
+ except TypeError:
572
+ return NotImplemented
573
+
574
+ return self.__mul__(reciprocal)
575
+
576
+ __truediv__ = __div__
577
+
578
+ def __repr__(self):
579
+ l = []
580
+ for attr in ["years", "months", "days", "leapdays",
581
+ "hours", "minutes", "seconds", "microseconds"]:
582
+ value = getattr(self, attr)
583
+ if value:
584
+ l.append("{attr}={value:+g}".format(attr=attr, value=value))
585
+ for attr in ["year", "month", "day", "weekday",
586
+ "hour", "minute", "second", "microsecond"]:
587
+ value = getattr(self, attr)
588
+ if value is not None:
589
+ l.append("{attr}={value}".format(attr=attr, value=repr(value)))
590
+ return "{classname}({attrs})".format(classname=self.__class__.__name__,
591
+ attrs=", ".join(l))
592
+
593
+
594
+ def _sign(x):
595
+ return int(copysign(1, x))
596
+
597
+ # vim:ts=4:sw=4:et