home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 294735496

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
294735496 MDU6SXNzdWUyOTQ3MzU0OTY= 1889 call to colorbar not thread safe 11750960 closed 0     12 2018-02-06T12:05:44Z 2022-04-27T23:47:56Z 2022-04-27T23:47:56Z CONTRIBUTOR      

The following call in xarray/xarray/plot/plot.py does not seem to be thread safe: cbar = plt.colorbar(primitive, **cbar_kwargs) It leads to systematic crashes when distributed, with a cryptic error message (ValueError: Unknown element o). I have to call colorbars outside the xarray plot call to prevent crashes.

A call of the following type may fix the problem: cbar = fig.colorbar(primitive, **cbar_kwargs) But fig does not seem to be available directly in plot.py. Maybe: cbar = ax.get_figure().colorbar(primitive, **cbar_kwargs)

cheers

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1889/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

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