home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 223709530

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/issues/866#issuecomment-223709530 https://api.github.com/repos/pydata/xarray/issues/866 223709530 MDEyOklzc3VlQ29tbWVudDIyMzcwOTUzMA== 10050469 2016-06-03T22:26:50Z 2016-06-03T23:08:25Z MEMBER

@shoyer I thought that the colorbar was not very meaningful for contours, but I changed my mind.

[EDIT] I just updated the PR again. See the following example generated with the PR branch:

``` python import numpy as np import matplotlib.pyplot as plt import xarray as xr

x, y = np.meshgrid(np.arange(12), np.arange(12)) z = xr.DataArray(np.sqrt(x2 + y2)) ds = z.to_dataset(name='z')

f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(6, 6)) ds.z.plot.contour(ax=ax1, levels=[4]) ds.z.plot.contour(ax=ax2, levels=[-1, 2, 4, 6, 8]) ds.z.plot.contour(ax=ax3, levels=[4], colors=['k']) ds.z.plot.contour(ax=ax4, levels=[2, 4, 6, 8], colors=['k', 'r', 'g', 'b']) plt.tight_layout() plt.show() ```

I think it's ok now, and the 1-level examples now run just fine.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  158212793
Powered by Datasette · Queries took 79.574ms · About: xarray-datasette