Metadata-Version: 2.4
Name: visualastro
Version: 0.3.3
Summary: Astro data analysis and plotting package
Author-email: Elko Gerville-Reache <elkogerville@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/elkogerville/VisualAstro
Project-URL: Documentation, https://visualastro.readthedocs.io
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: THIRD_PARTY_LICENSES.txt
License-File: src/visualastro/stylelib/fontlib/concmath-otf/OFL.txt
License-File: src/visualastro/stylelib/fontlib/LibertinusMath/OFL.txt
License-File: src/visualastro/stylelib/fontlib/LibertinusMath/AUTHORS.txt
License-File: src/visualastro/stylelib/fontlib/LibertinusMath/CONTRIBUTORS.txt
License-File: src/visualastro/stylelib/fontlib/NewComputerModern/License.txt
License-File: src/visualastro/stylelib/fontlib/NewComputerModern/GUST-FONT-LICENSE.txt
License-File: src/visualastro/stylelib/fontlib/smplotlibHershey/LICENSE
Requires-Dist: astropy
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: scipy
Provides-Extra: images
Requires-Dist: regions; extra == "images"
Requires-Dist: reproject; extra == "images"
Provides-Extra: spectra
Requires-Dist: specutils; extra == "spectra"
Requires-Dist: dust_extinction; extra == "spectra"
Provides-Extra: spectralcube
Requires-Dist: spectral_cube; extra == "spectralcube"
Requires-Dist: visualastro[images]; extra == "spectralcube"
Provides-Extra: styles
Requires-Dist: scienceplots; extra == "styles"
Provides-Extra: utils
Requires-Dist: cmasher; extra == "utils"
Requires-Dist: colorspacious; extra == "utils"
Requires-Dist: tol-colors; extra == "utils"
Requires-Dist: tqdm; extra == "utils"
Provides-Extra: all
Requires-Dist: visualastro[images,spectra,spectralcube,styles,utils]; extra == "all"
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Requires-Dist: pytest-cov>=4.0; extra == "test"
Requires-Dist: pytest-doctestplus; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: pydata_sphinx_theme; extra == "docs"
Requires-Dist: sphinx-design; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Requires-Dist: pytest-doctestplus; extra == "docs"
Requires-Dist: visualastro[all]; extra == "docs"
Provides-Extra: dev
Requires-Dist: visualastro[docs,test]; extra == "dev"
Dynamic: license-file

```
            /$$                            /$$                    /$$
           |__/                           | $$                   | $$
 /$$    /$$ /$$  /$$$$$$ /$$  /$$  /$$$$$ | $$  /$$$$$   /$$$$$ /$$$$$$   /$$$$$   /$$$$$$
|  $$  /$$/| $$ /$$____/| $$ | $$ |____ $$| $$ |____ $$ /$$___/|_  $$_/  /$$__ $$ /$$__  $$
 \  $$/$$/ | $$|  $$$$$ | $$ | $$  /$$$$$$| $$  /$$$$$$|  $$$$$  | $$   | $$ \__/| $$  \ $$
  \  $$$/  | $$ \___  $$| $$ | $$ /$$__ $$| $$ /$$__ $$ \___  $$ | $$ /$| $$     | $$  | $$
   \  $/   | $$ /$$$$$$/|  $$$$$/|  $$$$$$| $$|  $$$$$$ /$$$$$$/ |  $$$$| $$     |  $$$$$$/
    \_/    |__/|______/  \_____/  \______/|__/ \______/|______/   \___/ |__/      \______/
```


# VisualAstro
[![Documentation Status](https://img.shields.io/readthedocs/visualastro)](https://visualastro.readthedocs.io/en/latest/)
[![PyPI Version](https://img.shields.io/pypi/v/visualastro?cachebust=1)](https://pypi.org/project/visualastro)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21729933.svg)](https://doi.org/10.5281/zenodo.21729933)
[![Tests](https://img.shields.io/github/actions/workflow/status/elkogerville/VisualAstro/test_core.yml?branch=main&label=tests)](https://github.com/elkogerville/VisualAstro/actions/workflows/test_core.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**VisualAstro** is an astrophysical visualization system with functions for easy visualization and manipulation of astronomical data. The package aims to make publication-ready plots with minimal commands and no LaTeX installation.

<p align="center">
  <img src="https://raw.githubusercontent.com/elkogerville/VisualAstro/main/.github/assets/SN1987A.png" width="30%">
  <img src="https://raw.githubusercontent.com/elkogerville/VisualAstro/main/.github/assets/MIRI_spectrum_bkg_subtracted.png" width="60%">
</p>

## Features

- Unified interface for Matplotlib, Astropy, NumPy, spectral-cube, specutils, and other astronomy packages
- Mathtext and scientific stylesheets without `LaTeX` installation as well as many other styles for publication-quality figures
- Colorblind safe alternative colorsets, and colormaps
- User-friendly interface with many convenience methods that integrate with Matplotlib and other packages

## Installation

See the [Installation Guide](https://visualastro.readthedocs.io/en/latest/user_guide/installation.html) on the documentation site for detailed instruction on how to install VisualAstro.

VisualAstro can be installed with any Python version >=3.11. However, due to the [eMudhra root certificate issue](https://emudhra.we-have-a-problem.com/), we recommend using one of the following versions: 3.15.2, 3.14.10, 3.13.18, 3.12.16, or 3.11.18.

## Documentation
Check out the [documentation](https://visualastro.readthedocs.io/en/latest/) page!
Check out the [examples](examples/) folder for notebook tutorials!

## Dependencies

VisualAstro requires:

`astropy`, `matplotlib`, `numpy`, and `scipy`.

### Optional dependencies

Optionally, some functionalities of VisualAstro require:

* Image Data: `regions`, `reproject`
* Cube Data: `spectral-cube`
* Spectra: `specutils`, `dust_extinction`
* Extra Stylesheets: `scienceplots`
* Color Utilities: `cmasher`, `colorspacious`, `tol-colors`
* Progress Bar: `tqdm`

If you try to use functionalities that require an optionally dependent package but do not have that package installed, VisualAstro will raise an ImportError and prompt you to install that package.

## Examples

Example colorsets:
<p align="center">
  <img src="https://raw.githubusercontent.com/elkogerville/VisualAstro/main/.github/assets/colorsets.png" width="90%">
</p>

Example fontstyles:
<p align="center">
  <img src="https://raw.githubusercontent.com/elkogerville/VisualAstro/main/.github/assets/cm_fontstyle.png" width="45%">
  <img src="https://raw.githubusercontent.com/elkogerville/VisualAstro/main/.github/assets/libertinus_fontstyle.png" width="45%">
</p>

## Citing VisualAstro
If you use VisualAstro for your research, we ask that you please cite the Zenodo record below. The developers of VisualAstro would like to thank you for acknowledging our work!

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21729933.svg)](https://doi.org/10.5281/zenodo.21729933)

BibTeX:
```
@software{visualastro,
  author       = {Gerville-Reache, Elko and
                  Tian, Qiushi Chris and
                  Whitmer, Audrey},
  title        = {VisualAstro},
  month        = nov,
  year         = 2026,
  publisher    = {Zenodo},
  version      = {v0.3.3},
  doi          = {10.5281/zenodo.21729933},
  url          = {https://doi.org/10.5281/zenodo.21729933},
}
```

## Credits

### Fonts
VisualAstro includes multiple mathtext fonts:

Concrete Math, distributed under the SIL OPEN FONT LICENSE from a release by:
```
author = Daniel Flipo
year = 2022-2026
url = https://ctan.org/tex-archive/fonts/concmath-otf?lang=en
```

Libertinus Math, distributed under the SIL OPEN FONT LICENSE from a release by:
```
authors = Caleb Maclennan, Libertinus Project Authors
year = 2012-2024
url = https://github.com/alerque/libertinus/releases/tag/v7.051
```

New Computer Modern, distributed under the GNU GENERAL PUBLIC LICENSE from a release by:
```
author = Antonis Tsolomitis
location = Samos, Greece
year = 2019--2026
url = https://ctan.org/texarchive/fonts/newcomputermodern?lang=en
```

AVHershey TrueType, distributed under the MIT License from a release by:
```
@software{jiaxuan_li_2023_8126529,
  author       = {Jiaxuan Li},
  title        = {AstroJacobLi/smplotlib: v0.0.9},
  month        = jul,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {v0.0.9},
  doi          = {10.5281/zenodo.8126529},
  url          = {https://doi.org/10.5281/zenodo.8126529},
}
```
