issue_comments: 264455218
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/pull/1148#issuecomment-264455218 | https://api.github.com/repos/pydata/xarray/issues/1148 | 264455218 | MDEyOklzc3VlQ29tbWVudDI2NDQ1NTIxOA== | 7442202 | 2016-12-02T13:36:39Z | 2016-12-02T13:40:14Z | CONTRIBUTOR | Here is an example of a random polar plot that doesn't work without the suggested modification: ```python import xarray import numpy as np from collections import OrderedDict from datetime import datetime define dimensionsdims = OrderedDict([ ('time', [datetime(2016,12,1,1,0,0), datetime(2016,12,1,1,20,0)]), ('location', np.arange(3)), ('frequency', np.linspace(.1, .5, 20)), ('direction', np.linspace(0., 2.*np.pi, 50)), ]) create random dataE = np.random.rand(*[len(x) for x in dims.itervalues()]) construct DataArraydarray = xarray.DataArray(E, dims=dims, coords=dims) plot datadarray.plot.pcolormesh(col='time', row='location', subplot_kws=dict(projection='polar'), sharex=False, sharey=False) ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
192816291 |