Changeset 235f514 in sasview for src/sas/sasgui/plottools/PlotPanel.py
- Timestamp:
- Apr 9, 2017 3:46:10 AM (7 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- ac07a3a
- Parents:
- 5b2b04d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/PlotPanel.py
r959eb01 r235f514 418 418 """ 419 419 ax = event.inaxes 420 if ax ==None:420 if ax is None: 421 421 return 422 422 # Event occurred inside a plotting area … … 479 479 self.xFinal, self.yFinal = event.xdata, event.ydata 480 480 # Check whether this is the first point 481 if self.xInit ==None:481 if self.xInit is None: 482 482 self.xInit = self.xFinal 483 483 self.yInit = self.yFinal … … 1367 1367 if dy != None and type(dy) == type(()): 1368 1368 dy = nx.vstack((y - dy[0], dy[1] - y)).transpose() 1369 if dx == None and dy ==None:1369 if dx is None and dy is None: 1370 1370 self.subplot.plot(x, y, color=self._color(color), 1371 1371 marker=self._symbol(symbol), … … 1443 1443 c = self._color(color) 1444 1444 # If we don't have any data, skip. 1445 if self.data ==None:1445 if self.data is None: 1446 1446 return 1447 1447 if self.data.ndim == 1: … … 1519 1519 self.subplot.set_axis_off() 1520 1520 1521 if cbax ==None:1521 if cbax is None: 1522 1522 ax.set_frame_on(False) 1523 1523 cb = self.subplot.figure.colorbar(im, shrink=0.8, aspect=20) … … 1541 1541 """ 1542 1542 # No qx or qy given in a vector format 1543 if self.qx_data == None or self.qy_data ==None \1543 if self.qx_data is None or self.qy_data is None \ 1544 1544 or self.qx_data.ndim != 1 or self.qy_data.ndim != 1: 1545 1545 # do we need deepcopy here? … … 1601 1601 """ 1602 1602 # No qx or qy given in a vector format 1603 if self.qx_data == None or self.qy_data ==None \1603 if self.qx_data is None or self.qy_data is None \ 1604 1604 or self.qx_data.ndim != 1 or self.qy_data.ndim != 1: 1605 1605 # do we need deepcopy here? … … 1652 1652 """ 1653 1653 # No image matrix given 1654 if image ==None or np.ndim(image) != 2 \1654 if image is None or np.ndim(image) != 2 \ 1655 1655 or np.isfinite(image).all() \ 1656 or weights ==None:1656 or weights is None: 1657 1657 return image 1658 1658 # Get bin size in y and x directions … … 1940 1940 """ 1941 1941 """ 1942 if self.parent ==None:1942 if self.parent is None: 1943 1943 return 1944 1944 # get current caption
Note: See TracChangeset
for help on using the changeset viewer.