gboeing / osmnx-examples

Gallery of OSMnx tutorials, usage examples, and feature demonstations.
https://osmnx.readthedocs.io
MIT License
1.52k stars 521 forks source link

Fix for displaying charts of just 1 row or column #16

Closed emilykl closed 6 years ago

emilykl commented 6 years ago

The original code has a bug where if the layout has just one row or column, the axes list has a lower dimensionality, which causes the following code to fail.

This pull request fixes that bug, as well as fixes the title positioning for 1-row charts. The title font size and position are chosen as a function of the number of rows in the chart.

gboeing commented 6 years ago

dimensionality should be fixed in 58519c6e3b830a97b8994563805f51dc72ae2d9f