High-contrast Imaging Plotting library
Project description
HCIplot
HCIplot
-- High-contrast Imaging Plotting library. The goal of this
library is to be the "Swiss army" solution for plotting and visualizing
multi-dimensional high-contrast imaging datacubes on JupyterLab
.
While visualizing FITS files is straightforward with SaoImage DS9 or any
other FITS viewer, exploring the content of an HCI datacube as an
in-memory numpy
array (for example when running your Jupyter
session on a remote machine) is far from easy.
HCIplot
contains two functions, plot_frames
and plot_cubes
,
and relies on the matplotlib
and HoloViews
libraries and
ImageMagick
. HCIplot
allows to:
- Plot a single frame (2d array) or create a mosaic of frames.
-
Annotate and save publication ready frames/mosaics.
-
Visualize 2d arrays as surface plots.
-
Create interactive plots when handling 3d or 4d arrays (thanks to
HoloViews
)
- Save to disk a 3d array as an animation (gif or mp4).
Installation
You can install HCIplot
with pip
:
pip install hciplot
JupyterLab
can be installed either with pip
or with conda
:
conda install -c conda-forge jupyterlab
The PyViz
extension must be installed to display the holoviews
widgets on JupyterLab
:
jupyter labextension install @pyviz/jupyterlab_pyviz
If you want to create animations with plot_cubes
you need to install
ImageMagick
with your system's package manager (e.g. brew if you are
on MacOS or apt-get if you are on Ubuntu).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hciplot-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e28ad42c17152d8eacc17f26a5c625d288e62ee17c5014119ab18431b4309a |
|
MD5 | 6279ebc0a7f0121461bc26940aebb0ca |
|
BLAKE2b-256 | c241722261dca91d51c5de388ee39f8c22e59b13cca47c854d75bf63a8f2848a |