JuliaPy / JuliaPy/PyPlot.jl

colors has no field TwoSlopeNorm

未关闭
#581 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
488
派生
90
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。