在曲线上控制轮廓水平和线条

时间:2017-06-27 19:58:50

标签: python plotly contour

我的轮廓图有自定义色阶。

colorscale = [
[0, 'blue'],
[0.28, 'green'],
[0.50, 'yellow'],
[0.65, 'orange'],
[0.75, 'Purple'],
[0.82, 'maroon'],
[0.88, 'magenta'],
[0.93, 'red'],
[0.97, 'brown'],
[1, 'black']]

Plotly为蓝色域生成前几个轮廓线。如何隐藏它们?

我尝试使用不同的参数,例如

zauto=False,
zmin=0.28,
zmax=1, 
contours=dict(start=0.28, end=1, size=0.1, showlines=True).

大小设置每个轮廓级别之间的步长。所以我写道:

contours=dict(size=[0.28, 0.22, 0.15, 0.1, 0.07, 0.06, 0.05, 0.04, 0.03], showlines=True)

contours=dict(size=[0.28, 0.50, 0.65, 0.75, 0.82, 0.88, 0.93, 0.97, 1], showlines=True)

希望前两个轮廓水平之间的步长为0.28,水平#2和水平#3之间的步长为0.22,依此类推,但它不起作用。

line=dict(color='blue', width=0.2) is also not a good solution.

我想要这样的事情:

for The_First_N_Contour_Levels:
    contours = dict(showlines=False)

我使用了plotly reference documentation

0 个答案:

没有答案
相关问题