Changeset bbec827 in sasview for guitools/plottables.py
- Timestamp:
- May 1, 2008 5:04:40 PM (16 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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- ddff053
- Parents:
- 34ae302
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/plottables.py
r34ae302 rbbec827 204 204 "title":""} 205 205 self.plottables = {} 206 206 def setGraph(self,listofplottable): 207 self.plottables = listofplottable 207 208 def _make_labels(self): 208 209 # Find groups of related plottables … … 386 387 self._yunit = "" 387 388 389 388 390 def set_View(self,x,y): 389 391 """ Load View """ … … 445 447 dx = None 446 448 dy = None 447 449 ID = "" 448 450 449 451 def __init__(self, x=None, y=None, dx=None, dy=None): … … 611 613 tempy=[] 612 614 tempdy=[] 615 if self.dx==None: 616 self.dx=numpy.zeros(len(self.x)) 617 if self.dy==None: 618 self.dy=numpy.zeros(len(self.y)) 613 619 for i in range(len(self.x)): 614 620 if ( self.x[i] >= xmin ) and ( self.x[i] <= xmax ): … … 635 641 """ 636 642 self.name = "data" 643 self.ID= "" 637 644 self.x = x 638 645 self.y = y … … 673 680 self.y = y 674 681 self.dy = dy 675 682 self.ID= "" 683 self.xaxis( 'q', 'A') 684 self.yaxis( 'intensity', 'cm') 676 685 self.view = self.View(self.x, self.y, None, self.dy) 677 686 def render(self,plot,**kw):
Note: See TracChangeset
for help on using the changeset viewer.