home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 248847812

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/1015#issuecomment-248847812 https://api.github.com/repos/pydata/xarray/issues/1015 248847812 MDEyOklzc3VlQ29tbWVudDI0ODg0NzgxMg== 10050469 2016-09-22T09:00:56Z 2016-09-22T09:00:56Z MEMBER

Note that currently the colorbar labelling logic is handed over entirely to matplotlib, so its mpl which decides upon this. With the cbar_kwargs argument you can control this at your whish, so I'm not sure we have to change anything:

``` python from matplotlib import pyplot as plt import xarray as xr

data = xr.DataArray(np.arange(12).reshape((3, 4))10 + 10) levels = np.append(np.arange(10)10 + 10, 115)

f, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(14, 4))

data.plot(ax=ax1, levels=levels) data.plot(ax=ax2, levels=levels, cbar_kwargs={'ticks':levels}) data.plot(ax=ax3, levels=levels, cbar_kwargs={'ticks':levels, 'spacing':'proportional'}) plt.tight_layout() ```

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