# Colorscale text size

**URL:** <https://community.plotly.com/t/colorscale-text-size/30615>\
**Category:** 📊 Plotly Python\
**Created:** [October 29, 2019, 4:20pm UTC](https://community.plotly.com/t/colorscale-text-size/30615 "2019-10-29T16:20:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [October 29, 2019, 5:01pm UTC](https://community.plotly.com/t/colorscale-text-size/30615/2 "2019-10-29T17:01:57Z")

</div>

Hi @vanis,

Here is an example, with a custom colorbar font size and color. For more attributes see [https://plot.ly/python/reference/#heatmap-colorbar](https://plot.ly/python/reference/#heatmap-colorbar).

```auto
import numpy as np
import plotly.graph_objects as go

z = np.random.rand(10,10)
data = [go.Heatmap(
             z=z, 
             colorscale='Greens', 
             reversescale=True, 
             colorbar=dict(thickness=20,
                           ticklen=3, tickcolor='orange',
                           tickfont=dict(size=14, color='orange')))]
layout = go.Layout(template='none', width=400, height=400, paper_bgcolor='black' )
fig = go.Figure(data=data, layout=layout)

```

![heatmap-tickfont-color](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/7/768396173cf111626235d55f00ea87ceadcf00f4.png)

---

_[View the full topic](https://community.plotly.com/t/colorscale-text-size/30615)._
