- Timestamp:
- 12/10/04 12:16:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r116 r124 377 377 """ 378 378 validcol = {'Beam':self.nbeam(),'IF':self.nif(),'Pol':self.npol()} 379 379 380 validyax = ['spectrum','tsys'] 380 381 if not self._p: … … 390 391 print "Only one integration. Can't plot." 391 392 return 393 self._p.hold() 394 self._p.clear() 392 395 if panel == 'Time': 393 396 npan = self.nrow() 394 self._p.hold() 395 self._p.clear() 397 self._p.set_panels(rows=npan) 396 398 xlab,ylab,tlab = None,None,None 397 vb = self._verbose 399 vb = self._verbose() 398 400 self._verbose(False) 399 401 sel = self.get_selection() 400 402 for i in range(npan): 403 self._p.subplot(i) 401 404 for j in range(validcol[col]): 402 405 x = None … … 404 407 m = None 405 408 tlab = self._getsourcename(i) 409 import re 410 tlab = re.sub('_S','',tlab) 406 411 if col == 'Beam': 407 412 self.setbeam(j) … … 426 431 self._p.set_line(label=llab) 427 432 self._p.plot(x,y,m) 428 self._p.set_axes('xlabel',xlab)429 self._p.set_axes('ylabel',ylab)430 self._p.set_axes('title',tlab)433 self._p.set_axes('xlabel',xlab) 434 self._p.set_axes('ylabel',ylab) 435 self._p.set_axes('title',tlab) 431 436 self._p.release() 432 437 self.set_selection(sel[0],sel[1],sel[2])
Note:
See TracChangeset
for help on using the changeset viewer.