Modifying the size of colorbar in 3D Surface Plots


#1

Hi,

How can I modify the size of colorbar in 3D Surface Plots?

regards


#2

@doga

You can modify the length and thickness of the colorbar, inserting the key colorbar in the surface type trace definition:

trace=dict(type='surface',
           .
           .
           .
           colorbar=dict(lenmode='fraction', len=0.75, tickness=20)
          )

This means that the colorbar is 75% from the plot height.


#3

thank you it is OK now