Changeset 7fff5cd in sasview
- Timestamp:
- Apr 2, 2009 2:19:59 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:
- 0e2aa40
- Parents:
- 77e23a2
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter2D.py
r208de57 r7fff5cd 151 151 #TODO: Should re-factor this 152 152 ## render the graph with its new content 153 154 #data2D: put 'Pixel (Number)' for axis title and unit in case of having no detector info and none in _units 155 if len(self.data2D.detector) < 1: 156 if len(event.plot._xunit)< 1 and len(event.plot._yunit) < 1: 157 event.plot._xaxis = 'Pixel' 158 event.plot._yaxis = 'Pixel' 159 event.plot._xunit = 'Number' 160 event.plot._yunit = 'Number' 161 153 162 self.graph.xaxis(event.plot._xaxis, event.plot._xunit) 154 163 self.graph.yaxis(event.plot._yaxis, event.plot._yunit) … … 181 190 182 191 slicerpop.AppendSeparator() 183 if len(self.data2D.detector) >0:192 if len(self.data2D.detector) == 1: 184 193 185 194 item_list = self.parent.get_context_menu(self.graph) -
guiframe/local_perspectives/plotting/plotting.py
rca94880 r7fff5cd 121 121 # Create a new plot panel if none was available 122 122 if not is_available: 123 print"event.plot",hasattr(event.plot,'data')123 #print"event.plot",hasattr(event.plot,'data') 124 124 if not hasattr(event.plot,'data'): 125 125 from Plotter1D import ModelPanel1D
Note: See TracChangeset
for help on using the changeset viewer.