Skip to content

If Matplotlib is a broken version, how to change snr_plot.py instead reinstall Matplotlib? #5

Description

@YuLiumt

Matplotlib issues - 'FigureCanvasTkAgg' object has no attribute 'show'
We can change line in snr_plot.py from self.canvas.show() to self.canvas.draw()

But, still another issues - 'SNREmissivity' object has no attribute 'widgets'
I don't know how to modify it

Activity

  1. denisleahy commented on Feb 25, 2019

    @denisleahy
    Owner

    I am just about to replace with a new version of the code. This will happen by the end of the week. I am no longer supporting the Windows executable version, only the python version of the code.

  2. YuLiumt commented on Feb 26, 2019

    @YuLiumt
    Author

    Thank you.

  3. Bladestorm25 commented on May 3, 2020

    @Bladestorm25

    Hi I also have the same issue - 'SNREmissivity' object has no attribute 'widgets'
    Im running it via spyder python. Thanks

  4. BrysonLawton commented on Aug 19, 2026

    @BrysonLawton

    Hello @Bladestorm25 and @YuLiumt, in case after all these years you still need an answer, I was just running it and found a fix for the no attributes 'widgets' error you shared above. Its summary I'll share below, and in another issue I just created, you should be able to find what you need to get SNRPY running with 2026 imports. For those who come after 👍

    Fix for SNREmissivity Missing widgets

    If clicking Emissivity produces:

    AttributeError: 'SNREmissivity' object has no attribute 'widgets'
    

    Open PythonVersion/snr_calc.py and find this line inside SNREmissivity.__init__:

    self.root = root

    Add the following line beneath it:

    self.widgets = snr.widgets

    The result should be:

    self.root = root
    self.widgets = snr.widgets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions