Giter VIP home page Giter VIP logo

Comments (4)

gboeing avatar gboeing commented on May 22, 2024 1

This probably has to do with the matplotlib backend you are using when you execute your script. You might have success if you change the backend you're using when you run the script. For more info see:

Note that the last link contains minimal info, but does indicate that the gtk backend requires an active x-session and isn't compatible with cron jobs -- could explain your trouble running in the script.

from osmnx.

42loop avatar 42loop commented on May 22, 2024

just noticed that output files are generated anyway, so this is of not so big importance for me

from osmnx.

gboeing avatar gboeing commented on May 22, 2024

@42loop did that work?

from osmnx.

42loop avatar 42loop commented on May 22, 2024

i modified ~/.config/matplotlib/matplotlibrc ,
changed
backend :GTKCairo
interactive :False

tried different backends but this seemed to work best on ubuntu

still had to use close=True and show=False to get rid of the window and the error message:

ox.plot_figure_ground(address=place, dist=1000, close=True, show=False, save=True, 
                      filename=fname ,file_format='svg')

from osmnx.

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.