Closed vr00n closed 5 years ago
Same issue here. Removing the line:
axes = [item for sublist in axes for item in sublist]
solved it for me.
EDIT: actually, this only seems to occur with two or fewer cities. Beyond 2 cities, the line is required. I assume this is something to do with plt.subplots
returning different types/shapes depending on the value of figsize
, but am not sure.
@JosephRedfern yep. It lets you iterate through matplotlib axes to plot each individual histogram on. If you don't have multiple histograms to plot, then you can't iterate.
The issue tracker is for reporting bugs and feature requests. For general questions, see the contributing guidelines in CONTRIBUTING.md.
If you're having trouble with OSMnx, first search the previously opened issues to see if the problem has already been noted. If not, fill in the template below. You can delete any sections that don't apply.
Problem description (what did you do, what did you expect to happen, and what actually happened)
When trying to run
17-street-network-orientations.ipynb
, I get an error'PolarAxesSubplot' object is not iterable
What operating system, architecture, Python version, and OSMnx version are you using?
MAC OSX High Sierra v.10.13.15 Python Python 2.7.11 osmnx (0.8.1)
Complete list of your environment's packages and their versions (for example, run
conda list
orpip list
then paste the output below)Code that reproduces the issue