Ignore:
Timestamp:
Sep 15, 2016 6:33:57 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
ef6d1d8
Parents:
ba0dc71
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (08/10/16 09:25:57)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/15/16 06:33:57)
Message:

Set ylim when scale changed to Porod

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/plottables.py

    rcd54205 raa6028c  
    157157        self.prop["xunit_base"] = units 
    158158 
     159    def xlim(self, xlim): 
     160        """ 
     161        Set the limits of the x axis to (min, max). 
     162        """ 
     163        self.prop["xlim"] = xlim 
     164 
    159165    def yaxis(self, name, units): 
    160166        """ 
     
    167173        self.prop["ylabel_base"] = name 
    168174        self.prop["yunit_base"] = units 
     175 
     176    def ylim(self, ylim): 
     177        """ 
     178        Set the limits of the y axis to (min, max). 
     179        """ 
     180        self.prop["ylim"] = ylim 
    169181 
    170182    def title(self, name): 
     
    266278        self.prop = {"xlabel": "", "xunit": None, 
    267279                     "ylabel": "", "yunit": None, 
     280                     "xlim": None, "ylim": None, 
    268281                     "title": ""} 
    269282        self.plottables = {} 
Note: See TracChangeset for help on using the changeset viewer.