-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better support for lines on maps in Plotly Express #2601
Comments
See also plotly/plotly_express#29 |
This will be a game changing enhancement since it will make plotly a viable alternative for representing geospatial data instead of GIS software. |
Thanks for the enthusiasm @harisbal! What would you see the function signature looking like in this case? I hesitate a bit about making |
Yes, this is indeed a limitation we have right now... we don't provide fine-grained control over width and color per segment, but per line we could. |
@alexcjohnson what's your instinct on something like this? a new PX function or a new |
@nicolaskruchten Feels like various other of the args to |
Actually all the other args except lat/Lon/line_group would work! Color, line_width, eventually facet etc |
Oh OK, I thought it seemed like the data structure would be fairly different so wouldn't support other args the same way - but if it does, then great, just overload the same function! |
I believe that a So in case someone has data as points:
And in case someone has a geodataframe with linestrings:
I'd be glad to help if required. Cheers |
Just wanted to give this a bump! Out-of-the-box support for shapely/GeoPandas Thanks for all the work so far though! 🙂 |
I'm bumping too. It would be fantastic ! |
I want to ask if there is any progress for this feature, because it sounds really good to have support for LineStrings to easily plot a GeoPandas Dataframe. I would appreciate it. |
@archmoj will your recent work address this? |
Today,
px.line_mapbox
andpx.line_geo
expect rows which are points, which are then split into groups and connected by lines.In most GIS formats, however, as wrapped by GeoPandas, the entire line feature is often stored in a single row, just like choropleth geometries. We should have either a new pair of PX functions for this (
px.line_feature_mapbox
?) or an option to the existing functions (px.line_mapbox(geojson=<geojson>)
) to support this option out of the box.The text was updated successfully, but these errors were encountered: