Changeset 4759 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 10, 2021 5:12:01 PM (10 months ago)
Author:
toby
Message:

wx4.1 & mpl3.3 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4752 r4759  
    1081510815    #GSASIIpath.IPyBreak()
    1081610816    for txt in legend.get_texts():
    10817         if mplv[0] >= 3 and mplv[1] >= 3:
     10817        try: # as of MPL 3.3.2 this has not changed
     10818            txt.set_picker(4)
     10819        except AttributeError:
    1081810820            txt.set_pickradius(4)
    10819         else:
    10820             txt.set_picker(4)
    1082110821    if new:
    1082210822        legend.figure.canvas.mpl_connect('pick_event',onLegendPick)
Note: See TracChangeset for help on using the changeset viewer.