Skip to content

wwplot is broken: AttributeError: 'Legend' object has no attribute 'set_draggable' #2

@yurivict

Description

@yurivict

While updating the FreeBSD port I found this problem:

$ wwplot 
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
Traceback (most recent call last):
  File "/usr/local/bin/wwplot", line 20, in <module>
    AW = ApplicationWindow()
  File "/usr/local/lib/python3.7/site-packages/WWplot/application_window.py", line 62, in __init__
    self.add_tab()
  File "/usr/local/lib/python3.7/site-packages/WWplot/application_window.py", line 116, in add_tab
    self.update_plot()
  File "/usr/local/lib/python3.7/site-packages/WWplot/application_window.py", line 168, in update_plot
    self.plot.redraw_canvas()
  File "/usr/local/lib/python3.7/site-packages/WWplot/plot.py", line 107, in redraw_canvas
    self.axes.legend().set_draggable(True)  # has to be called after tight_layout
AttributeError: 'Legend' object has no attribute 'set_draggable'

Both 0.0.7 and 0.0.8 have this problem.

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