Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caefc50

Browse files
committed
Minor edits, removed whitespace
1 parent 1968b09 commit caefc50

File tree

5 files changed

+2
-11
lines changed

5 files changed

+2
-11
lines changed

doc/python/2D-Histogram.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ fig.show()
248248

249249
### Text on 2D Histogram Points
250250

251-
252251
In this example we add text to 2D Histogram points. We use the values from the `z` attribute for the text.
253252

254253
```python

doc/python/annotated-heatmap.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@ jupyter:
3636

3737
### Annotated Heatmaps with plotly.express and px.imshow
3838

39-
40-
These examples use [px.imshow](/python/imshow) to create Annotated Heatmaps. px.imshow is the best way creating heatmaps with z-annotations.
39+
These examples use [px.imshow](/python/imshow) to create Annotated Heatmaps. px.imshow is the recommended way to create heatmaps with z-annotations.
4140

4241

4342
#### Basic Annotated Heatmap for z-annotations
4443

45-
4644
After creating a figure with `px.imshow`, you can add z-annotations with `.update_traces(texttemplate="%{z}")`.
4745

4846
```python
@@ -58,7 +56,6 @@ fig.show()
5856

5957
#### Custom Font
6058

61-
6259
You can make changes to the font using `textfont`. Here we set the font size to 20.
6360

6461
```python

doc/python/colorscales.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ fig.show()
520520

521521
### Color Bar Displayed Horizontally
522522

523-
524523
By default, color bars are displayed vertically. You can change a color bar to be displayed horizontally by setting the `colorbar` `orientation` attribute to `h`.
525524

526525
```python

doc/python/heatmaps.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ fig.show()
8888

8989
### Adding and customizing text on points
9090

91-
9291
You can add text to heatmap points with `.update_traces(texttemplate="%{variable}")`. Here we use the values of the `z` attribute for `variable`. We also customize the font size with `textfont`.
9392

9493
```python
@@ -215,8 +214,7 @@ fig.show()
215214

216215
### Text on Heatmap Points
217216

218-
219-
In this example we add text to heatmap points using `texttemplate`. We use the values of the `text` attribute for the text. We also adjust the font size using `textfont`.
217+
In this example we add text to heatmap points using `texttemplate`. We use the values from the `text` attribute for the text. We also adjust the font size using `textfont`.
220218

221219
```python
222220
import plotly.graph_objects as go

doc/python/histograms.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ fig.show()
210210

211211
### Adding bar text
212212

213-
214213
You can add text to histogram bars using `fig.update_traces(texttemplate="%{variable}")`, where `variable` is the text to add. In this example, we add the y-axis values to the bars. We get these values following the **Accessing the counts (y-axis) values** example above.
215214

216215
```python
@@ -361,7 +360,6 @@ fig.show()
361360

362361
### Histogram Bar Text
363362

364-
365363
You can add text to histogram bars using the `texttemplate` argument. In this example we add the x-axis values as text following the format `%{variable}`. We also adjust the size of the text using `textfont_size`.
366364

367365
```python

0 commit comments

Comments
 (0)