Changeset 1758 for branches/alma
- Timestamp:
- 06/18/10 19:00:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asapplotter.py
r1757 r1758 22 22 self._visible = visible 23 23 self._plotter = self._newplotter(**kwargs) 24 if self._visible and matplotlib.get_backend() == "TkAgg": 25 from asap.casatoolbar import CustomToolbarTkAgg 26 self._plotter.figmgr.casabar = CustomToolbarTkAgg(self) 24 # additional tool bar 25 self._plotter.figmgr.casabar=self._newcasabar() 27 26 28 27 self._panelling = None … … 70 69 from asap.asaplot import asaplot 71 70 return asaplot(**kwargs) 71 72 def _newcasabar(self): 73 backend=matplotlib.get_backend() 74 if self._visible and backend == "TkAgg": 75 from asap.casatoolbar import CustomToolbarTkAgg 76 return CustomToolbarTkAgg(self) 77 else: return None 72 78 73 79 #@print_log_dec
Note:
See TracChangeset
for help on using the changeset viewer.