Hi everyone,
I want to change the font family of the plotly figure to ‘Lato’.
In the example below, the font_family of the main figure is changed to ‘Lato’.
However, the colorbar’s title and tick’s font are not changed.
I also tried to change the titlefont in the colorbar dict option, but it was impossible.
Can anyone tell me how to change the colorbar’s font family?
CODE
data=go.Scatter3d(x=df['kmx'].to_list(),y=df['kmy'].to_list(),z=df['dep'].to_list(),mode='markers',marker=dict(size=args['3d_ms'],color=df['dep'].to_list(),colorscale=args['3d_cmap'],line=dict(width=args['3d_mew']),colorbar=dict(title='Depth',thicknes=20)))
fig.update_layout(scene_aspectmode='data',scene=dict(xaxis_title='Easting (km)',yaxis_title='Northing (km)' ,zaxis_title='Depth (km)'),font=dict(color='black',size=15) ,paper_bgcolor="white",scene_camera=camera,showlegend=False,font_family="Lato")