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

PolarAxesSubplot' object has no attribute 'flat #18

Closed
rs06085 opened this issue Jul 29, 2018 · 3 comments
Closed

PolarAxesSubplot' object has no attribute 'flat #18

rs06085 opened this issue Jul 29, 2018 · 3 comments

Comments

@rs06085
Copy link

rs06085 commented Jul 29, 2018

Hello,
when I am trying to run your example, I receive the following error:

AttributeError: 'PolarAxesSubplot' object has no attribute 'flat'

I use python 3.6 version

Thanks in advance

@gboeing gboeing closed this as completed Jul 29, 2018
@wetneb
Copy link

wetneb commented Aug 13, 2018

As far as I can tell, this issue is genuinely about osmnx-examples, specifically about the example on street orientations. The bug appears when the dictionary of city names has only one element. (Just take the existing script, remove all but one city, and run it.)

@gboeing
Copy link
Owner

gboeing commented Aug 13, 2018

@wetneb @rs06085 this isn't a bug... the script works fine as-is. It takes multiple places, constructs graphs, and plots them. If you want to change how this operates (i.e., a single city instead), you'll have to change how this is handled throughout the script, including for instance how the plotting logic flattens the numpy array of matplotlib axes since it expects more than 1.

@gboeing
Copy link
Owner

gboeing commented Aug 15, 2018

OP moved this to here: gboeing/osmnx#192

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

3 participants