home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 158212793

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
158212793 MDU6SXNzdWUxNTgyMTI3OTM= 866 Drawing only one contour 7300413 closed 0     8 2016-06-02T18:50:36Z 2016-07-20T17:16:27Z 2016-07-20T17:16:27Z NONE      

Hello,

I was trying to draw only a single contour by passing levels=[0], and nothing gets plotted.

I checked utils.py, and the logic used to calculate n_colors in _build_discrete_cmap gives n_colors=0, since it will first set extend to 'neither', and so ext_n = 0, and n_colors = len(levels) + ext_n - 1

I'm not sure, but this might be the issue.

Another issue, which might be unrelated, is when I'm trying to draw two contours. It plots only one contour, and it will plot two contours only if I set norm=None.

Any suggestions?

TIA, Joy

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/866/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
  • 8 rows from issue in issue_comments
Powered by Datasette · Queries took 0.913ms · About: xarray-datasette