Giter Site home page Giter Site logo

Comments (5)

robert-preissl avatar robert-preissl commented on May 24, 2024

I found the issue and posting here in case folks have similar troubles.
It seems that in the latest matplotlib things have changed around the "NavigationToolbar". as a result MatPlotLib could not be loaded. to fix I changed the code in "mat_data_plot.py" from "NavigationToolbar2QTAgg" to "NavigationToolbar2QT". and it works fine now.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

Looks like the code should have accounted for that:

https://github.com/ros-visualization/rqt_common_plugins/blob/master/rqt_plot/src/rqt_plot/data_plot/mat_data_plot.py#L82-L85

Can you describe more about the issue you encountered, in case someone else hits it?

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

That change went in here: https://github.com/ros-visualization/rqt_common_plugins/blob/master/rqt_plot/src/rqt_plot/data_plot/mat_data_plot.py#L82-L85

@dirk-thomas Perhaps the check should be reversed, so we try the new name first? I'm suspecting that we're pulling in a compatibility API or something.

from ros-install-osx.

dirk-thomas avatar dirk-thomas commented on May 24, 2024

The current code already catches the import error and should have fallen back to the suggested import. Therefore I don't see any reason to change the current code.

@robert-preissl If you could provide more information about which version of matplotlib you are using as well as the exact code of rqt_plot that might help identifying why it failed for you.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

My argument is that NavigationToolbar2QTAgg and NavigationToolbar2QT are not exactly aliased to each otherβ€” one is a subclass. So it might be better behaviour to just import NavigationToolbar2QT without the fallback. See the changelog for 1.5.x: http://matplotlib.org/api/api_changes.html#remove-navigationtoolbar2qtagg

@robert-preissl Which version of matplotlib have you got on your system? Can you give us the first few lines of pip show matplotlib for you? I'm on 1.5.1 here.

from ros-install-osx.

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.