Changeset 3901e7c in sasview for src/sas/sasgui/guiframe


Ignore:
Timestamp:
Jul 11, 2016 4:36:55 AM (8 years ago)
Author:
lewis
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e02d8f6
Parents:
2196f102
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/04/16 11:35:57)
git-committer:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/11/16 04:36:55)
Message:

Allow inputting of qmin and qmax, and plot them on the graph as vertical lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py

    rd85c194 r3901e7c  
    222222            values = [max(x_data.min(), float(ctrl[0].GetValue())), 
    223223                      min(x_data.max(), float(ctrl[1].GetValue()))] 
     224            if len(ctrl) == 3: 
     225                colors.append('purple') 
     226                values.append(min(x_data.max(), float(ctrl[2].GetValue()))) 
    224227            if self.ly == None: 
    225228                self.ly = [] 
Note: See TracChangeset for help on using the changeset viewer.