Comments (7)
Hi
you can use geoplotlib.savefig('myfile')
instead of geoplotlib.show()
from geoplotlib.
Thanks a lot! It works, but it generates the messages below. That's not really a problem, but can I suppress this somehow?
%run C:/Users/sjeschonnek/Documents/Network_Research/geoplotlib_ex_flights.py
flightmap.png saved
Traceback (most recent call last):
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\geoplotlib-0.2.0-py2.7.egg\geoplotlib__init__.py", line 30, in runapp
app.start()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\geoplotlib-0.2.0-py2.7.egg\geoplotlib\core.py", line 311, in start
pyglet.app.run()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\pyglet-1.2.2-py2.7.egg\pyglet\app__init_.py", line 143, in run
event_loop.run()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\pyglet-1.2.2-py2.7.egg\pyglet\app\base.py", line 136, in run
self.run_estimated()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\pyglet-1.2.2-py2.7.egg\pyglet\app\base.py", line 165, in run_estimated
timeout = self.idle()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\pyglet-1.2.2-py2.7.egg\pyglet\app\base.py", line 281, in idle
window.flip()
File "C:\Users\sjeschonnek\AppData\Local\Enthought\Canopy\User\lib\site-packages\pyglet-1.2.2-py2.7.egg\pyglet\window\win32__init.py", line 309, in flip
self.context.flip()
AttributeError: 'NoneType' object has no attribute 'flip'
from geoplotlib.
could you provide the minimal source code that produces this issue?
from geoplotlib.
"""
Example of spatial graph
"""
import geoplotlib
from geoplotlib.utils import read_csv
import pyglet
data = read_csv('./data/flights.csv')
geoplotlib.graph(data,
src_lat='lat_departure',
src_lon='lon_departure',
dest_lat='lat_arrival',
dest_lon='lon_arrival',
color='hot_r',
alpha=16,
linewidth=5)
#geoplotlib.show()
geoplotlib.savefig('flightmap4')
from geoplotlib.
The line with "import pyglet" can be removed, and it still happens. I was just trying out things. Thanks a lot for your help!
from geoplotlib.
should be fixed in 7b86203
from geoplotlib.
Thanks, it works fine now!
from geoplotlib.
Related Issues (20)
- Cannot find reference 'util' in __init__.py HOT 1
- partial image by savefig() HOT 1
- OSX NotImplementedError: abstract HOT 11
- How to turn off tile provider ? HOT 1
- way to store the output as a image HOT 3
- Running taxi example crashes python HOT 2
- Plot two sets of data at the same time HOT 1
- Support for gpu graphic cards HOT 1
- Nature of the Data HOT 1
- Tooltip position is off
- custom Heatmap style DotDensity layer
- Coordinates: Order Matters - Longitude then Latitude (updated title) HOT 1
- Support for geopandas
- TypeError: ufunc 'radians' not supported for the input types
- module 'geoplotlib' has no attribute 'utils'
- core.UiManager.Colorbar cannot map from minimal value to maximal value
- Proposing a PR to fix a few small typos
- If you have proxy issues with cartocdn...
- Queue module not supported in Python3
- error: metadata-generation-failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoplotlib.