Commit 5e60893
Fix
The datashader rendering path only applied the `scale` parameter to
circle geometries (Points with radius). Polygon and MultiPolygon
geometries were passed through unscaled. This adds scaling via
`shapely.affinity.scale()` around each geometry's centroid, matching
the existing matplotlib path behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>scale parameter for polygons with datashader (#473)1 parent 61ed9c3 commit 5e60893
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| |||
0 commit comments