Opened 3 years ago

Last modified 3 years ago

#1266 new defect

matplotlib has remove hold() method

Reported by: pkienzle Owned by:
Priority: major Milestone: SasView 4.3.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


sasview 4.x, recent versions of matplotlib. Don't know if ESS gui uses hold().

With a recent matplotlib package from anaconda I get the following error:

Traceback (most recent call last):
  File "/Users/pkienzle/Source/sasview/src/sas/sasgui/guiframe/local_perspectives/plotting/", line 326, in _on_plot_event
    new_panel = self.create_1d_panel(data, group_id)
  File "/Users/pkienzle/Source/sasview/src/sas/sasgui/guiframe/local_perspectives/plotting/", line 197, in create_1d_panel
    ytransform=ytransform, style=wx.RAISED_BORDER)
  File "/Users/pkienzle/Source/sasview/src/sas/sasgui/guiframe/local_perspectives/plotting/", line 92, in __init__
  File "/Users/pkienzle/Source/sasview/src/sas/sasgui/plottools/", line 314, in render
  File "/Users/pkienzle/Source/sasview/src/sas/sasgui/plottools/", line 1237, in clear
AttributeError: 'AxesSubplot' object has no attribute 'hold'

They did warn us it was going away eventually:

Change History (1)

comment:1 Changed 3 years ago by Paul Kienzle <pkienzle@…

In 9305b463663a5933a89dce367a0dc29fc9d712e8/sasview:

matplotlib hold now permanently set to True. Refs #1266.

Note: See TracTickets for help on using tickets.