Comments (4)
This resetting of extent also annoys me often when it happens...
Should be two lines to pull off the axis at the start and put it back on at the end.
from contextily.
There is already a PR doing that :) https://github.com/darribas/contextily/pull/38 (it's what I originally did in the example added to the geopandas docs)
In that PR, I didn't make it an option, but just by default reset to the original extent.
If a user wants a bigger extent than its data, you can set the xlim/ylims first before calling add_basemap.
from contextily.
(something else: we could maybe look into matplotlib APIs to see if it is possible to let it automatically re-draw (and thus also re-download tiles if needed) when the extent is changed, either programmatically, or in the interactive modus)
from contextily.
Quick update on this: I've had a look at #38 and looks good except an error that comes up on one test. I have also added the option to not reset the extent in case the user so wants (not the default). Once these two minor issues are ready to go, I'm happy to merge the PR.
from contextily.
Related Issues (20)
- BUG: HTTPError for points close together
- CI failing HOT 3
- Force basemap to be greyscale HOT 3
- Caching and terms of service? HOT 2
- Wrong lat and lon from contextily bbox HOT 3
- No Gaode provider? HOT 2
- attributions severely wrapped upon savefig HOT 1
- Mistake in matching basemap through contextily HOT 2
- Reset_extent is not behaving as expected with local file when raster extents is smaller than the shape extents. HOT 2
- Add the ability to fetch tiles in parallel HOT 8
- Add timeout parameter to add_basemap HOT 1
- Save as editable object HOT 2
- Change the default basemap from Stamen HOT 2
- ValueError: could not broadcast input array from shape (256,256,4) into shape (512,512,4) HOT 18
- Input array error when loading contextily basemap HOT 1
- SSLError HOT 1
- speed up download for "infinite" basemap HOT 9
- How to clip background image to circle? HOT 1
- Stamen not available as a valid provider HOT 2
- `TypeError` raised in `add_basemap()` as shown in Geopandas contextily docs HOT 5
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 contextily.