Skip to content

Commit

Permalink
fixed for #17, interactive plot show
Browse files Browse the repository at this point in the history
  • Loading branch information
sosey committed Apr 11, 2018
1 parent eb670dc commit 22b7718
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
20 changes: 12 additions & 8 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
1.3.5
-----
1.3.6 (unreleased)
------------------
- fixed matplotlib plotting issue, added explicit draw and interaction plots

1.3.5 (released)
----------------
- Documentation-only updates corresponding to calwf3 3.4.1 release
- travis sphinx install update for testing

1.3.4
-----
1.3.4 (released)
----------------
- bugfix for input string to calwf3 executables

1.3.3
-----
1.3.3 (released)
----------------
This release incorporates documentations changes for CALWF3 which will increase from v3.3 to v3.4 with the installation of HSTDP 2016.2 in the Space Telescope Data processing system. Included are:

- updated information on CTE correction for subarray images
- updated information on Sink pixel detection for subarray images
- updated interaction with the Jupyter notebook when interacting with the calwf3 executables
- improved logging and error return information from the kernel

1.3.2
-----
1.3.2 (released)
----------------
- package reorganization
- addition of output capture/logging to the calwf3 executables, help display text in jupyter notebook
- moved the documentation to readthedocs and removed the local build, users will now be pointed to RTD from the display_help() function
Expand Down
7 changes: 4 additions & 3 deletions wfc3tools/pstack.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from __future__ import division
from __future__ import print_function
from __future__ import division, print_function

# get the auto update version
from .version import __version_date__, __version__
Expand All @@ -8,11 +7,12 @@
import os
from astropy.io import fits
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import pyplot as plt
from stsci.tools import teal

__taskname__ = "pstack"

plt.ion()

def pstack(filename, column=0, row=0, extname="sci", units="counts",
title=None, xlabel=None, ylabel=None, plot=True):
Expand Down Expand Up @@ -85,6 +85,7 @@ def pstack(filename, column=0, row=0, extname="sci", units="counts",
plt.ylabel("Seconds")

plt.plot(xaxis, yaxis, "+")
plt.draw()

return xaxis, yaxis

Expand Down
9 changes: 5 additions & 4 deletions wfc3tools/pstat.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
from __future__ import division
from __future__ import print_function
from __future__ import division, print_function

# get the auto update version
from .version import __version_date__,__version__
from .version import __version_date__, __version__

# STDLIB
import os
from astropy.io import fits
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import pyplot as plt
from scipy.stats import mode as mode

# STSCI
from stsci.tools import teal

__taskname__ = "pstat"

plt.ion()

def pstat(filename, extname="sci", units="counts", stat="midpt", title=None,
xlabel=None, ylabel=None, plot=True):
Expand Down Expand Up @@ -152,6 +152,7 @@ def pstat(filename, extname="sci", units="counts", stat="midpt", title=None,
xend, ystart, yend)
plt.title(title)
plt.plot(xaxis, yaxis, "+")
plt.draw()

return xaxis, yaxis

Expand Down

0 comments on commit 22b7718

Please sign in to comment.