Skip to content

Commit

Permalink
Merge pull request #199 from spacetelescope/acs_pep8_fix
Browse files Browse the repository at this point in the history
Pep8 errors fixed for plot.py and plots.py in acs_pixel_area_maps.
  • Loading branch information
dulude authored Feb 14, 2024
2 parents 0282f13 + 8a360e8 commit 44f26fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 6 additions & 4 deletions notebooks/ACS/acs_pixel_area_maps/p_module/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
from astropy.visualization import (ZScaleInterval, LinearStretch,
ImageNormalize)

def ds9_imitate(ax,image):

def ds9_imitate(ax, image):
norm = ImageNormalize(image,
interval=ZScaleInterval(),
stretch=LinearStretch())

ax.imshow(image, cmap='bone', norm=norm, origin = 'lower')
ax.imshow(image, cmap='bone', norm=norm, origin='lower')


def triple_pam_plot(flt_file, pam_file, figtitle):
fl_img = fits.getdata(flt_file, ext=1)
pam_img = fits.getdata(pam_file)

fig = plt.figure(figsize=(20,4))
fig.suptitle(figtitle,fontsize=20)
fig = plt.figure(figsize=(20, 4))
fig.suptitle(figtitle, fontsize=20)

ax = fig.add_subplot(1, 3, 1)
ds9_imitate(ax, fl_img)
Expand Down
4 changes: 1 addition & 3 deletions notebooks/ACS/acs_pixel_area_maps/p_module/plots.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from astropy.io import fits

import plotly
import plotly.graph_objs as go
import numpy as np

Expand Down Expand Up @@ -38,4 +36,4 @@ def star_2d(img, y, x, size=50, low=10, high=150, spacing=20):

fig = go.Figure(data=[data], layout=layout)

return fig
return fig

0 comments on commit 44f26fc

Please sign in to comment.