home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 356067160

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
356067160 MDU6SXNzdWUzNTYwNjcxNjA= 2394 Change default colormaps 14314623 closed 0     3 2018-08-31T17:38:08Z 2018-09-05T15:17:23Z 2018-09-05T15:17:23Z CONTRIBUTOR      

Problem description

xarrays plotting module is awesome because it detects automatically if the data is divergent or not and adjusts the colormap accordingly.

But what if I do not particularly like the default colormap choice for either data type (e.g. my current boss is not a fan of matplotlibs viridis)?

@shoyer mentioned on stackexchange that this is not currently possible.

I would be happy to submit a PR, if I can get some guidance on where to implement this.

What does everyone think about a syntax this shoule be implemented with?

Something like:

with xr.set_options(diverging_cmap='RdYlBl'): ... with xr.set_options(nondiverging_cmap='magma'): .... Or is there a better way to do this? I would personally prefer to be able to set this at the beginning of a notebook, so that it is applied to all following plots. Maybe something like the mpl.rcparams is a way to go here?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2394/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.633ms · About: xarray-datasette