Changeset c155a16 in sasview for src/sas/sasgui/plottools
- Timestamp:
- Apr 4, 2017 10:06:27 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 463e7ffc
- Parents:
- 6722fae
- Location:
- src/sas/sasgui/plottools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/PlotPanel.py
r198fa76 rc155a16 33 33 from sas.sasgui.guiframe.events import StatusEvent 34 34 from .toolbar import NavigationToolBar, PlotPrintout, bind 35 36 logger = logging.getLogger() 35 37 36 38 def show_tree(obj, d=0): … … 1506 1508 from mpl_toolkits.mplot3d import Axes3D 1507 1509 except: 1508 logg ing.error("PlotPanel could not import Axes3D")1510 logger.error("PlotPanel could not import Axes3D") 1509 1511 self.subplot.figure.clear() 1510 1512 ax = Axes3D(self.subplot.figure) -
src/sas/sasgui/plottools/binder.py
rd7bb526 rc155a16 4 4 import sys 5 5 import logging 6 7 logger = logging.getLogger() 6 8 7 9 class Selection(object): … … 121 123 for cid in self._connections: self.canvas.mpl_disconnect(cid) 122 124 except: 123 logg ing.error("Error disconnection canvas: %s" % sys.exc_value)125 logger.error("Error disconnection canvas: %s" % sys.exc_value) 124 126 self._connections = [] 125 127 -
src/sas/sasgui/plottools/canvas.py
rd7bb526 rc155a16 11 11 from matplotlib.backends.backend_wx import RendererWx 12 12 13 logger = logging.getLogger() 14 13 15 14 16 def draw_image(self, x, y, im, bbox, clippath=None, clippath_trans=None): … … 96 98 dc.DrawBitmap(self.canvas.bitmap, (0, 0)) 97 99 except: 98 logg ing.error(sys.exc_value)100 logger.error(sys.exc_value) 99 101 100 102 # restore original figure resolution … … 207 209 fig.draw(self) 208 210 except ValueError: 209 logg ing.error(sys.exc_value)211 logger.error(sys.exc_value) 210 212 else: 211 213 self._isRendered = False -
src/sas/sasgui/plottools/plottables.py
ra9f579c rc155a16 46 46 import sys 47 47 import logging 48 49 logger = logging.getLogger() 48 50 49 51 if 'any' not in dir(__builtins__): … … 808 810 tempdy.append(self.dy[i]) 809 811 except: 810 logg ing.error("check_data_logX: skipping point x %g", self.x[i])811 logg ing.error(sys.exc_value)812 logger.error("check_data_logX: skipping point x %g", self.x[i]) 813 logger.error(sys.exc_value) 812 814 self.x = tempx 813 815 self.y = tempy … … 838 840 tempdy.append(self.dy[i]) 839 841 except: 840 logg ing.error("check_data_logY: skipping point %g", self.y[i])841 logg ing.error(sys.exc_value)842 logger.error("check_data_logY: skipping point %g", self.y[i]) 843 logger.error(sys.exc_value) 842 844 843 845 self.x = tempx -
src/sas/sasgui/plottools/toolbar.py
rd7bb526 rc155a16 6 6 from matplotlib.backends.backend_wx import _load_bitmap 7 7 import logging 8 9 logger = logging.getLogger() 8 10 9 11 # Event binding code changed after version 2.5 … … 94 96 self._parent.onToolContextMenu(event=event) 95 97 except: 96 logg ing.error("Plot toolbar could not show menu")98 logger.error("Plot toolbar could not show menu") 97 99 98 100 def context_menu(self, event): … … 122 124 except: 123 125 import traceback 124 logg ing.error(traceback.format_exc())126 logger.error(traceback.format_exc()) 125 127 126 128 def copy_figure(self, event):
Note: See TracChangeset
for help on using the changeset viewer.