- Timestamp:
- 12/17/12 16:28:37 (12 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r2697 r2699 56 56 if isinstance(c,str) and len(c) > 0: 57 57 self.colormap = c.split() 58 59 self.lsalias = {"line": '-', #[1,0],60 "dashdot": '-.', #[4,2,1,2],61 "dashed" : '--', #[4,2,4,2],62 "dotted" : ':', #[1,2],58 # line styles need to be set as a list of numbers to use set_dashes 59 self.lsalias = {"line": [1,0], 60 "dashdot": [4,2,1,2], 61 "dashed" : [4,2,4,2], 62 "dotted" : [1,2], 63 63 "dashdotdot": [4,2,1,2,1,2], 64 64 "dashdashdot": [4,2,4,2,1,2] … … 98 98 self.axes.clear() 99 99 self.color = 0 100 self.linestyle = 0 100 101 self.lines = [] 101 102 self.subplots[self.i]['lines'] = self.lines -
trunk/python/asapplotter.py
r2698 r2699 49 49 self._inikwg = kwargs 50 50 51 # plot settings51 ### plot settings 52 52 self._colormap = None 53 53 self._linestyles = None … … 59 59 self._margins = self.set_margin(refresh=False) 60 60 self._legendloc = None 61 # scantable plot settings61 ### scantable plot settings 62 62 self._panelling = None 63 63 self._stacking = None … … 65 65 self.set_stacking() 66 66 self._hist = rcParams['plotter.histogram'] 67 # scantable dependent settings67 ### scantable dependent settings 68 68 self._data = None 69 69 self._abcunit = None … … 77 77 self._ordinate = None 78 78 self._abcissa = None 79 # cursors for page iteration79 ### cursors for page iteration 80 80 self._startrow = 0 81 81 self._ipanel = -1 … … 274 274 return [] 275 275 276 # forwards to matplotlib axes 276 277 ### Forwards to matplotlib axes ### 277 278 def text(self, *args, **kwargs): 278 279 self._assert_plotter(action="reload") … … 379 380 # end matplotlib.axes fowarding functions 380 381 381 # forwards to matplotlib.Figure.text 382 383 ### Forwards to matplotlib.Figure.text ### 382 384 def figtext(self, *args, **kwargs): 383 385 """ … … 391 393 # end matplotlib.Figure.text forwarding function 392 394 393 # plot setttings 395 396 ### Set Plot parameters ### 394 397 @asaplog_post_dec 395 398 def set_data(self, scan, refresh=True): … … 954 957 return start,end 955 958 956 # reset methods 959 960 ### Reset methods ### 957 961 def _reset(self): 958 962 self._usermask = [] … … 978 982 self._panelrows = [] 979 983 980 # scantable plot methods 984 985 ### Actual scantable plot methods ### 981 986 @asaplog_post_dec 982 987 def plot(self, scan=None): … … 1306 1311 from matplotlib.ticker import MultipleLocator 1307 1312 from numpy import array, pi 1313 if PL.gcf() == self._plotter.figure: 1314 # the current figure is ASAP plotter. Use mpl plotter 1315 figids = PL.get_fignums() 1316 if figids[-1] > 0: 1317 PL.figure(figids[-1]) 1318 else: 1319 PL.figure(1) 1308 1320 if not visible or not self._visible: 1309 1321 PL.ioff() … … 1532 1544 from matplotlib import pylab as PL 1533 1545 from numpy import array, pi 1546 if PL.gcf() == self._plotter.figure: 1547 # the current figure is ASAP plotter. Use mpl plotter 1548 figids = PL.get_fignums() 1549 if figids[-1] > 0: 1550 PL.figure(figids[-1]) 1551 else: 1552 PL.figure(1) 1534 1553 if not visible or not self._visible: 1535 1554 PL.ioff()
Note:
See TracChangeset
for help on using the changeset viewer.