-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Unable to set color
for Path rendered from Polygons
#1412
Comments
Have you tried Also, can you share a minimal GDF? For bokeh, have you tried clearing all output, restarting the kernel, saving, exiting, re-opening, and running? I suspect it's related to: #1359 |
Here's the shapefile: https://drive.google.com/file/d/1B6Mu-7hSmf5r91xqWbqBHUTxm2R0rCur/view?usp=sharing |
Running a clean, restarted notebook with the following code doesn't produce any output. import geopandas as gp
import hvplot.pandas
import holoviews as hv
gdf = gp.read_file("quad-hex.shp")
gdf.hvplot.paths() This occurs with rasterize set to The same code using import geopandas as gp
import hvplot.pandas
import holoviews as hv
gdf = gp.read_file("quad-hex.shp")
hv.extension("matplotlib")
gdf.hvplot.paths() |
Both of those parameters don't impact the plot. The same "blue" one is rendered. |
Could be related to #792 |
Possibly, there's some strange behavior when I set hv.extension("matplotlib")
gdf.hvplot.paths(geo=True, title="Geo True") + gdf.hvplot.paths(geo=False, title="Geo False") |
Creating a # GeoDataFrame containing the LINEARRING of each Polygon
gdf_exterior = gp.GeoDataFrame({"geometry": gdf[['geometry']].exterior.values})
hv.extension("matplotlib")
gdf_exterior.hvplot.paths(color='red') |
Software Version Info
Software Version Info
Description of expected behavior and the observed behavior
I am attempting to use
hvPlot
to plot the edges of Polygons stored in aGeoDataFrame
usinggdf.hvplot.paths()
. I would like to simply change the color of the edges.Complete, minimal, self-contained example code that reproduces the issue
This is all with the
matplotlib
backend. Usingbokeh
actually makes the Paths not show up at all.The text was updated successfully, but these errors were encountered: