GithubHelp home page GithubHelp logo

Comments (4)

ljwolf avatar ljwolf commented on May 18, 2024

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.

jorisvandenbossche avatar jorisvandenbossche commented on May 18, 2024

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.

jorisvandenbossche avatar jorisvandenbossche commented on May 18, 2024

(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.

darribas avatar darribas commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.