[BUG]: Odd polygon in land layer, extending into Canada on US choropleth
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- python
研究方向
從失業率分級著色圖範例開始,檢查 plotly/datasets 儲存庫中參照的 geojson-counties-fips.json。比較西北部的幾何圖形,以及 Oglala Lakota County 和 Kusilvak Census Area 的項目;完成的標準是範例不再顯示該帶狀區域,並且體現出這些郡的變更。
由索引模型根據 Issue 內容生成。
描述
Description
There is an odd band extending from the northwest US into Canada when making a US choropleth. You can see this in the official documentation. I think this stems from the GeoJSON file included in Plotly. The file is very out of date, by the way, with changes to Oglala Lakota County in South Dakota and the Kusilvak Census Area in Alaska not being represented.
I can hide this band in the Python version using visible=False when calling update_geos().
Screenshots/Video
Steps to reproduce
- Create a new Python file
- Paste in the unemployment example from https://plotly.com/python/choropleth-maps/
- Run the python file
Notes
The unemployment example is here for completeness' sake:
from urllib.request import urlopen
import json
with urlopen('https://raw.githubusercontent.com/plotly/datasets/master/geojson-counties-fips.json') as response:
counties = json.load(response)
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/fips-unemp-16.csv",
dtype={"fips": str})
import plotly.express as px
fig = px.choropleth(df, geojson=counties, locations='fips', color='unemp',
color_continuous_scale="Viridis",
range_color=(0, 12),
scope="usa",
labels={'unemp':'unemployment rate'}
)
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
fig.show()
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.9k
- 平均合併
- 14 小時 12 分鐘
- 30 天內合併 PR
- 19
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.py 的其他 Issue
-
[BUG]: Unnecessary `UserWarning` when using `fig.write_image()` with `kaleido.start_sync_server()`可能已有人在做 @jayzhou2309 於 3 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
P3 size: 1 task
難度 2/5 1-3 小時 新手友好度 65/100
plotly/plotly.py#5769 · 1 個 reaction ·
維護者通常 1 天內回覆
-
Remove `@types/plotly.js` dependency可能已有人在做 @Belagum 於 18 天前認領。 未關閉P3 size: 1 task
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
bug P1
難度 1/5 1 小時以內 新手友好度 68/100
維護者通常 1 天內回覆
-
feature P3
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
相似的 Issue
-
docs pydanty:is-working
難度 2/5 1-3 小時 新手友好度 75/100
pydantic/pydantic-ai#9800 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
-
[Bug]: With --api-server-count > 1, gauges such as vllm:num_requests_running have no samples until the first request可能已有人在做 @roy6n23 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
vllm-project/vllm#59988 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
pymc-devs/pymc-examples#897 ·
-
難度 1/5 1 小時以內 新手友好度 91/100