-
Notifications
You must be signed in to change notification settings - Fork 808
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
AttributeError: 'AxesSubplot' object has no attribute 'set_facecolor' #39
Comments
What version of matplotlib are you using? Note that OSMnx requires matplotlib version 2.0 or higher: Line 57 in b29eea6
|
altgraph (0.13) I have upgraded all the install_requires and extras_require, but it has the same error. |
Try to run the following code in this same notebook: import matplotlib as mpl, matplotlib.pyplot as plt
print(mpl.__version__)
fig, ax = plt.subplots()
ax.set_facecolor('k') Make sure it prints '2.0.0' and that it recognizes that |
HaHa,There are two versions. But now is right. Thank you very much. |
What operating system, architecture, Python version, and OSMnx version are you using?
os 10.12 ,pycharm, python2.7, OSMnx 0.4
Code that reproduces the issue
raceback (most recent call last):
File "/Users/eden/PycharmProjects/examples/09-example-figure-ground.py", line 17, in
fig, ax = ox.plot_figure_ground(point=point, filename=place, network_type='drive', dpi=dpi)
File "/Library/Python/2.7/site-packages/osmnx/plot.py", line 706, in plot_figure_ground
show=show, save=save, close=close, filename=filename, file_format=file_format, dpi=dpi)
File "/Library/Python/2.7/site-packages/osmnx/plot.py", line 256, in plot_graph
ax.set_facecolor(bgcolor)
AttributeError: 'AxesSubplot' object has no attribute 'set_facecolor'
The text was updated successfully, but these errors were encountered: