STY: pass flake8 tests
@@ -18,7 +18,6 @@ from subprocess import Popen
from matplotlib.pyplot import (figure, subplot, show, colorbar, axes, Circle,
savefig, close)
import matplotlib.colors as colors
-from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.axes_grid1 import make_axes_locatable
from .shapes import frame_center
@@ -327,7 +326,7 @@ def pp_subplots(*data, **kwargs):
pxscale = kwargs.get('pxscale', 0.01) # default for Keck/NIRC2
angscale = kwargs.get('angscale', False)
- if angscale != False:
+ if angscale:
print("`Pixel scale set to {}`".format(pxscale))
show_axis = kwargs.get('axis', True)
@@ -480,7 +479,7 @@ def pp_subplots(*data, **kwargs):
if save:
savefig(save, dpi=dpi, bbox_inches='tight', pad_inches=0,
transparent=True)
- close();
+ close()
if getfig:
return fig
else:
@@ -533,7 +532,8 @@ def plot_surface(image, center_xy=None, size=15, output=False, title=None,
else: # otherwise, size is even
x = np.outer(np.arange(0, size+1, 1), np.ones(size+1))
y = x.copy().T
- z = image[cy-size//2: cy+size//2+1, cx-size//2: cx+size//2+1]
+ z = image[cy - size//2: cy + size//2 + 1,
+ cx - size//2: cx + size//2 + 1]
else:
cy, cx = frame_center(image)
if size is not None:
@@ -565,11 +565,3 @@ def plot_surface(image, center_xy=None, size=15, output=False, title=None,
if output:
return x, y, z
-
-
-
-
-
-
-
-
