Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Modifying the size of colorbar in 3D Surface Plots

Hi,

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

regards

@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.

2 Likes

thank you it is OK now