APLpy Changelog

What's new in APLpy 1.1.1

Oct 28, 2016
  • Added missing LICENSE and README to tarball.
  • Fix undefined ``HDUList``.

New in APLpy 1.1 (Oct 28, 2016)

  • Fixed compatibility of Scalebar.set with Matplotlib 1.5.x.
  • Fixed compatibility with Python 3.5.
  • Astropy is now a required dependency, and PyFITS and PyWCS are no longer supported.

New in APLpy 1.0 RC 1 (Feb 16, 2015)

  • Improvements:
  • The `auto_refresh` option now defaults to ``False`` unless IPython is being used and the Matplotlib backend is interactive.
  • Bug fixes:
  • Fix a bug that caused RGB images to be incorrectly displayed when zooming in.

New in APLpy 0.9.14 (Oct 6, 2014)

  • Bug fixes:
  • Fix a bug that caused smoothing to fail with integer arrays.
  • Improvements:
  • Fix deprecation warnings from Astropy.

New in APLpy 0.9.13 (Oct 6, 2014)

  • New features:
  • Added ``FITSFigure.set_title`` method that can be used to set the title of a figure.
  • Improvements:
  • Beams and scalebars can now optionally be instantiated with Astropy angular units and quantities.
  • APLpy now includes image tests to ensure reliability over time.
  • The code is now all Python 2 and 3 compatible without requiring 2to3.
  • Bug fixes:
  • Fix bug that caused a crash when plotting an image with a single valid pixel
  • Fixed a severe bug that caused rotated images to have incorrect pixel scales determined.
  • Fixed a bug that caused set_nan_color to modify Matplotlib colormaps globally rather than apply just to the desired FITSFigure.

New in APLpy 0.9.12 (Oct 6, 2014)

  • New features:
  • Added the ability to call ``fig.show_contour()`` without arguments and used the data used to initialize ``FITSFigure``.
  • Added the ability to format colorbar ticks in exponential notation using the ``log_format`` argument. [#143]
  • Added the ability to make NaNs transparent in RGB image output, using the ``make_nans_transparent`` argument. [#138]
  • API Changes:
  • astropy.wcs.WCS no longer contains information about the original image size. Any attempt to instantiate a FITSFigure from a WCS object will raise a DeprecationException. A workaround is to add `naxisn` attributes to your WCS object:
  • mywcs = wcs.WCS(header)
  • mywcs.naxis1 = header['NAXIS1']
  • mywcs.naxis2 = header['NAXIS2']
  • Bug fixes:
  • FITSFigure can now be instantiated using an astropy.io.fits.CompImageHDU object.
  • The coordinate grid is now plotted on the whole axes, not just the subset containing the image (noticeable when zooming out).

New in APLpy 0.9.11 (Oct 6, 2014)

  • Bug fixes:
  • Fix a bug that meant that pixel scales were incorrectly extracted for some WCS settings. [#156]

New in APLpy 0.9.10 (Oct 6, 2014)

  • New Features:
  • `FITSFigure.recenter` can now be used with sliced data cubes.
  • Bug fixes:
  • Fixed issues related to bugs in matplotlib in `match_original` when using patch collections.
  • Fixed a bug that made images containing NaN or Inf values crash APLpy.
  • Fixed a bug that meant that world2pix and pix2world could not take Astropy table columns.

New in APLpy 0.9.9 (Oct 6, 2014)

  • New features:
  • file-like objects can now be passed to ``FITSFigure.save()``
  • the subplot= argument to ``FITSFigure`` can now take the tuple syntax ``(2, 2, 1)`` instead of the full axes box, e.g. ``[0.1, 0.1, 0.9, 0.9]``
  • a colorbar label can now be set (thanks to Daniel Goering for a patch).
  • API changes:
  • the ``smooth`` argument used for images and contours can no longer take a tuple. It takes either a single value for symmetric kernels (``gauss`` and ``box``), or it can take a Numpy array for any other kernel shape.
  • Bug fixes:
  • fixed bug that caused regions read from a ds9 region file to be offset by one pixel.
  • fixed bug that caused an exception when adding a Beam
  • fixed bug that caused labels in decimal degrees to disappear for images near the poles.
  • fixed a bug that caused RGB images to appear vertically flipped with certain versions of Matplotlib.
  • added a workaround for a bug in Matplotlib that caused patches to appear filled even with ``facecolor='none'``.
  • fixed bug that caused images with NaN or Inf values to not be smoothed correctly.

New in APLpy 0.9.8 (Oct 6, 2014)

  • New features:
  • APLpy now includes regression tests that can be run with: python setup.py test
  • FITSFigure can now be initialized with files or HDUs with missing WCS information.
  • FITSFigure can now be initialized directly with Numpy arrays
  • Added methods to show/hide ticks
  • Bug fixes:
  • Fixed a major bug that prevented data cube slicing with PyFITS 3.0.5
  • Fixed a few bugs that occurred when plotting a grid for a few specific projections.
  • Fixed a bug that cause the error:
  • 'Figure' object has no attribute '_auto_refresh'

New in APLpy 0.9.7 (Oct 6, 2014)

  • New features:
  • added the ability to plot arbitrary coordinate systems rather than just sky coordinates.
  • added the ability to slice multi-dimensional data cubes.
  • added minor ticks.
  • pressing 'c' toggles between showing world and pixel coordinates in the bottom of the interactive window.
  • added the ability to specify slice indices for 3D FITS cubes in make_rgb_image.
  • allow pyregion.ShapeList instance to be passed to show_regions.
  • the 'logging' module is now used for any stdout output.
  • added an overlap= argument to show_contour to force only contours with at least one point in the image to be shown. This can result in significantly improved performance, and smaller files, when large FITS files are used to display contours.
  • Changes:
  • the default frame color for the 'pretty' theme (the default) is now black

New in APLpy 0.9.6 (Oct 6, 2014)

  • APLpy is now released under an MIT license
  • New Features:
  • support for plotting AVM-tagged images (requires PyAVM)
  • make_rgb_image can now optionally embed AVM Spatial.* meta-data into images (off by default, requires PyAVM)
  • added support for multiple beams
  • added method to show arrows
  • added method to show lines (thanks to Moritz Guenther)
  • added close() method to FITSFigure to free up memory (useful when making many finder charts for example)
  • added B1950 J2000 conversion
  • added axis_labels.set_x/yposition and tick_labels.set_x/yposition to control whether labels are on top/bottom or left/right of the axes.
  • now uses python-montage wrapper for reprojection
  • added support for passing a WCS object to FITSFigure instead of a file
  • allow a custom box to be specified for the colorbar
  • API changes:
  • vmid has changed meaning for log image scaling. It is now the baseline value to subtract from pixel values before taking the log (defaults to zero)
  • added interpolation= option to show_grayscale and show_colorscale
  • added support for zorder= in methods to show shapes (controls which layers appear on top of which)
  • added north=, system=, and equinox= to make_rgb_cube for more control over the final projection
  • Bug fixes:
  • added a few workaround for matplotlib bugs
  • fixed a major bug with downsampling
  • fixed bug with import of local modules
  • other minor bug fixes

New in APLpy 0.9.5 (Oct 6, 2014)

  • Support for image and contour smoothing
  • Support for slicing of n-dimensional datacubes
  • Support for beam:
  • add_beam()
  • remove_beam()
  • Support for colorbar:
  • add_colorbar()
  • remove_colorbar()
  • Support for scalebar:
  • add_scalebar()
  • remove_scalebar()
  • Support for plotting ds9 region files:
  • show_regions()
  • Support for automatic bounding box adjustments when saving
  • New method to set the color to use for NaN values:
  • set_nan_color()
  • Auto refreshing has been improved. Figures only refresh once per user command if refreshing is turned on.
  • Ensure tick spacing / label format consistency
  • New method to overlay polygons