holoviz / holoviz/hvplot

Contour plot color not encoded with Maplotlib

Open
#1,668 0 comments 0 reactions 0 assignees View on GitHub
backend: matplotlib
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

It works if `c/color` is set to `'air'` but that shouldn't be required.

```python
import hvplot.xarray # noqa
hvplot.extension('matplotlib')

ds = hvplot.sampledata.air_temperature('xarray').sel(time='2014-02-25 12:00')

p = ds.hvplot.contour(
x='lon',
y='lat',
z='air',
# c='air',
levels=list(range(240, 300, 5)),
cmap='plasma_r',
linewidth=1.2,
data_aspect=1,
width=700,
clabel='Air Temperature (K)',
title='Contour Plot (Matplotlib)',
)
p
```

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.