Title: [Doc]: Document color in a consistent way, including link · Issue #24859 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Document color in a consistent way, including link · Issue #24859 · matplotlib/matplotlib
X Title: [Doc]: Document color in a consistent way, including link · Issue #24859 · matplotlib/matplotlib
Description: Documentation Link No response Problem Matplotlib has a rather flexible color concept, see https://matplotlib.org/stable/tutorials/colors/colors.html In the documentation, the type of color arguments is often, but not always, listed as "...
Open Graph Description: Documentation Link No response Problem Matplotlib has a rather flexible color concept, see https://matplotlib.org/stable/tutorials/colors/colors.html In the documentation, the type of color argumen...
X Description: Documentation Link No response Problem Matplotlib has a rather flexible color concept, see https://matplotlib.org/stable/tutorials/colors/colors.html In the documentation, the type of color argumen...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24859
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Document color in a consistent way, including link","articleBody":"### Documentation Link\r\n\r\n_No response_\r\n\r\n### Problem\r\n\r\nMatplotlib has a rather flexible color concept, see https://matplotlib.org/stable/tutorials/colors/colors.html\r\n\r\nIn the documentation, the type of color arguments is often, but not always, listed as \"color\", although there are limited hints what this actually means.\r\n\r\n### Suggested improvement\r\n\r\nLink the type `color` to the page above (is there a better one?). Update other types (like `str`) to be `color`.\r\n\r\n```\r\n:doc:`color \u003c/tutorials/colors/colors\u003e`\r\n```\r\n\r\nThese are the ones I found through a simple grep.\r\n```\r\nmatplotlib/axes/_axes.py: facecolor : color, default: 'none'\r\nmatplotlib/axes/_axes.py: edgecolor : color, default: '0.5'\r\nmatplotlib/axes/_axes.py: color : color or list of color, optional\r\nmatplotlib/axes/_axes.py: edgecolor : color or list of color, optional\r\nmatplotlib/axes/_axes.py: ecolor : color or list of color, default: 'black'\r\nmatplotlib/axes/_axes.py: color : color or list of color, optional\r\nmatplotlib/axes/_axes.py: edgecolor : color or list of color, optional\r\nmatplotlib/axes/_axes.py: ecolor : color or list of color, default: 'black'\r\nmatplotlib/axes/_axes.py: ecolor : color, default: None\r\nmatplotlib/axes/_axes.py: pcolor : An alternative implementation with slightly different\r\nmatplotlib/axes/_axes.py: color : color or array-like of colors or None, default: None\r\nmatplotlib/axes/_base.py: color : color\r\nmatplotlib/axes/_base.py: color : color\r\nmatplotlib/axes/_base.py: labelcolor : color\r\nmatplotlib/axes/_base.py: grid_color : color\r\nmatplotlib/axes/_secondary_axes.py: color : color\r\nmatplotlib/backend_bases.py: facecolor : color or 'auto', default: :rc:`savefig.facecolor`\r\nmatplotlib/backend_bases.py: edgecolor : color or 'auto', default: :rc:`savefig.edgecolor`\r\nmatplotlib/collections.py: color : color or list of colors, default: :rc:`lines.color`\r\nmatplotlib/figure.py: color : color\r\nmatplotlib/figure.py: color : color\r\nmatplotlib/figure.py: facecolor : default: :rc:`figure.facecolor`\r\nmatplotlib/figure.py: edgecolor : default: :rc:`figure.edgecolor`\r\nmatplotlib/figure.py: facecolor : default: :rc:`figure.facecolor`\r\nmatplotlib/figure.py: edgecolor : default: :rc:`figure.edgecolor`\r\nmatplotlib/figure.py: facecolor : color or 'auto', default: :rc:`savefig.facecolor`\r\nmatplotlib/figure.py: edgecolor : color or 'auto', default: :rc:`savefig.edgecolor`\r\nmatplotlib/legend.py:labelcolor : str or list, default: :rc:`legend.labelcolor`\r\nmatplotlib/legend.py:facecolor : \"inherit\" or color, default: :rc:`legend.facecolor`\r\nmatplotlib/legend.py:edgecolor : \"inherit\" or color, default: :rc:`legend.edgecolor`\r\nmatplotlib/lines.py: color : color\r\nmatplotlib/lines.py: gapcolor : color or None\r\nmatplotlib/mathtext.py: color : str, optional\r\nmatplotlib/patches.py: color : color or None\r\nmatplotlib/patches.py: color : color or None\r\nmatplotlib/patheffects.py: shadow_color : color, default: 'black'\r\nmatplotlib/pyplot.py: facecolor : color, default: :rc:`figure.facecolor`\r\nmatplotlib/pyplot.py: edgecolor : color, default: :rc:`figure.edgecolor`\r\nmatplotlib/quiver.py:color : color or color sequence, optional\r\nmatplotlib/quiver.py: color : color\r\nmatplotlib/quiver.py: labelcolor : color, default: :rc:`text.color`\r\nmatplotlib/quiver.py:barbcolor : color or color sequence\r\nmatplotlib/quiver.py:flagcolor : color or color sequence\r\nmatplotlib/streamplot.py: color : color or 2D array\r\nmatplotlib/table.py: edgecolor : color\r\nmatplotlib/table.py: facecolor : color\r\nmatplotlib/text.py: color : color\r\nmatplotlib/text.py: color : color\r\nmatplotlib/widgets.py: color : color\r\nmatplotlib/widgets.py: hovercolor : color\r\nmatplotlib/widgets.py: initcolor : color, default: 'r'\r\nmatplotlib/widgets.py: track_color : color, default: 'lightgrey'\r\nmatplotlib/widgets.py: track_color : color, default: 'lightgrey'\r\nmatplotlib/widgets.py: color : color\r\nmatplotlib/widgets.py: hovercolor : color\r\nmatplotlib/widgets.py: color : color\r\nmatplotlib/widgets.py: hovercolor : color\r\nmatplotlib/widgets.py: activecolor : color\r\nmatplotlib/widgets.py: activecolor : color\r\nmpl_toolkits/axes_grid1/anchored_artists.py: color : str, default: 'black'\r\nmpl_toolkits/axes_grid1/anchored_artists.py: color : str, default: 'white'\r\nmpl_toolkits/mplot3d/axes3d.py: color : color-like\r\nmpl_toolkits/mplot3d/axes3d.py: color : sequence of colors, optional\r\nmpl_toolkits/mplot3d/axes3d.py: ecolor : color, default: None\r\nmpl_toolkits/mplot3d/axis3d.py: color : color\r\n```\r\n\r\n```\r\nmatplotlib/axes/_axes.py: colors : list of colors, default: :rc:`lines.color`\r\nmatplotlib/axes/_axes.py: colors : list of colors, default: :rc:`lines.color`\r\nmatplotlib/axes/_axes.py: colors : color or list of colors, default: :rc:`lines.color`\r\nmatplotlib/axes/_axes.py: colors : array-like, default: None\r\nmatplotlib/axes/_axes.py: edgecolors : color or sequence of color or {'face', 'none'} or None\r\nmatplotlib/axes/_axes.py: colors : array(N, 4) or None\r\nmatplotlib/axes/_axes.py: edgecolors : {'face', 'none', *None*} or color or sequence of color, \\\r\nmatplotlib/axes/_axes.py: edgecolors : {'face', 'none', *None*} or color, default: 'face'\r\nmatplotlib/axes/_axes.py: edgecolors : {'none', None, 'face', color, color sequence}, optional\r\nmatplotlib/axes/_axes.py: edgecolors : {'none', None, 'face', color, color sequence}, optional\r\nmatplotlib/axes/_base.py: colors : color\r\nmatplotlib/backend_bases.py: colors : (3, 4) array-like\r\nmatplotlib/backend_bases.py: colors : (N, 3, 4) array-like\r\nmatplotlib/backends/backend_pdf.py: colors : np.ndarray\r\nmatplotlib/collections.py: edgecolors : color or list of colors, default: :rc:`patch.edgecolor`\r\nmatplotlib/collections.py: facecolors : color or list of colors, default: :rc:`patch.facecolor`\r\nmatplotlib/collections.py: colors : color or list of color, default: :rc:`lines.color`\r\nmatplotlib/collections.py: facecolors : color or list of color, default: 'none'\r\nmatplotlib/colorbar.py: colors : color or list of colors\r\nmatplotlib/colors.py: colors : array-like of colors or array-like of (value, color)\r\nmatplotlib/colors.py: colors : list, array\r\nmatplotlib/colors.py: colors : sequence of colors\r\nmatplotlib/contour.py: colors : color or colors or None, default: None\r\nmatplotlib/contour.py:colors : color string or sequence of colors, optional\r\nmatplotlib/stackplot.py: colors : list of color, optional\r\nmatplotlib/tri/_tricontour.py:colors : color string or sequence of colors, optional\r\nmatplotlib/tri/_tripcolor.py: facecolors : array-like, optional\r\nmpl_toolkits/mplot3d/axes3d.py: facecolors : array-like of colors.\r\nmpl_toolkits/mplot3d/axes3d.py: facecolors, edgecolors : array-like, optional\r\n```\r\n\r\n```\r\nmatplotlib/axes/_axes.py: c : color or sequence or sequence of color or None\r\nmatplotlib/backend_bases.py: fg : color\r\nmatplotlib/collections.py: c : color or list of RGBA tuples\r\nmatplotlib/collections.py: c : color or list of colors\r\nmatplotlib/collections.py: c : color or list of colors or 'face'\r\nmatplotlib/collections.py: c : color or list of colors\r\nmatplotlib/lines.py: ec : color\r\nmatplotlib/lines.py: fc : color\r\nmatplotlib/lines.py: fc : color\r\nmatplotlib/patches.py: c : color\r\nmatplotlib/patheffects.py: shadow_rgbFace : color\r\nmatplotlib/spines.py: c : color\r\nmpl_toolkits/mplot3d/axes3d.py: c : color, sequence, or sequence of colors, optional\r\n```","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2023-01-01T10:53:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/24859/matplotlib/issues/24859"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ee9aee7-467a-8bf5-5c53-68c6256eea90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AA8:1730DB:4E7439F:6EDEB91:6A50201A |
| html-safe-nonce | f93d037a5286b6180324e26eabdf135f2c03d5431d104efa90ae6bf9f0bdf084 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUE4OjE3MzBEQjo0RTc0MzlGOjZFREVCOTE6NkE1MDIwMUEiLCJ2aXNpdG9yX2lkIjoiMTQ2NzIzNTI2MTg4MDQ3NTY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf240d6fdc75c58ae41171c89277e129fe405be60ebe10f562a0290b895c74a0 |
| hovercard-subject-tag | issue:1515471972 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24859/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26a23757594ac7741fabd3799197b4fceb7798e87b9f569fcbf9f212181ac1e6/matplotlib/matplotlib/issues/24859 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26a23757594ac7741fabd3799197b4fceb7798e87b9f569fcbf9f212181ac1e6/matplotlib/matplotlib/issues/24859 |
| og:image:alt | Documentation Link No response Problem Matplotlib has a rather flexible color concept, see https://matplotlib.org/stable/tutorials/colors/colors.html In the documentation, the type of color argumen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscargus |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width