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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hciplot-0.2.6.tar.gz.
File metadata
- Download URL: hciplot-0.2.6.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32c1bef936b1e6e11110de484c75d9bad931942d89ff61754ee601e94f286b68
|
|
| MD5 |
09e8db1d15d79ceeb0171121b255565f
|
|
| BLAKE2b-256 |
7e965e52ac9bcc57440b67f0bddca38679e5c3580dbccdfeca172d27200e2b61
|
File details
Details for the file hciplot-0.2.6-py3-none-any.whl.
File metadata
- Download URL: hciplot-0.2.6-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b46c175ab318919d7e6d082f908378f489614ba36fffb944d88f6b32d52a271
|
|
| MD5 |
06d07adc0536ce2340b3bec065218ce2
|
|
| BLAKE2b-256 |
03cf7d72b345f57a2edc9eff7a818c8af89b535f138c4dd0561e1e59f91cf3f2
|