Changeset facf4ca in sasview for src/sas/qtgui/Plotting/Plotter.py
- Timestamp:
- Sep 3, 2018 3:32:31 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- f4a6f2c
- Parents:
- c1cfa80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter.py
r0231f93 rfacf4ca 6 6 import copy 7 7 import matplotlib as mpl 8 import numpy as np 8 9 from matplotlib.font_manager import FontProperties 9 10 from sas.qtgui.Plotting.PlotterData import Data1D … … 130 131 markersize = self._data.markersize 131 132 133 # Include scaling (log vs. linear) 134 ax.set_xscale(self.xscale, nonposy='clip') 135 ax.set_yscale(self.yscale, nonposy='clip') 136 137 # define the ranges 138 self.setRange = SetGraphRange(parent=self, 139 x_range=self.ax.get_xlim(), y_range=self.ax.get_ylim()) 140 132 141 # Draw non-standard markers 133 142 l_width = markersize * 0.4 … … 151 160 linestyle='', label=self._title, picker=True) 152 161 else: 162 dy = self._data.view.dy 163 # Convert tuple (lo,hi) to array [(x-lo),(hi-x)] 164 if dy is not None and type(dy) == type(()): 165 dy = np.vstack((y - dy[0], dy[1] - y)).transpose() 166 153 167 line = ax.errorbar(x, y, 154 yerr=self._data.view.dy, xerr=None, 168 yerr=dy, 169 xerr=None, 155 170 capsize=2, linestyle='', 156 171 barsabove=False, … … 161 176 xlolims=False, xuplims=False, 162 177 label=self._title, 178 zorder=1, 163 179 picker=True) 164 180 … … 183 199 ax.set_xlabel(self.x_label) 184 200 185 # Include scaling (log vs. linear)186 ax.set_xscale(self.xscale)187 ax.set_yscale(self.yscale)188 189 201 # define the ranges 190 self.setRange = SetGraphRange(parent=self,191 x_range=self.ax.get_xlim(), y_range=self.ax.get_ylim())202 #self.setRange = SetGraphRange(parent=self, 203 # x_range=self.ax.get_xlim(), y_range=self.ax.get_ylim()) 192 204 193 205 # refresh canvas
Note: See TracChangeset
for help on using the changeset viewer.