You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 19.04, Python 3.7.3, OSMnx 0.10, JupyterLab 1.0.4
I requested info on Stackoverflow but got no answer.
I would like to save SVG and PNG based on the same graph. PNG should keep a different road size according to the type (that's why I am using plot_figure_ground), but the roads position and scale should be the same as in the SVG.
According to distance, SVG resizes correctly, while PNG is always 1 square mile. If distance is 1/2 mile, roads are slide to the left and cropped.
Am I doing something wrong here? Is it possible to resize PNG as it is for SVG?
This isn't an SVG vs PNG issue, but it comes down to the fact that you're using two different plotting functions with very different purposes (plot_graph vs plot_figure_ground). Just pass the dist argument into plot_figure_ground to override its 805-meter default parameterization. It's described in the documentation: https://osmnx.readthedocs.io/en/stable/osmnx.html#osmnx.plot.plot_figure_ground
Linux 19.04, Python 3.7.3, OSMnx 0.10, JupyterLab 1.0.4
I requested info on Stackoverflow but got no answer.
I would like to save SVG and PNG based on the same graph. PNG should keep a different road size according to the type (that's why I am using
plot_figure_ground
), but the roads position and scale should be the same as in the SVG.According to
distance
, SVG resizes correctly, while PNG is always 1 square mile. If distance is 1/2 mile, roads are slide to the left and cropped.Am I doing something wrong here? Is it possible to resize PNG as it is for SVG?
The text was updated successfully, but these errors were encountered: