issue_comments: 127471969
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/509#issuecomment-127471969 | https://api.github.com/repos/pydata/xarray/issues/509 | 127471969 | MDEyOklzc3VlQ29tbWVudDEyNzQ3MTk2OQ== | 2443309 | 2015-08-04T04:10:44Z | 2015-08-04T04:10:44Z | MEMBER | @shoyer - This last commit (119c1c8) should have addressed the issues you brought up. I updated my examples a bit to show how things are working: ``` python %matplotlib inline import matplotlib.pyplot as plt import numpy as np import xray sample DataArrayx = np.arange(start=0, stop=10, step=2) y = np.arange(start=9, stop=-7, step=-3) xy = np.dstack(np.meshgrid(x, y)) distance = np.linalg.norm(xy, axis=2) distance = xray.DataArray(distance, list(zip(('y', 'x'), (y, x)))) Sample plotsfig, axes = plt.subplots(3, 2, figsize=(8, 8), sharex=True, sharey=True) distance.plot(ax=axes[0, 0]) axes[0, 0].set_title('Default') distance.plot(vmin=0, vmax=12, levels=6, ax=axes[1, 0]) axes[1, 0].set_title('Setting with integer levels') distance.plot(levels=[1, 2, 4, 5, 7, 9], extend='max', cmap='Spectral', ax=axes[0, 1]) axes[0, 1].set_title('Setting with list of levels') flatui = ["#9b59b6", "#3498db", "#95a5a6", "#e74c3c", "#34495e", "#2ecc71"] distance.plot(levels=[1, 2, 4, 5, 7], cmap=flatui, extend='both', ax=axes[1, 1]) axes[1, 1].set_title('Using custom list of colors') distance.plot.contourf(ax=axes[2, 0]) axes[2, 0].set_title('Default contourf') distance.plot.contourf(levels=4, ax=axes[2, 1]) axes[2, 1].set_title('contourf w/ int levels') plt.tight_layout() ``` If the user sets the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
98629509 |