home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 194370559

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
194370559 MDU6SXNzdWUxOTQzNzA1NTk= 1159 Problem passing 'norm' when plotting a faceted figure 14314623 closed 0     3 2016-12-08T15:49:00Z 2016-12-09T14:08:49Z 2016-12-09T09:46:58Z CONTRIBUTOR      

I am not sure if this is a bug or user error by me.

I am basically trying to pass a SymLogNorm to all plots in a faceted plot, but it has no effect. It works when I just plot a single axis. Below I reproduced the effect with an example dataset.

Matplotlib version: 1.5.1 xarray version: 0.8.2

```python import xarray as xr import matplotlib as mpl

Here the passed 'norm=' keyword has the desired effect

da1 = xr.DataArray(np.random.exponential(size=[10,10]))

plt.figure() da1.plot()

plt.figure() da1.plot(norm=mpl.colors.SymLogNorm(0.1))

In the faceted plot this has no effect

da2 = xr.DataArray(np.random.exponential(size=[10,10,4]))

plt.figure() da.plot(x='dim_0',y='dim_1',col='dim_2',col_wrap=2)

plt.figure() da.plot(x='dim_0',y='dim_1',col='dim_2',col_wrap=3,norm=mpl.colors.SymLogNorm(0.1)) ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1159/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.639ms · About: xarray-datasette