Skip to content

Commit 597dcc3

Browse files
version note
1 parent 188a6dc commit 597dcc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: doc/python/facet-plots.md

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ fig.show()
8585

8686
### Adding Lines and Rectangles to Facet Plots
8787

88+
*introduced in plotly 4.12*
89+
8890
It is possible to add [labelled horizontal and vertical lines and rectangles](/python/horizontal-vertical-shapes/) to facet plots using `.add_hline()`, `.add_vline()`, `.add_hrect()` or `.add_vrect()`. The default `row` and `col` values are `"all"` but this can be overridden, as with the rectangle below, which only appears in the first column.
8991

9092
```python
@@ -105,6 +107,8 @@ fig.show()
105107

106108
### Adding the Same Trace to All Facets
107109

110+
*introduced in plotly 4.12*
111+
108112
The `.add_trace()` method can be used to add a copy of the same trace to each facet, for example an overall linear regression line as below. The `legendgroup`/`showlegend` pattern below is recommended to avoid having a separate legend item for each copy of the trace.
109113

110114
```python

0 commit comments

Comments
 (0)