Skip to content

Commit d77563c

Browse files
chekosclaude
andcommitted
Use dots_per_value=500 in code example to match preview chart
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5ef46e7 commit d77563c

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

docs/guides/spatial.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ print(gdf.head())
726726
```
727727

728728
```python
729-
# Convert to dots (1 dot = 100 people).
729+
# Convert to dots (1 dot = 500 people).
730730
dots = as_dot_density(
731731
gdf,
732732
values={
@@ -735,24 +735,24 @@ dots = as_dot_density(
735735
"B03002_006E": "Asian",
736736
"B03002_012E": "Hispanic",
737737
},
738-
dots_per_value=100,
738+
dots_per_value=500,
739739
seed=42,
740740
)
741741
print(dots.head(10))
742742
```
743743

744744
```
745745
geometry value
746-
0 POINT (-122.22019 37.86251) White
747-
1 POINT (-122.22283 37.87751) White
748-
2 POINT (-122.24249 37.87414) White
749-
3 POINT (-122.23136 37.87632) White
750-
4 POINT (-122.22468 37.86307) White
751-
5 POINT (-122.2316 37.85667) White
752-
6 POINT (-122.22776 37.8668) White
753-
7 POINT (-122.2251 37.86543) White
754-
8 POINT (-122.23612 37.8662) White
755-
9 POINT (-122.21817 37.87009) White
746+
0 POINT (-122.22019 37.86309) White
747+
1 POINT (-122.24366 37.86566) White
748+
2 POINT (-122.21322 37.858) White
749+
3 POINT (-122.22063 37.86959) White
750+
4 POINT (-122.24579 37.84953) White
751+
5 POINT (-122.25481 37.84437) White
752+
6 POINT (-122.25605 37.83734) White
753+
7 POINT (-122.24739 37.84439) White
754+
8 POINT (-122.24799 37.84545) White
755+
9 POINT (-122.25714 37.84095) White
756756
```
757757

758758
```python
@@ -781,10 +781,8 @@ chart
781781

782782
!!! example "Interactive preview — dot density map of Alameda County, CA (sample data)"
783783

784-
This preview uses `dots_per_value=500` (1 dot = 500 people) for rendering
785-
performance. The code example above uses `dots_per_value=100` for finer
786-
detail. The spatial distribution of dots reveals neighborhood-level
787-
patterns of racial and ethnic composition.
784+
Each dot represents 500 people. The spatial distribution of dots reveals
785+
neighborhood-level patterns of racial and ethnic composition.
788786

789787
```vegalite
790788
{

0 commit comments

Comments
 (0)