-
Notifications
You must be signed in to change notification settings - Fork 83
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
Updated visualization functionality #144
Comments
From discussion with @sablanchard:
|
updated my environment and got stuck with this error. Took me a while to find out about basemap deprecation in favor of Cartopy. As a user point of view, would be great to still have the network.plot() functionality. |
Hi @fillipefeitosa, thanks for the offer! Want to try adjusting Ideally we should keep the same input parameters and return value order, to avoid breaking people's downstream code. At the bottom of this notebook is a working example of plotting a Pandana network without a basemap, using the current Matplotlib: Pandana-demo.ipynb And I think this demo from the UrbanAccess library has an example of using CartoPy to add a basemap layer. @sablanchard updated it just a few weeks ago: urbanaccess/simple_example.ipynb It would be nice to include a CartoPy basemap as an option in |
Thanks for sharing. I will check everything (the code and the options you gave) and get back to you here soon. |
I just PR citing this discussion. Spent some time reading cartpy Docs. I think it is a great option to add in plot() as option. |
Pandana's
network.plot()
function is more or less broken; it relies on a Matplotlib extension called Basemap that's deprecated and now very hard to install. This has been discussed previously in issues #70, #71, #110, and probably others.cc @sablanchard @PyMap
Current solution
You can easily visualize a Pandana network's nodes directly. See the newly updated demo notebook for an example: Pandana-demo.ipynb.
Future work
Regardless, it would be nice to do more to facilitate visualization. Maybe some combination of the following?
Additional demos showing how to plot nodes and edges directly.
Drop the basemap layer from the
network.plot()
function, so that it's only using core Matplotlib. Perhaps make it optional to include a basemap layer using CartoPy, which is the designated replacement for Matplotlib's Basemap extension.Better interoperability with the NetworkX data format, which would allow Pandana users to take advantage of the extensive visualization functionality in libraries like OSMnx.
The text was updated successfully, but these errors were encountered: