plot-io 0.13.1__tar.gz → 0.16.0__tar.gz

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 (333) hide show
  1. {plot_io-0.13.1 → plot_io-0.16.0}/PKG-INFO +2 -2
  2. {plot_io-0.13.1 → plot_io-0.16.0}/docs/api.md +22 -22
  3. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/color_axes.md +53 -33
  4. plot_io-0.16.0/docs/reference/color_maps.md +211 -0
  5. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/figure.md +8 -4
  6. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/__init__.py +4 -2
  7. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/axis.py +1 -1
  8. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/colorbar.py +2 -2
  9. plot_io-0.16.0/plot_io/colors/__init__.py +70 -0
  10. plot_io-0.16.0/plot_io/colors/catalog.py +463 -0
  11. plot_io-0.16.0/plot_io/colors/catalog_bundle/bids.bin.gz +0 -0
  12. plot_io-0.16.0/plot_io/colors/catalog_bundle/chrisluts.bin.gz +0 -0
  13. plot_io-0.16.0/plot_io/colors/catalog_bundle/cividis.bin.gz +0 -0
  14. plot_io-0.16.0/plot_io/colors/catalog_bundle/cmap.bin.gz +0 -0
  15. plot_io-0.16.0/plot_io/colors/catalog_bundle/cmasher.bin.gz +0 -0
  16. plot_io-0.16.0/plot_io/colors/catalog_bundle/cmocean.bin.gz +0 -0
  17. plot_io-0.16.0/plot_io/colors/catalog_bundle/colorbrewer.bin.gz +0 -0
  18. plot_io-0.16.0/plot_io/colors/catalog_bundle/colorcet.bin.gz +0 -0
  19. plot_io-0.16.0/plot_io/colors/catalog_bundle/contrib.bin.gz +0 -0
  20. plot_io-0.16.0/plot_io/colors/catalog_bundle/crameri.bin.gz +0 -0
  21. plot_io-0.16.0/plot_io/colors/catalog_bundle/cubehelix.bin.gz +0 -0
  22. plot_io-0.16.0/plot_io/colors/catalog_bundle/glasbey.bin.gz +0 -0
  23. plot_io-0.16.0/plot_io/colors/catalog_bundle/gnuplot.bin.gz +0 -0
  24. plot_io-0.16.0/plot_io/colors/catalog_bundle/google.bin.gz +0 -0
  25. plot_io-0.16.0/plot_io/colors/catalog_bundle/ibm.bin.gz +0 -0
  26. plot_io-0.16.0/plot_io/colors/catalog_bundle/imagej.bin.gz +0 -0
  27. plot_io-0.16.0/plot_io/colors/catalog_bundle/index.json +723 -0
  28. plot_io-0.16.0/plot_io/colors/catalog_bundle/matlab.bin.gz +0 -0
  29. plot_io-0.16.0/plot_io/colors/catalog_bundle/matplotlib.bin.gz +0 -0
  30. plot_io-0.16.0/plot_io/colors/catalog_bundle/napari.bin.gz +0 -0
  31. plot_io-0.16.0/plot_io/colors/catalog_bundle/observable.bin.gz +0 -0
  32. plot_io-0.16.0/plot_io/colors/catalog_bundle/okabeito.bin.gz +0 -0
  33. plot_io-0.16.0/plot_io/colors/catalog_bundle/paraview.bin.gz +0 -0
  34. plot_io-0.16.0/plot_io/colors/catalog_bundle/petroff.bin.gz +0 -0
  35. plot_io-0.16.0/plot_io/colors/catalog_bundle/seaborn.bin.gz +0 -0
  36. plot_io-0.16.0/plot_io/colors/catalog_bundle/tableau.bin.gz +0 -0
  37. plot_io-0.16.0/plot_io/colors/catalog_bundle/tol.bin.gz +0 -0
  38. plot_io-0.16.0/plot_io/colors/catalog_bundle/vispy.bin.gz +0 -0
  39. plot_io-0.16.0/plot_io/colors/catalog_bundle/yorick.bin.gz +0 -0
  40. plot_io-0.16.0/plot_io/colors/catalog_plot_io.py +416 -0
  41. {plot_io-0.13.1/plot_io/color → plot_io-0.16.0/plot_io/colors}/maps.py +28 -139
  42. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/decorations.py +2 -2
  43. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/defaults.py +2 -1
  44. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/ext.py +1 -1
  45. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/facets.py +2 -1
  46. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/figure.py +60 -11
  47. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/contacts.py +1 -1
  48. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/intervals.py +1 -1
  49. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/links.py +1 -1
  50. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/signal.py +1 -1
  51. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/sites.py +1 -1
  52. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/groups.py +1 -1
  53. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/hints.py +1 -1
  54. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/labels.py +1 -1
  55. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/base.py +4 -4
  56. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/context.py +1 -1
  57. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/core.py +1 -1
  58. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/geoms.py +1 -1
  59. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/grammar.py +1 -1
  60. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/paint.py +2 -2
  61. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/pipeline.py +3 -3
  62. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/legend.py +4 -4
  63. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/levels.py +1 -1
  64. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/mapped.py +1 -1
  65. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/plot.py +5 -4
  66. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/_util.py +5 -5
  67. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/area.py +1 -1
  68. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/bar.py +1 -1
  69. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/box.py +2 -2
  70. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/contour.py +1 -1
  71. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/errorbar.py +1 -1
  72. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/errors.py +1 -1
  73. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/fill.py +1 -1
  74. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/heatmap.py +1 -1
  75. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/hexbin.py +1 -1
  76. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/hist.py +1 -1
  77. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/kde.py +1 -1
  78. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/line.py +1 -1
  79. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/pie.py +3 -3
  80. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/regression.py +1 -1
  81. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/stem.py +1 -1
  82. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/violin.py +1 -1
  83. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/registry.py +47 -8
  84. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/render.py +3 -3
  85. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/rows.py +1 -1
  86. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/settings.py +2 -2
  87. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/styles/__init__.py +1 -1
  88. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/styles/library.py +5 -5
  89. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/titles.py +1 -1
  90. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/types.py +19 -4
  91. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/units.py +1 -1
  92. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/validators.py +1 -1
  93. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/values.py +3 -3
  94. {plot_io-0.13.1 → plot_io-0.16.0}/pyproject.toml +1 -1
  95. {plot_io-0.13.1 → plot_io-0.16.0}/tests/golden.json +3 -3
  96. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_bars.py +1 -1
  97. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_boundary.py +1 -1
  98. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_genome.py +2 -2
  99. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_layout.py +32 -0
  100. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_maps.py +150 -27
  101. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_registry.py +2 -1
  102. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_settings.py +2 -2
  103. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_size_keys.py +1 -1
  104. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_styles.py +1 -1
  105. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_tables.py +1 -1
  106. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_values.py +49 -4
  107. {plot_io-0.13.1 → plot_io-0.16.0}/tools/gen_api.py +1 -1
  108. {plot_io-0.13.1 → plot_io-0.16.0}/tools/gen_docs.py +84 -4
  109. plot_io-0.13.1/plot_io/color/__init__.py +0 -3
  110. plot_io-0.13.1/plot_io/color/data.py +0 -1646
  111. {plot_io-0.13.1 → plot_io-0.16.0}/LICENSE +0 -0
  112. {plot_io-0.13.1 → plot_io-0.16.0}/README.md +0 -0
  113. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/annotated.py +0 -0
  114. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/bars.py +0 -0
  115. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/box_plots.py +0 -0
  116. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/colorbars.py +0 -0
  117. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/density.py +0 -0
  118. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/distributions.py +0 -0
  119. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/dots.py +0 -0
  120. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/error_bars.py +0 -0
  121. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/facets.py +0 -0
  122. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/genome_matrices.py +0 -0
  123. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/genome_regions.py +0 -0
  124. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/genome_tracks.py +0 -0
  125. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/grids2d.py +0 -0
  126. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/groups.py +0 -0
  127. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/heatmap.py +0 -0
  128. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/helpers.py +0 -0
  129. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/large_data.py +0 -0
  130. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/layouts.py +0 -0
  131. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/levels.py +0 -0
  132. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/line_band.py +0 -0
  133. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/scales.py +0 -0
  134. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/scatter_groups.py +0 -0
  135. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/shared_colorbar.py +0 -0
  136. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/shared_legend.py +0 -0
  137. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/shared_sizes.py +0 -0
  138. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/styles.py +0 -0
  139. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/time_twin.py +0 -0
  140. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/titles.py +0 -0
  141. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/units.py +0 -0
  142. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples/variable_fonts.py +0 -0
  143. {plot_io-0.13.1 → plot_io-0.16.0}/docs/examples.md +0 -0
  144. {plot_io-0.13.1 → plot_io-0.16.0}/docs/from_matplotlib.md +0 -0
  145. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/area.md +0 -0
  146. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/bar.md +0 -0
  147. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/bed.md +0 -0
  148. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/bigwig.md +0 -0
  149. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/box.md +0 -0
  150. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/clustermap.md +0 -0
  151. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/contour.md +0 -0
  152. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/dendrogram.md +0 -0
  153. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/dots.md +0 -0
  154. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/ecdf.md +0 -0
  155. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/errorbar.md +0 -0
  156. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/facet.md +0 -0
  157. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/fill.md +0 -0
  158. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/genes.md +0 -0
  159. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/gtf.md +0 -0
  160. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/heatmap.md +0 -0
  161. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/hexbin.md +0 -0
  162. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/hic.md +0 -0
  163. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/hist.md +0 -0
  164. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/hist2d.md +0 -0
  165. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/joint.md +0 -0
  166. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/kde.md +0 -0
  167. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/kde2d.md +0 -0
  168. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/line.md +0 -0
  169. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/linkage.md +0 -0
  170. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/links.md +0 -0
  171. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/ma.md +0 -0
  172. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/manhattan.md +0 -0
  173. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/pairs.md +0 -0
  174. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/pie.md +0 -0
  175. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/qq.md +0 -0
  176. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/raincloud.md +0 -0
  177. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/regression.md +0 -0
  178. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/scatter.md +0 -0
  179. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/site_heatmap.md +0 -0
  180. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/site_profile.md +0 -0
  181. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/stem.md +0 -0
  182. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/strip.md +0 -0
  183. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/swarm.md +0 -0
  184. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/violin.md +0 -0
  185. {plot_io-0.13.1 → plot_io-0.16.0}/docs/plots/volcano.md +0 -0
  186. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/axis.md +0 -0
  187. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/canvas.md +0 -0
  188. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/colorbars.md +0 -0
  189. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/decorations.md +0 -0
  190. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/figure_rows.md +0 -0
  191. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/legends.md +0 -0
  192. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/plot.md +0 -0
  193. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/sets.md +0 -0
  194. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/titles.md +0 -0
  195. {plot_io-0.13.1 → plot_io-0.16.0}/docs/reference/tracks.md +0 -0
  196. {plot_io-0.13.1 → plot_io-0.16.0}/docs/tutorial.md +0 -0
  197. {plot_io-0.13.1 → plot_io-0.16.0}/hatch_build.py +0 -0
  198. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_methods.py +0 -0
  199. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/README.md +0 -0
  200. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/__init__.py +0 -0
  201. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/__main__.py +0 -0
  202. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/_api.py +0 -0
  203. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/kernels.py +0 -0
  204. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/manifest.json +0 -0
  205. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/alloc.c +0 -0
  206. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/cluster.c +0 -0
  207. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/colormap.c +0 -0
  208. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/math.c +0 -0
  209. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/plio.h +0 -0
  210. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/plio_api.h +0 -0
  211. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/plot.c +0 -0
  212. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/rt.c +0 -0
  213. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/signatures.c +0 -0
  214. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/sort.c +0 -0
  215. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/_native/src/stats.c +0 -0
  216. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/boxes.py +0 -0
  217. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/canvas.py +0 -0
  218. {plot_io-0.13.1/plot_io/color → plot_io-0.16.0/plot_io/colors}/values.py +0 -0
  219. {plot_io-0.13.1/plot_io/color → plot_io-0.16.0/plot_io/colors}/variants.py +0 -0
  220. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/columns.py +0 -0
  221. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/density.py +0 -0
  222. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/formatters.py +0 -0
  223. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/__init__.py +0 -0
  224. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/adapters.py +0 -0
  225. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/combine.py +0 -0
  226. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/lanes.py +0 -0
  227. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/layout.py +0 -0
  228. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/pack.py +0 -0
  229. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/readers.py +0 -0
  230. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/regions.py +0 -0
  231. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/scale.py +0 -0
  232. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/series.py +0 -0
  233. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/sources.py +0 -0
  234. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/genome/testing.py +0 -0
  235. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/geometry.py +0 -0
  236. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/guides.py +0 -0
  237. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/__init__.py +0 -0
  238. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/clustermap.py +0 -0
  239. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/dendrogram.py +0 -0
  240. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/grids.py +0 -0
  241. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/qq.py +0 -0
  242. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/raincloud.py +0 -0
  243. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/tree.py +0 -0
  244. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/helpers/volcano.py +0 -0
  245. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/kernels.py +0 -0
  246. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/__init__.py +0 -0
  247. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/positions.py +0 -0
  248. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layers/stats.py +0 -0
  249. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/layout.py +0 -0
  250. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/limits.py +0 -0
  251. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/lines.py +0 -0
  252. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/markers.py +0 -0
  253. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/markup.py +0 -0
  254. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/numbers.py +0 -0
  255. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/occupancy.py +0 -0
  256. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/__init__.py +0 -0
  257. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/catpoints.py +0 -0
  258. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/curves.py +0 -0
  259. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/dots.py +0 -0
  260. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/ecdf.py +0 -0
  261. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/hist2d.py +0 -0
  262. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/kde2d.py +0 -0
  263. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/presets/scatter.py +0 -0
  264. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/py.typed +0 -0
  265. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/scales.py +0 -0
  266. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/seams.py +0 -0
  267. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/shapes.py +0 -0
  268. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/sharing.py +0 -0
  269. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/sizemaps.py +0 -0
  270. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/spec.py +0 -0
  271. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/states.py +0 -0
  272. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/tables.py +0 -0
  273. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/text.py +0 -0
  274. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/ticks.py +0 -0
  275. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/times.py +0 -0
  276. {plot_io-0.13.1 → plot_io-0.16.0}/plot_io/transform.py +0 -0
  277. {plot_io-0.13.1 → plot_io-0.16.0}/tests/fonts/VarTest.ttf +0 -0
  278. {plot_io-0.13.1 → plot_io-0.16.0}/tests/fonts/VioTest-Bold.ttf +0 -0
  279. {plot_io-0.13.1 → plot_io-0.16.0}/tests/fonts/VioTest-Regular.ttf +0 -0
  280. {plot_io-0.13.1 → plot_io-0.16.0}/tests/fuzz_native.py +0 -0
  281. {plot_io-0.13.1 → plot_io-0.16.0}/tests/helpers.py +0 -0
  282. {plot_io-0.13.1 → plot_io-0.16.0}/tests/preset_ref.json +0 -0
  283. {plot_io-0.13.1 → plot_io-0.16.0}/tests/recording.py +0 -0
  284. {plot_io-0.13.1 → plot_io-0.16.0}/tests/stats_reference.json +0 -0
  285. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_api.py +0 -0
  286. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_box.py +0 -0
  287. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_colorbars.py +0 -0
  288. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_decorations.py +0 -0
  289. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_defaults.py +0 -0
  290. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_density.py +0 -0
  291. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_distributions.py +0 -0
  292. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_docs.py +0 -0
  293. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_dots.py +0 -0
  294. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_edge_cases.py +0 -0
  295. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_entry.py +0 -0
  296. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_figure_title.py +0 -0
  297. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_fonts.py +0 -0
  298. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_geometry.py +0 -0
  299. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_golden.py +0 -0
  300. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_grids.py +0 -0
  301. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_heatmap.py +0 -0
  302. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_invariants.py +0 -0
  303. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_jxl_output.py +0 -0
  304. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_layers.py +0 -0
  305. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_limits.py +0 -0
  306. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_markers.py +0 -0
  307. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_markup.py +0 -0
  308. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_native.py +0 -0
  309. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_numbers.py +0 -0
  310. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_occupancy.py +0 -0
  311. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_output.py +0 -0
  312. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_pie.py +0 -0
  313. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_reflines.py +0 -0
  314. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_rows.py +0 -0
  315. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_series.py +0 -0
  316. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_settings_fuzz.py +0 -0
  317. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_shared_legends.py +0 -0
  318. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_sharing.py +0 -0
  319. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_simplify.py +0 -0
  320. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_stats.py +0 -0
  321. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_style_settings.py +0 -0
  322. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_style_types.py +0 -0
  323. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_ticks.py +0 -0
  324. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_time_twin.py +0 -0
  325. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_titles.py +0 -0
  326. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_transform.py +0 -0
  327. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_typing.py +0 -0
  328. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_units.py +0 -0
  329. {plot_io-0.13.1 → plot_io-0.16.0}/tests/test_vocabulary.py +0 -0
  330. {plot_io-0.13.1 → plot_io-0.16.0}/tests/typing/user_code.py +0 -0
  331. {plot_io-0.13.1 → plot_io-0.16.0}/tools/build_native.py +0 -0
  332. {plot_io-0.13.1 → plot_io-0.16.0}/tools/settings_doc.py +0 -0
  333. {plot_io-0.13.1 → plot_io-0.16.0}/tools/zig.lock +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: plot_io
3
- Version: 0.13.1
3
+ Version: 0.16.0
4
4
  Summary: Plots for PDF, EPS, SVG, PNG, JPEG, JPEG XL and AVIF, drawn with vec_io
5
5
  Project-URL: Repository, https://github.com/ajgouhier/plot_io
6
6
  Author-email: Arthur Gouhier <ajgouhier@gmail.com>
7
7
  License-Expression: BSD-3-Clause
8
8
  License-File: LICENSE
9
9
  Requires-Python: >=3.11
10
- Requires-Dist: vec-io<0.8,>=0.7
10
+ Requires-Dist: vec-io<0.9,>=0.8
11
11
  Provides-Extra: dev
12
12
  Requires-Dist: mypy; extra == 'dev'
13
13
  Requires-Dist: ruff; extra == 'dev'
@@ -109,12 +109,12 @@ one in [reference/](#reference); worked examples are in [examples.md](examples.m
109
109
  (how a family is found: [Figure](reference/figure.md#figure)). A line of text is
110
110
  `line_height` tall (a multiple of the font size; default 1), the glyphs centered in it.
111
111
  * **Names.** `plt.` holds the figure and plot classes, the plot types, the value types
112
- (`ColorAxis`, `SizeAxis`, `ColorMap`, `SizeMap`, `Density`, `Errors`,
113
- `Span`, `Simplify`), `facet`, `every`, `registry`, `set_style`, `use_style` and `DEFAULTS`
112
+ (`ColorAxis`, `SizeAxis`, `ColorMap`, `SizeMap`, `Density`, `Errors`, `Span`, `Simplify`),
113
+ `facet`, `every`, `color`, `registry`, `set_style`, `use_style` and `DEFAULTS`
114
114
  ([modules](#12-modules)). Enum-like settings take strings.
115
- * **Registries.** `plt.registry.color_maps`, `markers`, `styles` and `layers`
116
- (plot types) each have `add(name, value)`, `names()`, `get(name)` (`ValueError` for an
117
- unknown name) and `name in registry.…`.
115
+ * **Registries.** `plt.registry.color_maps`, `markers`, `styles` and `layers` (plot types)
116
+ each have `add(name, value)`, `names()`, `get(name)` (`ValueError` for an unknown name)
117
+ and `name in registry.…`; `colors` (fixed): `names()`, `variants()`.
118
118
  * **Guides.** Titles, legends and colorbars follow one pattern: a figure has
119
119
  `fig.add_title`, `fig.add_legend` and `fig.add_colorbar` (in the lanes beside a set of
120
120
  plots, `side=`), and `fig.colorbar_area` and `fig.size_legend` (in their own grid area,
@@ -770,14 +770,14 @@ legend (`size_key="legend"`); `fig.size_legend` gives it its own area
770
770
  0.05, 0.1–0.9 and 0.95, white at 0 and black at 1, interpolated in Oklab; a bare name is
771
771
  0.5. They take precedence over CSS's names (`"red"` is `#d25b4a` in the default variant,
772
772
  `forest`, and `#fb2c36` in `base`; `"brown"` is Brown 0.5, not CSS's `#a52a2a`);
773
- `resolve()` gives the hex color.
773
+ `plt.color()` gives the color drawn (a `vec_io.Color`); `plt.registry.colors` the names.
774
774
  * **Color variants.** Nine variants of every scale: `base` (Tailwind's), `vivid`, `pastel`,
775
- `forest`, `dim`, `arctic`, `desert`, `dusty`, `neon`. A variant word before a color or
776
- map name picks one (`"pastel tab10_custom"`); `color_variant` (inherited: figure, plot,
777
- series or style; default `"forest"`; the library styles set `"base"`, the libraries'
778
- own colors) is the variant of every named color written without one: bare names, the
779
- series colors (`"C0"`), maps from names (`"rainbow_llhh"`) and the style's colors. Hex,
780
- `rgb()`, CSS names, `CMYK` and `Spot` never change; `explain()` names the variant used.
775
+ `forest`, `dim`, `arctic`, `desert`, `dusty`, `neon`. A variant word before a color or map
776
+ name picks one (`"pastel tab10_custom"`); `color_variant` (inherited: figure, plot, series
777
+ or style; default `"forest"`; the library styles set `"base"`, the libraries' own colors)
778
+ is the variant of every named color written without one: bare names, the series colors
779
+ (`"C0"`), maps from names (`"rainbow_llhh"`) and the style's colors. Hex, `rgb()`, CSS
780
+ names, `CMYK` and `Spot` never change; `explain()` names the variant used.
781
781
 
782
782
  ![color variants](images/color_variants.svg)
783
783
 
@@ -846,8 +846,8 @@ Every set of colors is a `ColorMap` with a kind: `qualitative`, `sequential`, `d
846
846
  `"pastel hue"`) it raises an error naming the map and why. Crameri's categorical sets are
847
847
  `batlow_s` … `navia_s`. `bwr` is short for `blue_white_red` (`"bwr"`, `"bwr_hc"`,
848
848
  `"bwr_smooth_r"`).
849
- The bundled maps (matplotlib's, seaborn's, ColorBrewer's, Crameri's, `okabe_ito`,
850
- rainbows from named colors) and members: [ColorMap](reference/color_axes.md#colormap).
849
+ Bundled: [every map by collection](reference/color_maps.md), plot_io's and cmap's 659
850
+ (`"cmocean:thermal"`; `names(collection=…)`, `collections()`).
851
851
 
852
852
  ```python
853
853
  cm = plt.ColorMap("viridis") # the subject: maps by name
@@ -1159,11 +1159,11 @@ colors in the `base` variant, as the libraries draw them):
1159
1159
  |---|---|---|---|
1160
1160
  | `default` | `DEFAULTS` | `tab10_custom`, `rainbow_lc`, `blue_white_red_hc`, `romao` | [default](examples.md#10-styles) |
1161
1161
  | `matplotlib` | matplotlib ≥ 2.0: four spines, legend `inside="best"` | `tab10`, `viridis`, `coolwarm`, `romao` | [matplotlib](examples.md#10-styles) |
1162
- | `seaborn` | seaborn darkgrid, notebook context | `deep`, `rocket`, `vlag`, `romao` | [seaborn](examples.md#10-styles) |
1163
- | `ggplot2` | `theme_grey()`: grey panel, white grid, legend outside | `hue`, `ggplot2`, gradient2 (`#832424` → white → `#3A3A98`), `romao` | [ggplot2](examples.md#10-styles) |
1162
+ | `seaborn` | seaborn darkgrid, notebook context | `seaborn:deep`, `rocket`, `vlag`, `romao` | [seaborn](examples.md#10-styles) |
1163
+ | `ggplot2` | `theme_grey()`: grey panel, white grid, legend outside | `ggplot2:hue`, `ggplot2:gradient`, gradient2 (`#832424` → white → `#3A3A98`), `romao` | [ggplot2](examples.md#10-styles) |
1164
1164
  | `tufte` | ggthemes' `theme_tufte` with a range frame: serif, no grid, trimmed axes | four greys (black → `#CCCCCC`), `#E6E6E6` → black, `blue_white_red_hc`, `romao` | [tufte](examples.md#10-styles) |
1165
- | `altair` | Vega-Lite: grey axis lines and grid, hollow points | `tableau10`, `ylgnbu`, `blue_white_red_hc`, `romao` | [altair](examples.md#10-styles) |
1166
- | `matlab` | MATLAB R2014b+: ticks in, framed legend | `matlab` (`lines`), `parula`, `blue_white_red_hc`, `romao` | [matlab](examples.md#10-styles) |
1165
+ | `altair` | Vega-Lite: grey axis lines and grid, hollow points | `vega:tableau10`, `ylgnbu`, `blue_white_red_hc`, `romao` | [altair](examples.md#10-styles) |
1166
+ | `matlab` | MATLAB R2014b+: ticks in, framed legend | `matlab:lines`, `parula`, `blue_white_red_hc`, `romao` | [matlab](examples.md#10-styles) |
1167
1167
 
1168
1168
  A variant of a library's look is a user style on its base, here seaborn's `whitegrid`:
1169
1169
 
@@ -1186,7 +1186,7 @@ plt.registry.styles.add("seaborn-whitegrid", {
1186
1186
  `plt.__all__` is the API; `plt.Axis`, `plt.Legend`, `plt.Colorbar` and `plt.Title` are there
1187
1187
  for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_io.ext`,
1188
1188
  `plot_io.genome` (`parse_region`, `Region`, `combine`), `plot_io.genome.readers`,
1189
- `plot_io.genome.testing`, `plot_io.types`, `plot_io.markers`, `plot_io.color.maps`,
1189
+ `plot_io.genome.testing`, `plot_io.types`, `plot_io.markers`, `plot_io.colors.maps`,
1190
1190
  `plot_io.canvas`, and those of the types calls return (`plot_io.facets`,
1191
1191
  `plot_io.helpers`, `plot_io.tables`, `plot_io.colorbar`). The others are internal.
1192
1192
 
@@ -1201,7 +1201,7 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
1201
1201
  | [titles](reference/titles.md) | [`Title`](reference/titles.md#title), [`FigureTitle`](reference/titles.md#figuretitle) |
1202
1202
  | [legends](reference/legends.md) | [`Legend`](reference/legends.md#legend), [`FigureLegend`](reference/legends.md#figurelegend), [`SizeLegend`](reference/legends.md#sizelegend) |
1203
1203
  | [colorbars](reference/colorbars.md) | [`Colorbar`](reference/colorbars.md#colorbar), [`FigureColorbar`](reference/colorbars.md#figurecolorbar) |
1204
- | [color axes](reference/color_axes.md) | [`ColorAxis`](reference/color_axes.md#coloraxis), [`SizeAxis`](reference/color_axes.md#sizeaxis), [`ColorMap`](reference/color_axes.md#colormap), [`SizeMap`](reference/color_axes.md#sizemap), [`Density`](reference/color_axes.md#density) |
1204
+ | [color axes](reference/color_axes.md) | [`ColorAxis`](reference/color_axes.md#coloraxis), [`SizeAxis`](reference/color_axes.md#sizeaxis), [`ColorMap`](reference/color_axes.md#colormap), [`SizeMap`](reference/color_axes.md#sizemap), [`Density`](reference/color_axes.md#density), [`color`](reference/color_axes.md#color) |
1205
1205
  | [decorations](reference/decorations.md) | [`HLine`](reference/decorations.md#hline), [`AxLine`](reference/decorations.md#axline), [`HSpan`](reference/decorations.md#hspan), [`Text`](reference/decorations.md#text), [`Annotate`](reference/decorations.md#annotate), [`Bracket`](reference/decorations.md#bracket) |
1206
1206
  | [figure rows](reference/figure_rows.md) | [`FigureVLine`](reference/figure_rows.md#figurevline), [`FigureVSpan`](reference/figure_rows.md#figurevspan), [`FigureGroup`](reference/figure_rows.md#figuregroup) |
1207
1207
  | [tracks](reference/tracks.md) | [`Tracks`](reference/tracks.md#tracks), [`Track`](reference/tracks.md#track) |
@@ -1219,8 +1219,8 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
1219
1219
  | `axis.py` | Axes: settings (`Axis`) and their state while a figure is drawn (`AxisState`: scale, limits, ticks, mapping to the page). |
1220
1220
  | `boxes.py` | The box tree of a plot: what surrounds its axes, side by side, as ordered nodes. |
1221
1221
  | `canvas.py` | The canvas plot_io draws on, and a canvas that records the drawing. |
1222
- | `color/` | Colors: values and named scales (`values`), color maps, every set of colors with its kind: qualitative, sequential, diverging, cyclic (`maps`), and the bundled data (`data`). Color space conversions are vec_io's (`paint`). |
1223
1222
  | `colorbar.py` | Colorbars: the guides of color axes, and size keys: the guides of size axes. |
1223
+ | `colors/` | Colors: values and named scales (`values`), color maps, every set of colors with its kind: qualitative, sequential, diverging, cyclic (`maps`), and the bundled data (`data`). Color space conversions are vec_io's (`paint`). |
1224
1224
  | `columns.py` | Data intake: the data arguments of a plot type's call as columns. |
1225
1225
  | `decorations.py` | Decorations: reference lines, spans, text, annotations and brackets on a plot. |
1226
1226
  | `defaults.py` | Every default setting of plot_io, in one place: the default look. |
@@ -1250,7 +1250,7 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
1250
1250
  | `occupancy.py` | What the series cover inside the axes, on a coarse grid: used to place legends. |
1251
1251
  | `plot.py` | Plots: one area of a figure, with axes, series, title, legend and colorbars. |
1252
1252
  | `presets/` | The plot types: each a `Series` declared by a `SPEC` (its data, layers and what the axes need, built by `grammar`) or with a `layers()` of its own, registered as a `Plot` method (`registry.layers.add`). |
1253
- | `registry.py` | The registries of named things: `color_maps`, `markers`, `styles` and `layers` (plot types), each with `add(name, value)`, `names()` and `get(name)`. |
1253
+ | `registry.py` | The registries of named things: `color_maps`, `markers`, `styles` and `layers` (plot types), each with `add(name, value)`, `names()` and `get(name)`; `colors`, the named color scales (fixed: `names()`, `variants()`, `get(name)`). |
1254
1254
  | `render.py` | Drawing and output of figures. |
1255
1255
  | `rows.py` | Rows of a figure: row labels in a band left of the plots, groups of rows, and lines and bands drawn through several rows. |
1256
1256
  | `scales.py` | Scales: a monotone function from data to a position line. |
@@ -101,39 +101,26 @@ Oklab) and `in_variant(variant)` return copies. `repr` of a registered map is `
101
101
  A map is a set of colors only: the limits and scale of the values are their color
102
102
  axis'.
103
103
 
104
- Bundled (names in any case; `_r` reverses): viridis, magma, inferno, plasma (van der
105
- Walt and Smith, CC0); cividis (Nuñez, Anderton and Renslow); coolwarm (Moreland);
106
- rocket, mako, flare, crest, vlag, icefire (seaborn, Waskom, BSD-3-Clause); jet; a
107
- parula-like map; turbo (Mikhailov, Google, Apache-2.0); `ggplot2` (`#132B43` →
108
- `#56B1F7`); the rainbows from the named colors violet, sky, green, yellow, orange, rose
109
- (`widen_colors=6, widen_sides=0.6`, `"smooth"`): `rainbow` (level 0.5),
110
- `rainbow_lc` (0.4, the default `sequential_map`), `rainbow_l0` (from white, then 0.083 to 0.5),
111
- `rainbow_l0hh` (from white, then 0.1 to 0.6),
112
- `rainbow_llhh` (0.16 to 0.6), `rainbow_llh` (0.16 to
113
- 0.4), `rainbow_hlh` (dark ends, light middle); diverging `blue_white_red`,
114
- `blue_white_red_hc` (the default `diverging_map`), `blue_white_red_smooth` (smooth
115
- interpolation), `blue_white_red_smooth_hc` (`bwr` is short
116
- for `blue_white_red`: `"bwr"`, `"bwr_hc"`, `"bwr_smooth_r"`), `blue_gray_red`, `blue_gray_red_hc`; ColorBrewer's (Brewer,
117
- Apache-2.0) sequential `blues` … `ylorrd` (9 colors) and diverging `brbg`, `piyg`,
118
- `prgn`, `puor`, `rdbu`, `rdgy`, `rdylbu`, `rdylgn`, `spectral` (11);
119
- Crameri's Scientific colour maps 8 (MIT): sequential `batlow` … `navia`, diverging
120
- `broc`, `cork`, `vik`, `lisbon`, `tofino`, `berlin`, `roma`, `bam`,
121
- `vanimo`, `managua`, multi-sequential `oleron`, `bukavu`, `fes` (diverging,
122
- their break at the centre), cyclic `romao`, `bamo`, `broco`, `corko`,
123
- `viko`. Qualitative: `tab10_custom` (the default; tab10's hues as the named colors sky,
124
- amber, emerald, rose, purple 0.4, brown, pink 0.4, gray, lime, cyan);
125
- `tableau10_custom` (Tableau 10's hues as the named colors sky, amber, rose, teal 0.4,
126
- green, yellow, fuchsia, pink 0.4, brown, gray 0.4); `qual` (gray, yellow, emerald, rose, sky, brown, purple, lime, cyan); `okabe_ito`
127
- (Okabe–Ito's eight colorblind-safe colors plus indigo and dark brown); `tab10`
128
- (matplotlib ≥ 2.0, d3's category10); `matplotlib_classic`; `tableau10` (Vega-Lite);
129
- seaborn's `deep`, `muted`, `pastel`, `bright`, `dark`, `colorblind`;
130
- `hue` (ggplot2's `hue_pal()`: n hues 360/n apart from 15°); `matlab`;
131
- `chartjs`; `plotly`; `observable10`; `office`; `economist`;
132
- `fivethirtyeight`; ColorBrewer's `set1`, `set2`, `set3`, `paired`,
133
- `accent`, `dark2`, `pastel1`, `pastel2`; Crameri's categorical sets
134
- `batlow_s` … `navia_s` (100 colors, the first differing most). The maps not named
135
- diverging, cyclic or qualitative here are sequential. `plt.registry.color_maps.names(kind=…)`
136
- lists them.
104
+ Bundled (names in any case; `_r` reverses; a variant word first recolors a map of
105
+ named colors): plot_io's maps, the 659 of the cmap package (cmocean, colorcet, cmasher,
106
+ ColorBrewer's, Crameri's, Paul Tol's, …) and libraries' defaults, each listed with its
107
+ kind and credits in [the color maps](color_maps.md). A full name,
108
+ `collection:name`, names one (`"cmocean:thermal"`, `"seaborn:deep"`); a name alone
109
+ is a map added with `plt.registry.color_maps.add`, else plot_io's, else that of the
110
+ first collection in a fixed order that has it (matplotlib, bids, colorbrewer, crameri,
111
+ cmocean, seaborn, …: `"viridis"`, `"batlow"`, `"set1"`). plot_io's: a
112
+ parula-like map; the named-color rainbows `rainbow`, `rainbow_lc` (the default
113
+ `sequential_map`), … (the suffix gives the level profile: `l` light, `h` dark,
114
+ `0` from white); diverging `blue_white_red` (`bwr`), `blue_white_red_hc` (the
115
+ default `diverging_map`), `blue_gray_red` …; qualitative `tab10_custom` (the
116
+ default), `tableau10_custom`, `qual`, `okabe_ito`. Libraries' defaults:
117
+ `seaborn:deep` … `seaborn:colorblind`, `matplotlib:classic`,
118
+ `matplotlib:fivethirtyeight`, `matlab:lines`, `vega:tableau10`,
119
+ `plotly:plotly`, `chartjs:default`, `microsoft:office`, `ggthemes:economist`,
120
+ `ggplot2:gradient`, `ggplot2:hue` (`hue_pal()`) and Crameri's categorical
121
+ `crameri:batlow_s` … (100 colors, the first differing most).
122
+ `plt.registry.color_maps.names(kind=…, collection=…)` lists them,
123
+ `collections()` the collections.
137
124
 
138
125
  | Parameter | Meaning |
139
126
  |---|---|
@@ -351,3 +338,36 @@ changes, in `series.stats["density"]`.
351
338
  | `normalize` | The values: `"pdf"` (scipy's), `"count"` (points per unit area) or `"max"` (0–1). |
352
339
  | `method` | `"exact"`, `"grid"` or `"auto"` (exact up to 20,000 points). |
353
340
  | `grid` | Grid size of the grid method, 16–4096. |
341
+
342
+ ## color
343
+
344
+ ```python
345
+ plt.color(spec, variant=None) -> Color
346
+ ```
347
+
348
+ A color as plot_io draws it, as a `vec_io.Color` (`.hex`, `.r`, `.lightness`,
349
+ `with_alpha()`, `mix()`…); `"none"` and `"transparent"` give
350
+ `Color(0, 0, 0, 0)`.
351
+
352
+ A named color without a variant word (`"red"`) and the series colors (`"C0"`,
353
+ `"C1"`, …) are those a new figure draws now: in its `color_variant` (`"forest"`
354
+ unless a style sets another, `use_style`) and from its qualitative map.
355
+ Other colors (CSS names, hex, `rgb()`, `oklch()`, tuples, `CMYK`, `Spot`) do not
356
+ depend on the variant; a print color gives its RGB approximation. An invalid color or
357
+ variant raises `ValueError`. `plt.registry.colors.names()` and `.variants()` list
358
+ the scales and variants.
359
+
360
+ Example:
361
+
362
+ ```python
363
+ import plot_io as plt
364
+
365
+ plt.color("pastel blue 0.3").hex # '#b3d1f4'
366
+ plt.color("red", variant="base").hex # '#fb2c36'
367
+ plt.color("C0").with_alpha(0.5) # the first series color, translucent
368
+ ```
369
+
370
+ | Parameter | Meaning |
371
+ |---|---|
372
+ | `spec` | Any color a setting takes: `"blue"`, `"pastel blue 0.3"`, `"blue 45%"`, `"C0"`, `"navy"`, `"#336699"`, `"rgb(255 128 0)"`, `(1, 0.5, 0)`, a `CMYK`. |
373
+ | `variant` | The variant of named colors written without one and of the series colors (one of `plt.registry.colors.variants()`); `None`: the current default. |
@@ -0,0 +1,211 @@
1
+ # Color maps
2
+
3
+ <!-- written by tools/gen_docs.py from plot_io/colors/catalog_plot_io.py and catalog_bundle/index.json: do not edit -->
4
+
5
+ Every bundled map, by collection: plot_io's own, the color maps of [cmap](https://cmap-docs.readthedocs.io) 0.8.0, and libraries' defaults plot_io adds (*(plot_io)* below). A map's full name is `collection:name` (`plt.ColorMap("cmocean:thermal")`, `"seaborn:deep"`), in any case, `_r` reversed. A name alone is a map added with `plt.registry.color_maps.add`, else plot_io's, else that of the first collection that has it in this order: `matplotlib`, `bids`, `colorbrewer`, `crameri`, `cmocean`, `seaborn`, `ggplot2`, `vega`, `tableau`, `matlab`, `plotly`, `chartjs`, `microsoft`, `ggthemes`, then the others in alphabetical order (`"thermal"` is `cmocean:thermal`, `"deep"` `cmocean:deep`). A variant word first (`"pastel tab10_custom"`) recolors a map of named colors. Kinds are plot_io's: cmap's miscellaneous and uncategorized maps are sequential, qualitative when they are steps without a category; Crameri's multi-sequential `oleron`, `bukavu` and `fes` are diverging. `plt.registry.color_maps.names(kind=…, collection=…)` and `.collections()` list them.
6
+
7
+ | Collection | License | Authors | Source | Maps |
8
+ |---|---|---|---|---|
9
+ | [plot_io](#plot_io) | BSD-3-Clause | | plot_io | 18 |
10
+ | [bids](#bids) | CC0 | Nathaniel J. Smith, Stefan van der Walt | <https://github.com/bids/colormap> | 5 |
11
+ | [chartjs](#chartjs) | MIT | | <https://github.com/chartjs/Chart.js> | 1 |
12
+ | [chrisluts](#chrisluts) | MIT | Christophe Leterrier | <https://github.com/cleterrier/ChrisLUTs> | 20 |
13
+ | [cividis](#cividis) | BSD-3-Clause | Jamie Nunez | <https://github.com/pnnl/cmaputil> | 1 |
14
+ | [cmap](#cmap) | CC0 | | <https://github.com/pyapp-kit/cmap> | 7 |
15
+ | [cmasher](#cmasher) | BSD-3-Clause | Ellert van der Velden | <https://github.com/1313e/CMasher> | 53 |
16
+ | [cmocean](#cmocean) | MIT | Kristen M. Thyng | <https://github.com/matplotlib/cmocean> | 24 |
17
+ | [colorbrewer](#colorbrewer) | Apache-2.0 | Cynthia Brewer, Mark Harrower | <https://github.com/axismaps/colorbrewer> | 300 |
18
+ | [colorcet](#colorcet) | CC-BY-4.0 | Peter Kovesi | <https://colorcet.com> | 67 |
19
+ | [contrib](#contrib) | CC0 | | <https://github.com/pyapp-kit/cmap> | 4 |
20
+ | [crameri](#crameri) | MIT | Fabio Crameri | <https://zenodo.org/record/5501399> | 61 |
21
+ | [cubehelix](#cubehelix) | BSD-2-Clause | Dave Green, James Davenport | <https://github.com/jradavenport/cubehelix> | 1 |
22
+ | [ggplot2](#ggplot2) | MIT | | <https://github.com/tidyverse/ggplot2> | 2 |
23
+ | [ggthemes](#ggthemes) | not stated | Jeffrey B. Arnold | <https://github.com/jrnold/ggthemes> | 1 |
24
+ | [glasbey](#glasbey) | CC0 | Chris Glasbey | <https://doi.org/10.1002/col.20327> | 1 |
25
+ | [gnuplot](#gnuplot) | gnuplot | Thomas Williams, Colin Kelley | <http://www.gnuplot.info> | 6 |
26
+ | [google](#google) | Apache-2.0 | Anton Mikhailov | <https://gist.github.com/mikhailov-work/ee72ba4191942acecc03fe6da94fc73f> | 1 |
27
+ | [ibm](#ibm) | Apache-2.0 | | <https://carbondesignsystem.com/data-visualization/color-palettes/#categorical-palettes> | 2 |
28
+ | [imagej](#imagej) | BSD-2-Clause | | <https://github.com/imagej/imagej-common> | 4 |
29
+ | [matlab](#matlab) | not stated | | | 15 |
30
+ | [matplotlib](#matplotlib) | PSF | | <https://github.com/matplotlib/matplotlib> | 29 |
31
+ | [microsoft](#microsoft) | not stated | | Office 2013 theme colors | 1 |
32
+ | [napari](#napari) | BSD-3-Clause | | <https://github.com/napari/napari> | 2 |
33
+ | [observable](#observable) | Apache-2.0 | | <https://github.com/d3/d3-scale-chromatic> | 1 |
34
+ | [okabeito](#okabeito) | not stated | Masataka Okabe, Kei Ito | <https://jfly.uni-koeln.de/color/> | 1 |
35
+ | [paraview](#paraview) | BSD-3-Clause | | <https://github.com/Kitware/ParaView> | 4 |
36
+ | [petroff](#petroff) | CC0 | Matthew A. Petroff | <https://arxiv.org/abs/2107.02270> | 3 |
37
+ | [plotly](#plotly) | MIT | | <https://github.com/plotly/plotly.py> | 1 |
38
+ | [seaborn](#seaborn) | BSD-3-Clause | Michael Waskom | <https://github.com/mwaskom/seaborn> | 21 |
39
+ | [tableau](#tableau) | not stated | | <https://public.tableau.com/app/profile/chris.gerrard/viz/TableauColors/ColorPaletteswithRGBValues> | 9 |
40
+ | [tol](#tol) | BSD-3-Clause | Paul Tol | <https://personal.sron.nl/~pault/> | 54 |
41
+ | [vega](#vega) | BSD-3-Clause | | <https://github.com/vega/vega> | 1 |
42
+ | [vispy](#vispy) | BSD-3-Clause | | <https://github.com/vispy/> | 13 |
43
+ | [yorick](#yorick) | BSD-3-Clause | David Munro | <https://github.com/LLNL/yorick> | 6 |
44
+
45
+ ## plot_io
46
+
47
+ plot_io's own maps, with where they come from (the others are plot_io's). The rainbows' suffix gives the level profile (`l` light, `h` dark, `0` from white); `bwr` is short for `blue_white_red`.
48
+
49
+ - **sequential**: `parula` (parula-like (after MATLAB's)); `rainbow`; `rainbow_hlh`; `rainbow_l0`; `rainbow_l0hh`; `rainbow_lc`; `rainbow_llh`; `rainbow_llhh`
50
+ - **diverging**: `blue_gray_red`; `blue_gray_red_hc`; `blue_white_red`; `blue_white_red_hc`; `blue_white_red_smooth`; `blue_white_red_smooth_hc`
51
+ - **qualitative**: `okabe_ito` (Okabe–Ito, plus indigo and dark brown); `qual`; `tab10_custom` (tab10's hues as named colors); `tableau10_custom` (Tableau 10's hues as named colors)
52
+
53
+ ## bids
54
+
55
+ - **sequential**: `fake_parula`, `inferno`, `magma`, `plasma`, `viridis`
56
+
57
+ ## chartjs
58
+
59
+ - **qualitative**: `default` *(plot_io)*
60
+
61
+ ## chrisluts
62
+
63
+ - **sequential**: `bmr_3c`, `bop_blue`, `bop_orange`, `bop_purple`, `cgy_3c`, `i_blue`, `i_bordeaux`, `i_cyan`, `i_forest`, `i_green`, `i_magenta`, `i_orange`, `i_purple`, `i_red`, `i_yellow`, `opf_fresh`, `opf_orange`, `opf_purple`, `rmb_3c`, `ygc_3c`
64
+
65
+ ## cividis
66
+
67
+ - **sequential**: `cividis`
68
+
69
+ ## cmap
70
+
71
+ - **sequential**: `blue`, `cyan`, `green`, `magenta`, `red`, `white`, `yellow`
72
+
73
+ ## cmasher
74
+
75
+ - **sequential**: `amber`, `amethyst`, `apple`, `arctic`, `bubblegum`, `chroma`, `cosmic`, `dusk`, `eclipse`, `ember`, `emerald`, `fall`, `flamingo`, `freeze`, `gem`, `ghostlight`, `gothic`, `horizon`, `jungle`, `lavender`, `lilac`, `neon`, `neutral`, `nuclear`, `ocean`, `pepper`, `rainforest`, `sapphire`, `savanna`, `sepia`, `sunburst`, `swamp`, `torch`, `toxic`, `tree`, `tropical`, `voltage`
76
+ - **diverging**: `fusion`, `guppy`, `holly`, `iceburn`, `pride`, `prinsenvlag`, `redshift`, `seaweed`, `viola`, `waterlily`, `watermelon`, `wildfire`
77
+ - **cyclic**: `copper`, `emergency`, `infinity`, `seasons`
78
+
79
+ ## cmocean
80
+
81
+ - **sequential**: `algae`, `amp`, `balance_blue`, `curl_pink`, `deep`, `delta_blue`, `dense`, `haline`, `ice`, `matter`, `oxy`, `rain`, `solar`, `speed`, `tempo`, `thermal`, `topo`, `turbid`
82
+ - **diverging**: `balance`, `curl`, `delta`, `diff`, `tarn`
83
+ - **cyclic**: `phase`
84
+
85
+ ## colorbrewer
86
+
87
+ - **sequential**: `blues`, `blues_3` (3 steps), `blues_4` (4 steps), `blues_5` (5 steps), `blues_6` (6 steps), `blues_7` (7 steps), `blues_8` (8 steps), `blues_9` (9 steps), `bugn`, `bugn_3` (3 steps), `bugn_4` (4 steps), `bugn_5` (5 steps), `bugn_6` (6 steps), `bugn_7` (7 steps), `bugn_8` (8 steps), `bugn_9` (9 steps), `bupu`, `bupu_3` (3 steps), `bupu_4` (4 steps), `bupu_5` (5 steps), `bupu_6` (6 steps), `bupu_7` (7 steps), `bupu_8` (8 steps), `bupu_9` (9 steps), `gnbu`, `gnbu_3` (3 steps), `gnbu_4` (4 steps), `gnbu_5` (5 steps), `gnbu_6` (6 steps), `gnbu_7` (7 steps), `gnbu_8` (8 steps), `gnbu_9` (9 steps), `greens`, `greens_3` (3 steps), `greens_4` (4 steps), `greens_5` (5 steps), `greens_6` (6 steps), `greens_7` (7 steps), `greens_8` (8 steps), `greens_9` (9 steps), `greys`, `greys_3` (3 steps), `greys_4` (4 steps), `greys_5` (5 steps), `greys_6` (6 steps), `greys_7` (7 steps), `greys_8` (8 steps), `greys_9` (9 steps), `oranges`, `oranges_3` (3 steps), `oranges_4` (4 steps), `oranges_5` (5 steps), `oranges_6` (6 steps), `oranges_7` (7 steps), `oranges_8` (8 steps), `oranges_9` (9 steps), `orrd`, `orrd_3` (3 steps), `orrd_4` (4 steps), `orrd_5` (5 steps), `orrd_6` (6 steps), `orrd_7` (7 steps), `orrd_8` (8 steps), `orrd_9` (9 steps), `pubu`, `pubu_3` (3 steps), `pubu_4` (4 steps), `pubu_5` (5 steps), `pubu_6` (6 steps), `pubu_7` (7 steps), `pubu_8` (8 steps), `pubu_9` (9 steps), `pubugn`, `pubugn_3` (3 steps), `pubugn_4` (4 steps), `pubugn_5` (5 steps), `pubugn_6` (6 steps), `pubugn_7` (7 steps), `pubugn_8` (8 steps), `pubugn_9` (9 steps), `purd`, `purd_3` (3 steps), `purd_4` (4 steps), `purd_5` (5 steps), `purd_6` (6 steps), `purd_7` (7 steps), `purd_8` (8 steps), `purd_9` (9 steps), `purples`, `purples_3` (3 steps), `purples_4` (4 steps), `purples_5` (5 steps), `purples_6` (6 steps), `purples_7` (7 steps), `purples_8` (8 steps), `purples_9` (9 steps), `rdpu`, `rdpu_3` (3 steps), `rdpu_4` (4 steps), `rdpu_5` (5 steps), `rdpu_6` (6 steps), `rdpu_7` (7 steps), `rdpu_8` (8 steps), `rdpu_9` (9 steps), `reds`, `reds_3` (3 steps), `reds_4` (4 steps), `reds_5` (5 steps), `reds_6` (6 steps), `reds_7` (7 steps), `reds_8` (8 steps), `reds_9` (9 steps), `ylgn`, `ylgn_3` (3 steps), `ylgn_4` (4 steps), `ylgn_5` (5 steps), `ylgn_6` (6 steps), `ylgn_7` (7 steps), `ylgn_8` (8 steps), `ylgn_9` (9 steps), `ylgnbu`, `ylgnbu_3` (3 steps), `ylgnbu_4` (4 steps), `ylgnbu_5` (5 steps), `ylgnbu_6` (6 steps), `ylgnbu_7` (7 steps), `ylgnbu_8` (8 steps), `ylgnbu_9` (9 steps), `ylorbr`, `ylorbr_3` (3 steps), `ylorbr_4` (4 steps), `ylorbr_5` (5 steps), `ylorbr_6` (6 steps), `ylorbr_7` (7 steps), `ylorbr_8` (8 steps), `ylorbr_9` (9 steps), `ylorrd`, `ylorrd_3` (3 steps), `ylorrd_4` (4 steps), `ylorrd_5` (5 steps), `ylorrd_6` (6 steps), `ylorrd_7` (7 steps), `ylorrd_8` (8 steps), `ylorrd_9` (9 steps)
88
+ - **diverging**: `brbg`, `brbg_10` (10 steps), `brbg_11` (11 steps), `brbg_3` (3 steps), `brbg_4` (4 steps), `brbg_5` (5 steps), `brbg_6` (6 steps), `brbg_7` (7 steps), `brbg_8` (8 steps), `brbg_9` (9 steps), `piyg`, `piyg_10` (10 steps), `piyg_11` (11 steps), `piyg_3` (3 steps), `piyg_4` (4 steps), `piyg_5` (5 steps), `piyg_6` (6 steps), `piyg_7` (7 steps), `piyg_8` (8 steps), `piyg_9` (9 steps), `prgn`, `prgn_10` (10 steps), `prgn_11` (11 steps), `prgn_3` (3 steps), `prgn_4` (4 steps), `prgn_5` (5 steps), `prgn_6` (6 steps), `prgn_7` (7 steps), `prgn_8` (8 steps), `prgn_9` (9 steps), `puor`, `puor_10` (10 steps), `puor_11` (11 steps), `puor_3` (3 steps), `puor_4` (4 steps), `puor_5` (5 steps), `puor_6` (6 steps), `puor_7` (7 steps), `puor_8` (8 steps), `puor_9` (9 steps), `rdbu`, `rdbu_10` (10 steps), `rdbu_11` (11 steps), `rdbu_3` (3 steps), `rdbu_4` (4 steps), `rdbu_5` (5 steps), `rdbu_6` (6 steps), `rdbu_7` (7 steps), `rdbu_8` (8 steps), `rdbu_9` (9 steps), `rdgy`, `rdgy_10` (10 steps), `rdgy_11` (11 steps), `rdgy_3` (3 steps), `rdgy_4` (4 steps), `rdgy_5` (5 steps), `rdgy_6` (6 steps), `rdgy_7` (7 steps), `rdgy_8` (8 steps), `rdgy_9` (9 steps), `rdylbu`, `rdylbu_10` (10 steps), `rdylbu_11` (11 steps), `rdylbu_3` (3 steps), `rdylbu_4` (4 steps), `rdylbu_5` (5 steps), `rdylbu_6` (6 steps), `rdylbu_7` (7 steps), `rdylbu_8` (8 steps), `rdylbu_9` (9 steps), `rdylgn`, `rdylgn_10` (10 steps), `rdylgn_11` (11 steps), `rdylgn_3` (3 steps), `rdylgn_4` (4 steps), `rdylgn_5` (5 steps), `rdylgn_6` (6 steps), `rdylgn_7` (7 steps), `rdylgn_8` (8 steps), `rdylgn_9` (9 steps), `spectral`, `spectral_10` (10 steps), `spectral_11` (11 steps), `spectral_3` (3 steps), `spectral_4` (4 steps), `spectral_5` (5 steps), `spectral_6` (6 steps), `spectral_7` (7 steps), `spectral_8` (8 steps), `spectral_9` (9 steps)
89
+ - **qualitative**: `accent`, `accent_3`, `accent_4`, `accent_5`, `accent_6`, `accent_7`, `accent_8`, `dark2`, `dark2_3`, `dark2_4`, `dark2_5`, `dark2_6`, `dark2_7`, `dark2_8`, `paired`, `paired_10`, `paired_11`, `paired_12`, `paired_3`, `paired_4`, `paired_5`, `paired_6`, `paired_7`, `paired_8`, `paired_9`, `pastel1`, `pastel1_3`, `pastel1_4`, `pastel1_5`, `pastel1_6`, `pastel1_7`, `pastel1_8`, `pastel1_9`, `pastel2`, `pastel2_3`, `pastel2_4`, `pastel2_5`, `pastel2_6`, `pastel2_7`, `pastel2_8`, `set1`, `set1_3`, `set1_4`, `set1_5`, `set1_6`, `set1_7`, `set1_8`, `set1_9`, `set2`, `set2_3`, `set2_4`, `set2_5`, `set2_6`, `set2_7`, `set2_8`, `set3`, `set3_10`, `set3_11`, `set3_12`, `set3_3`, `set3_4`, `set3_5`, `set3_6`, `set3_7`, `set3_8`, `set3_9`
90
+
91
+ ## colorcet
92
+
93
+ - **sequential**: `cet_cbl1`, `cet_cbl2`, `cet_cbl3`, `cet_cbl4`, `cet_cbtl1`, `cet_cbtl2`, `cet_cbtl3`, `cet_cbtl4`, `cet_i1`, `cet_i2`, `cet_i3`, `cet_l1`, `cet_l10`, `cet_l11`, `cet_l12`, `cet_l13`, `cet_l14`, `cet_l15`, `cet_l16`, `cet_l17`, `cet_l18`, `cet_l19`, `cet_l2`, `cet_l20`, `cet_l3`, `cet_l4`, `cet_l5`, `cet_l6`, `cet_l7`, `cet_l8`, `cet_l9`, `cet_r1`, `cet_r2`, `cet_r3`, `cet_r4`
94
+ - **diverging**: `cet_cbd1`, `cet_cbd2`, `cet_cbtd1`, `cet_d1`, `cet_d10`, `cet_d11`, `cet_d12`, `cet_d13`, `cet_d1a`, `cet_d2`, `cet_d3`, `cet_d4`, `cet_d5`, `cet_d6`, `cet_d7`, `cet_d8`, `cet_d9`
95
+ - **cyclic**: `cet_c1`, `cet_c10`, `cet_c11`, `cet_c2`, `cet_c3`, `cet_c4`, `cet_c5`, `cet_c6`, `cet_c7`, `cet_c8`, `cet_c9`, `cet_cbc1`, `cet_cbc2`, `cet_cbtc1`, `cet_cbtc2`
96
+
97
+ ## contrib
98
+
99
+ - **sequential**: `araucaria`, `cerrado`, `pantanal`
100
+ - **diverging**: `pampa`
101
+
102
+ ## crameri
103
+
104
+ - **sequential**: `acton`, `bamako`, `batlow`, `batlowk`, `batloww`, `bilbao`, `buda`, `davos`, `devon`, `glasgow`, `grayc`, `hawaii`, `imola`, `lajolla`, `lapaz`, `lipari`, `navia`, `naviaw`, `nuuk`, `oslo`, `tokyo`, `turku`
105
+ - **diverging**: `bam`, `berlin`, `broc`, `bukavu`, `cork`, `fes`, `lisbon`, `managua`, `oleron`, `roma`, `tofino`, `vanimo`, `vik`
106
+ - **cyclic**: `bamo`, `broco`, `corko`, `romao`, `viko`
107
+ - **qualitative**: `acton_s` *(plot_io)*, `bamako_s` *(plot_io)*, `batlow_s` *(plot_io)*, `batlowk_s` *(plot_io)*, `batloww_s` *(plot_io)*, `bilbao_s` *(plot_io)*, `buda_s` *(plot_io)*, `davos_s` *(plot_io)*, `devon_s` *(plot_io)*, `glasgow_s` *(plot_io)*, `grayc_s` *(plot_io)*, `hawaii_s` *(plot_io)*, `imola_s` *(plot_io)*, `lajolla_s` *(plot_io)*, `lapaz_s` *(plot_io)*, `lipari_s` *(plot_io)*, `navia_s` *(plot_io)*, `nuuk_s` *(plot_io)*, `oslo_s` *(plot_io)*, `tokyo_s` *(plot_io)*, `turku_s` *(plot_io)*
108
+
109
+ ## cubehelix
110
+
111
+ - **sequential**: `cubehelix`
112
+
113
+ ## ggplot2
114
+
115
+ - **sequential**: `gradient` *(plot_io)*
116
+ - **qualitative**: `hue` *(plot_io)*
117
+
118
+ ## ggthemes
119
+
120
+ - **qualitative**: `economist` *(plot_io)*
121
+
122
+ ## glasbey
123
+
124
+ - **qualitative**: `glasbey`
125
+
126
+ ## gnuplot
127
+
128
+ - **sequential**: `afmhot`, `gnuplot`, `gnuplot2`, `grv`, `ocean`, `rainbow`
129
+
130
+ ## google
131
+
132
+ - **sequential**: `turbo`
133
+
134
+ ## ibm
135
+
136
+ - **qualitative**: `ibm_dark`, `ibm_light`
137
+
138
+ ## imagej
139
+
140
+ - **sequential**: `fire`, `greenfireblue`, `hilo`, `ice`
141
+
142
+ ## matlab
143
+
144
+ - **sequential**: `autumn`, `bone`, `cool`, `copper`, `flag`, `gray`, `hot`, `jet`, `pink`, `prism`, `spring`, `summer`, `winter`
145
+ - **cyclic**: `hsv`
146
+ - **qualitative**: `lines` *(plot_io)*
147
+
148
+ ## matplotlib
149
+
150
+ - **sequential**: `binary`, `brg`, `cmrmap` (BSD-2-Clause), `gist_earth` (`yorick:earth`), `gist_gray` (`cmap:white`), `gist_grey` (`cmap:white`), `gist_heat` (`yorick:heat`), `gist_ncar` (`yorick:ncar`), `gist_rainbow` (`yorick:rainbow`), `gist_stern` (`yorick:stern`), `gist_yarg` (`yorick:yarg`), `gist_yerg` (`yorick:yarg`), `grays` (`colorbrewer:greys`), `grey` (`cmap:white`), `inferno` (`bids:inferno`), `magma` (`bids:magma`), `nipy_spectral`, `plasma` (`bids:plasma`), `terrain`, `viridis` (`bids:viridis`), `wistia` (MIT)
151
+ - **diverging**: `bwr`, `coolwarm`, `seismic`
152
+ - **cyclic**: `twilight`, `twilight_shifted`
153
+ - **qualitative**: `classic` *(plot_io)*, `fivethirtyeight` *(plot_io)*, `okabe_ito` (`okabeito:okabeito`)
154
+
155
+ ## microsoft
156
+
157
+ - **qualitative**: `office` *(plot_io)*
158
+
159
+ ## napari
160
+
161
+ - **sequential**: `hilo`, `nan`
162
+
163
+ ## observable
164
+
165
+ - **qualitative**: `observable10`
166
+
167
+ ## okabeito
168
+
169
+ - **qualitative**: `okabeito`
170
+
171
+ ## paraview
172
+
173
+ - **sequential**: `blackbody`, `kindlmann`
174
+ - **diverging**: `coolwarm`, `fast`
175
+
176
+ ## petroff
177
+
178
+ - **qualitative**: `petroff10`, `petroff6`, `petroff8`
179
+
180
+ ## plotly
181
+
182
+ - **qualitative**: `plotly` *(plot_io)*
183
+
184
+ ## seaborn
185
+
186
+ - **sequential**: `crest`, `flare`, `mako`, `rocket`
187
+ - **diverging**: `icefire`, `vlag`
188
+ - **qualitative**: `bright` *(plot_io)*, `colorblind` *(plot_io)*, `dark` *(plot_io)*, `deep` *(plot_io)*, `muted` *(plot_io)*, `pastel` *(plot_io)*, `tab10` (`tableau:tab10`), `tab10_colorblind` (`tableau:tab10_colorblind`), `tab10_light` (`tableau:tab10_light`), `tab10_medium` (`tableau:tab10_medium`), `tab10_new` (`tableau:tab10_new`), `tab20` (`tableau:tab20`), `tab20b` (`tableau:tab20b`), `tab20c` (`tableau:tab20c`), `tab_traffic_light` (`tableau:tab_traffic_light`)
189
+
190
+ ## tableau
191
+
192
+ - **qualitative**: `tab10`, `tab10_colorblind`, `tab10_light`, `tab10_medium`, `tab10_new`, `tab20`, `tab20b`, `tab20c`, `tab_traffic_light`
193
+
194
+ ## tol
195
+
196
+ - **sequential**: `incandescent`, `iridescent`, `rainbow_discrete_1` (1 steps), `rainbow_discrete_10` (10 steps), `rainbow_discrete_11` (11 steps), `rainbow_discrete_12` (12 steps), `rainbow_discrete_13` (13 steps), `rainbow_discrete_14` (14 steps), `rainbow_discrete_15` (15 steps), `rainbow_discrete_16` (16 steps), `rainbow_discrete_17` (17 steps), `rainbow_discrete_18` (18 steps), `rainbow_discrete_19` (19 steps), `rainbow_discrete_2` (2 steps), `rainbow_discrete_20` (20 steps), `rainbow_discrete_21` (21 steps), `rainbow_discrete_22` (22 steps), `rainbow_discrete_23` (23 steps), `rainbow_discrete_3` (3 steps), `rainbow_discrete_4` (4 steps), `rainbow_discrete_5` (5 steps), `rainbow_discrete_6` (6 steps), `rainbow_discrete_7` (7 steps), `rainbow_discrete_8` (8 steps), `rainbow_discrete_9` (9 steps), `rainbow_pubr`, `rainbow_purd`, `rainbow_whbr`, `rainbow_whrd`, `whorbr`, `ylorbr`, `ylorbr_discrete` (9 steps)
197
+ - **diverging**: `burd`, `burd_discrete` (9 steps), `nightfall`, `nightfall_discrete` (9 steps), `prgn`, `prgn_discrete` (9 steps), `sunset`, `sunset_discrete` (11 steps)
198
+ - **qualitative**: `bright`, `bright_alt`, `dark`, `high_contrast`, `high_contrast_alt`, `light`, `light_alt`, `medium_contrast`, `medium_contrast_alt`, `muted`, `muted_alt`, `pale`, `vibrant`, `vibrant_alt`
199
+
200
+ ## vega
201
+
202
+ - **qualitative**: `tableau10` *(plot_io)*
203
+
204
+ ## vispy
205
+
206
+ - **sequential**: `fire`, `hsl`, `husl`, `ice`, `light_blues`, `orange`, `single_hue` (`vispy:light_blues`)
207
+ - **diverging**: `diverging`, `grbu`, `grbu_d`, `pugr`, `rdbu`, `rdyebucy`
208
+
209
+ ## yorick
210
+
211
+ - **sequential**: `earth`, `heat`, `ncar`, `rainbow`, `stern`, `yarg`
@@ -21,8 +21,11 @@ one column top to bottom, sharing x, `spacing` 0 and `width` 480 px unless given
21
21
  each row as high as its plot's `height` (a [`Track`](tracks.md#track): from its content; other
22
22
  plots `1fr`).
23
23
 
24
- **Sizes.** With one of `width` and `height`, `aspect_ratio` gives the other;
25
- giving all three raises `ValueError`. Plots with a `data_ratio` (and pies) take the
24
+ **Sizes.** The default box is 150 × 120 px. With one of `width` and `height`,
25
+ `aspect_ratio` gives the other; with `aspect_ratio` alone, the default box takes
26
+ that ratio keeping what `aspect_fixed` names: its `height` (default), `width`,
27
+ `area`, shorter side (`min`) or longer side (`max`). Giving all three of
28
+ `width`, `height` and `aspect_ratio` raises `ValueError`. Plots with a `data_ratio` (and pies) take the
26
29
  other side from it. `reference="figure"`: the cells share what the decorations leave
27
30
  with axes of at least 8 px (a figure too small for them grows, with one warning).
28
31
  `widths`/`heights`: ratios, or fixed lengths the ratios share the rest around (in
@@ -331,8 +334,9 @@ Width and height of the figure in px.
331
334
  | `widths` | — | Column widths: ratios (numbers or `fr`) sharing the room left by fixed lengths (`"2in"`, `"30%"` of the plots' room). |
332
335
  | `heights` | — | Row heights, as `widths`. |
333
336
  | `width` | '150px' | Width of the `reference` box: one cell's axes, one cell's plot, or the figure; a paper size names its width (`"a4"`, `"letter"`, `"a4-landscape"`). Length. |
334
- | `height` | 'calc(var(width) / var(aspect_ratio))' | Height of the `reference` box (a paper size: its height). Length. |
335
- | `aspect_ratio` | 1.25 | Width / height of the `reference` box (16:9 → `16 / 9`), when only one of `width` and `height` is given. |
337
+ | `height` | '120px' | Height of the `reference` box (a paper size: its height). Length. |
338
+ | `aspect_ratio` | 1.25 | Width / height of the `reference` box (16:9 → `16 / 9`), when only one of `width` and `height` is given, or neither (then `aspect_fixed` says what stays). |
339
+ | `aspect_fixed` | 'height' | What stays of the default box (`width` × `height` of the defaults) when `aspect_ratio` is given without `width` or `height`: `height`, `width`, `area`, `min` (the shorter side) or `max` (the longer side). |
336
340
  | `reference` | 'axes' | What `width` and `height` measure: `axes` (each grid cell's axes rectangle), `plot` (each cell's whole plot box) or `figure`. |
337
341
  | `spacing` | 13.0 | Minimum gap between neighbouring plots. Length; `%`: of the figure width (across) or height (down). |
338
342
  | `margin` | 5.0 | Space around the figure. Length; `%`: of the figure width (across) or height (down). |
@@ -16,7 +16,8 @@ from vec_io import Simplify, Span
16
16
 
17
17
  from . import registry
18
18
  from .axis import Axis
19
- from .color.maps import ColorMap
19
+ from .colors import color
20
+ from .colors.maps import ColorMap
20
21
  from .colorbar import Colorbar
21
22
  from .defaults import DEFAULTS
22
23
  from .density import Density
@@ -54,6 +55,7 @@ __all__ = [
54
55
  "linkage", "Tree", "Dendrogram", "QQ", "Raincloud", "Volcano", "Ma", "Manhattan",
55
56
  # values: axes of mapped values, color maps, densities, errors, rich text
56
57
  "ColorAxis", "SizeAxis", "ColorMap", "SizeMap", "Density", "Errors",
58
+ "color",
57
59
  "Span", "Simplify", "group_summary", "every",
58
60
  # values written with var() and calc(): typed as Expr
59
61
  "Expr", "var", "calc",
@@ -66,7 +68,7 @@ __all__ = [
66
68
  "__version__",
67
69
  ]
68
70
 
69
- __version__ = "0.13.1"
71
+ __version__ = "0.16.0"
70
72
 
71
73
 
72
74
  def __dir__() -> list[str]:
@@ -13,7 +13,7 @@ from . import kernels
13
13
  from .transform import affine, apply
14
14
  from .limits import check_limits, needs_quantiles, resolve_limits, symmetric
15
15
  from .scales import AXIS_SCALES, Scale, get_scale
16
- from .color.values import color
16
+ from .colors.values import color
17
17
  from . import groups
18
18
  from .settings import (Setting, Settings, boolean, either, literal, number, one_of, pair,
19
19
  table, text, time_zone)
@@ -19,7 +19,7 @@ from .canvas import Canvas
19
19
  from ._methods import FigureColorbarMixin
20
20
  from . import groups
21
21
  from .axis import AxisState
22
- from .color.values import resolve_color
22
+ from .colors.values import resolve_color
23
23
  from .settings import (Setting, Settings, boolean, canonical, either, literal, number, one_of,
24
24
  route, table, text)
25
25
  from .spec import current, set_boxes
@@ -221,7 +221,7 @@ class Colorbar(Settings):
221
221
 
222
222
  def __init__(self, source: Any = None, plot: Any = None, figure: Any = None,
223
223
  **settings: Any) -> None:
224
- from .color.maps import ColorMap
224
+ from .colors.maps import ColorMap
225
225
  from .mapped import ColorAxis, SizeAxis
226
226
  if isinstance(source, ColorMap):
227
227
  raise ValueError("a colorbar shows a color axis: give a mapped series, or a "
@@ -0,0 +1,70 @@
1
+ """Colors: values and named scales (:mod:`.values`), color maps, every set of colors with
2
+ its kind: qualitative, sequential, diverging, cyclic (:mod:`.maps`), and the bundled data
3
+ (:mod:`.data`). Color space conversions are vec_io's (:mod:`vec_io.paint`).
4
+
5
+ Public here: :func:`color` (``plt.color``); the scale and variant names are listed by
6
+ ``plt.registry.colors``."""
7
+
8
+ from typing import Any
9
+
10
+ from vec_io import Color
11
+
12
+ from .variants import TABLES, VARIANTS
13
+
14
+ __all__ = ["color"]
15
+
16
+ #: The names of the color scales, in hue order, then the grays, black and white.
17
+ SCALE_NAMES: tuple[str, ...] = (*TABLES["base"], "black", "white")
18
+ #: The color variants; ``base`` is Tailwind CSS's shades.
19
+ VARIANT_NAMES: tuple[str, ...] = tuple(VARIANTS)
20
+
21
+
22
+ def color(spec: Any, variant: str | None = None) -> Color:
23
+ """A color as plot_io draws it, as a ``vec_io.Color`` (``.hex``, ``.r``, ``.lightness``,
24
+ ``with_alpha()``, ``mix()``…); ``"none"`` and ``"transparent"`` give
25
+ ``Color(0, 0, 0, 0)``.
26
+
27
+ A named color without a variant word (``"red"``) and the series colors (``"C0"``,
28
+ ``"C1"``, …) are those a new figure draws now: in its ``color_variant`` (``"forest"``
29
+ unless a style sets another, :func:`~plot_io.use_style`) and from its qualitative map.
30
+ Other colors (CSS names, hex, ``rgb()``, ``oklch()``, tuples, ``CMYK``, ``Spot``) do not
31
+ depend on the variant; a print color gives its RGB approximation. An invalid color or
32
+ variant raises ``ValueError``. ``plt.registry.colors.names()`` and ``.variants()`` list
33
+ the scales and variants.
34
+
35
+ Args:
36
+ spec: Any color a setting takes: ``"blue"``, ``"pastel blue 0.3"``, ``"blue 45%"``, ``"C0"``, ``"navy"``, ``"#336699"``, ``"rgb(255 128 0)"``, ``(1, 0.5, 0)``, a ``CMYK``.
37
+ variant: The variant of named colors written without one and of the series colors (one of ``plt.registry.colors.variants()``); ``None``: the current default.
38
+
39
+ Example::
40
+
41
+ import plot_io as plt
42
+
43
+ plt.color("pastel blue 0.3").hex # '#b3d1f4'
44
+ plt.color("red", variant="base").hex # '#fb2c36'
45
+ plt.color("C0").with_alpha(0.5) # the first series color, translucent
46
+ """
47
+ from .values import Named, _color, check_variant, rgba_of
48
+
49
+ if variant is not None:
50
+ variant = check_variant(variant)
51
+ v = _color(spec)
52
+ series = isinstance(v, str) and len(v) >= 2 and v[0] == "C" and v[1:].isdigit()
53
+ if series or (isinstance(v, Named) and v.variant is None and variant is None):
54
+ from ..figure import Figure
55
+ from .maps import cycle_of, map_of
56
+
57
+ given: dict[str, Any] = {} if variant is None else {"color_variant": variant}
58
+ fig = Figure(**given)
59
+ if not series:
60
+ variant = fig.resolve("color_variant")
61
+ else:
62
+ cycle = cycle_of(map_of(fig, "qualitative"))
63
+ return color(cycle[int(v[1:]) % len(cycle)], fig.resolve("color_variant"))
64
+ if isinstance(v, Named):
65
+ return Color.from_hex(v.in_variant(variant or "base"))
66
+ rgba = rgba_of(v)
67
+ if rgba is None:
68
+ return Color(0.0, 0.0, 0.0, 0.0)
69
+ r, g, b = (min(max(c, 0.0), 1.0) for c in rgba[:3])
70
+ return Color(r, g, b, min(max(rgba[3] if len(rgba) > 3 else 1.0, 0.0), 1.0))