home / github / pull_requests

Menu
  • Search all tables
  • GraphQL API

pull_requests: 72860302

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
72860302 MDExOlB1bGxSZXF1ZXN0NzI4NjAzMDI= 872 closed 0 ENH: more control on colorbar 10050469 Addresses https://github.com/pydata/xarray/issues/752 and allows to pass kwargs to colorbar. For example, it is now possible to do: ``` 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(x**2 + y**2)) ds = z.to_dataset(name='z') fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(12, 12)) ds.z.plot.contourf(ax=ax1) ds.z.plot.contourf(ax=ax2, cbar_kwargs={'orientation':'horizontal', 'label':'MyLabel'}) ds.z.plot.contourf(ax=ax3, cbar_ax=ax4, cbar_kwargs={'orientation':'horizontal', 'label':'Funny Cbar', 'drawedges':True}) plt.tight_layout() plt.show() ``` ![test_cbar](https://cloud.githubusercontent.com/assets/10050469/15856312/f6eb5a04-2cb4-11e6-81b7-a5420b5c8653.png) 2016-06-07T11:44:52Z 2017-08-10T15:49:55Z 2016-06-09T15:52:46Z 2016-06-09T15:52:46Z 450ac8fb16bec935a18ff3155673dff82208d3fe     0 dc1e3fab1fccae0085641a7bd181d7615c87d3f1 2448b5b3fa3647419df8f14d60f1c32b9d002af7 MEMBER   13221727 https://github.com/pydata/xarray/pull/872  

Links from other tables

  • 1 row from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 0.857ms