Fix SyntaxWarnings

This commit is contained in:
Robin Dunn
2019-11-14 12:22:45 -08:00
committed by Scott Talbert
parent 6bf9f07a7b
commit a85a94231b

View File

@@ -1852,12 +1852,12 @@ class PlotCanvas(wx.Panel):
# Get ticks and textExtents for axis if required
xticks = yticks = None
xTextExtent = yTextExtent = (0, 0) # No text for ticks
if self._xSpec is not 'none':
if self._xSpec != 'none':
xticks = self._xticks(xAxis[0], xAxis[1])
# w h of x axis text last number on axis
xTextExtent = dc.GetTextExtent(xticks[-1][1])
if self._ySpec is not 'none':
if self._ySpec != 'none':
yticks = self._yticks(yAxis[0], yAxis[1])
if self.logScale[1]:
# make sure we have enough room to display SI notation.