Skip to content

Commit a153bce

Browse files
range_theta docs
1 parent f341549 commit a153bce

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ plotly/tests/test_orca/images/*/tmp
4343
/plotly-package/plotly/tests/test_core/test_offline/plotly.min.js
4444
temp-plot.html
4545
.vscode
46+
doc/python/.ipynb_checkpoints

Diff for: doc/python/polar-chart.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.7
23+
version: 3.6.8
2424
plotly:
2525
description: How to make polar charts in Python with Plotly.
2626
display_as: scientific
@@ -75,6 +75,15 @@ fig.show()
7575
See also the [wind rose page](https://plot.ly/python/wind-rose-charts/) for more wind rose visualizations in polar coordinates.
7676

7777

78+
You can plot less than a whole circle with the `range_theta` argument, and also control the `start_angle` and `direction`:
79+
80+
```python
81+
import plotly.express as px
82+
fig = px.scatter_polar(r=range(0,90,10), theta=range(0,90,10),
83+
range_theta=[0,90], start_angle=0, direction="counterclockwise")
84+
fig.show()
85+
```
86+
7887
## Polar Scatter Plot with go.Scatterpolar
7988

8089
If Plotly Express does not provide a good starting point, you can use the more generic `go.Scatterpolar`. All the options are documented in the [reference page](https://plot.ly/python/reference/#scatterpolar).

0 commit comments

Comments
 (0)