home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1119570923

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1119570923 I_kwDOAMm_X85Cu0vr 6218 raise AttributeError(f"{type(self).__name__!r} object " AttributeError: 'QuadMesh' object has no property 'cbar' 97615200 closed 1     1 2022-01-31T15:20:59Z 2022-01-31T16:16:19Z 2022-01-31T16:16:19Z NONE      

What happened?

I was trying to plot panel plots but the cbar is not removing

python raise AttributeError(f"{type(self).__name__!r} object " AttributeError: 'QuadMesh' object has no property 'cbar'

What did you expect to happen?

I am unable to remove the color bar I want to remove the color bar

Minimal Complete Verifiable Example

```python import xarray as xr import cartopy.crs as ccrs from cartopy import feature as cf import matplotlib.pyplot as plt import numpy as np import seaborn as sns

Opening and reading data

data=xr.open_dataset("uvg.nc")

print(data) def main(): x=data.longitude[::5]; y=data.latitude[::5] u=data.u[5,::5,::5]; v=data.v[5,::5,::5] z=data.z[5] ax1 = plt.subplot(3,2,1,projection=ccrs.PlateCarree()) z.plot.pcolormesh(cmap="turbo",vmin=7500,vmax=8500, ax = ax1,cbar=False) ax1.set_extent([60, 100, 38, 0]) ax1.coastlines()

ax1.quiver(x,y,u,v, angles='xy', scale_units='xy', scale=4) plt.show() ```

Relevant log output

python raise AttributeError(f"{type(self).__name__!r} object " AttributeError: 'QuadMesh' object has no property 'cbar'

Anything else we need to know?

No response

Environment

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6218/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 159.298ms · About: xarray-datasette