Skip to content
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

Sanskey does not accept linestyle argument #295

Open
ozak opened this issue May 23, 2024 · 0 comments
Open

Sanskey does not accept linestyle argument #295

ozak opened this issue May 23, 2024 · 0 comments

Comments

@ozak
Copy link

ozak commented May 23, 2024

According to the documentation, one should be able to set the linestyle in sanskey, but it generates an error. E.g., when running

import geopandas as gpd
import geoplot as gplt
import geoplot.crs as gcrs
import matplotlib.pyplot as plt

dc_roads = gpd.read_file(gplt.datasets.get_path('dc_roads'))

gplt.sankey(dc_roads,             
            projection=gcrs.AlbersEqualArea(),            
            color='black',
            linestyle='-.'
)
plt.title("Streets in Washington DC by Average Daily Traffic, 2015")

I get

image

I also tried using the kwargs dictionary as suggested in the docs/help, but still get an error:

gplt.sankey(dc_roads,             
            projection=gcrs.AlbersEqualArea(),            
            color='black',
            kwargs={'linestyle':'-.'}
)
image

Did I misunderstand the documentation or is there something wrong? Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant