JuliaPy / JuliaPy/PyPlot.jl

colors has no field TwoSlopeNorm

Offen
#581 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
488
Forks
90
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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()
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.