File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ jupyter:
5
5
text_representation :
6
6
extension : .md
7
7
format_name : markdown
8
- format_version : ' 1.2 '
9
- jupytext_version : 1.6.0
8
+ format_version : ' 1.3 '
9
+ jupytext_version : 1.13.4
10
10
kernelspec :
11
- display_name : Python 3
11
+ display_name : Python 3 (ipykernel)
12
12
language : python
13
13
name : python3
14
14
language_info :
@@ -20,7 +20,7 @@ jupyter:
20
20
name : python
21
21
nbconvert_exporter : python
22
22
pygments_lexer : ipython3
23
- version : 3.7.6
23
+ version : 3.7.11
24
24
plotly :
25
25
description : How to make Heatmaps in Python with Plotly.
26
26
display_as : scientific
@@ -197,6 +197,25 @@ fig.update_layout(
197
197
fig.show()
198
198
```
199
199
200
+ ### Text on Heatmap Points
201
+
202
+
203
+ In this example we add text to heatmap points. We use the values from the ` text ` attribute for the text.
204
+
205
+ ``` python
206
+ import plotly.graph_objects as go
207
+ from plotly import data
208
+
209
+ df = data.tips()
210
+
211
+ fig = go.Figure(go.Histogram2d(
212
+ x = df.total_bill,
213
+ y = df.tip,
214
+ texttemplate = " %{z} "
215
+ ))
216
+ fig.show()
217
+ ```
218
+
200
219
### Heatmap and datashader
201
220
202
221
Arrays of rasterized values build by datashader can be visualized using
You can’t perform that action at this time.
0 commit comments