JuliaPy / JuliaPy/PyPlot.jl

colors has no field TwoSlopeNorm

Ouverte
#581 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
488
Forks
90
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi everyone,

It appears that "colors" function imported from matplotlib does not have "Normalize" or "TwoSlopeNorm" field.
Any idea about this?

`using PyPlot`
`vmin, vmax = -1, 1`
`norm = colors.TwoSlopeNorm(vmin=vmin, vcenter=0., vmax=vmax)`

ERROR: type #colors has no field TwoSlopeNorm

Anyways, my goal is to set the colorbar zero at center with symmetric color range.

```
pcolormesh(data, cmap="RdBu_r", norm = norm, shading="auto")
Colorbar()
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.