Skip to main content
            /$$                            /$$                    /$$
           |__/                           | $$                   | $$
 /$$    /$$ /$$  /$$$$$$ /$$  /$$  /$$$$$ | $$  /$$$$$   /$$$$$ /$$$$$$   /$$$$$   /$$$$$$
|  $$  /$$/| $$ /$$____/| $$ | $$ |____ $$| $$ |____ $$ /$$___/|_  $$_/  /$$__ $$ /$$__  $$
 \  $$/$$/ | $$|  $$$$$ | $$ | $$  /$$$$$$| $$  /$$$$$$|  $$$$$  | $$   | $$ \__/| $$  \ $$
  \  $$$/  | $$ \___  $$| $$ | $$ /$$__ $$| $$ /$$__ $$ \___  $$ | $$ /$| $$     | $$  | $$
   \  $/   | $$ /$$$$$$/|  $$$$$/|  $$$$$$| $$|  $$$$$$ /$$$$$$/ |  $$$$| $$     |  $$$$$$/
    \_/    |__/|______/  \_____/  \______/|__/ \______/|______/   \___/ |__/      \______/

VisualAstro

PyPI Version DOI Tests

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.

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

Currently, the most stable version of python for VisualAstro is version >=3.10. To install VisualAstro, it is advised to create a new conda environment if possible:

$ conda create -n visualastro -c conda-forge python=3.13
$ conda activate visualastro

Then install the dependencies with:

$ conda install -c conda-forge \
    astropy matplotlib numpy scipy

Optional dependencies can also be installed if you plan to use related functionalities:

$ conda install -c conda-forge \
    colorspacious dust_extinction regions reproject spectral-cube scienceplots specutils tqdm

And finally run:

$ pip install visualastro

For additional interactive functionality inside of jupyter lab:

$ conda install -c conda-forge ipympl ipywidgets jupyterlab

For classic jupyter notebook users:

$ conda install -c conda-forge ipympl ipywidgets notebook jupyter_server notebook-shim

NOTE: To ensure that interactive mode works in notebooks, first activate your conda environment and then run jupyter notebook!

Documentation

VisualAstro is still under development! A full documentation of the package's features is coming soon.

Check the 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:

Example fontstyles:

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

BibTeX:

@software{visualastro,
  author       = {{Gerville-Reache}, Elko and
                  {Tian}, Qiushi Chris and
                  {Whitmer}, Audrey},
  title        = {VisualAstro},
  month        = aug,
  year         = 2026,
  publisher    = {Zenodo},
  version      = {v0.3.1},
  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 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},
}

Metadata

Release files for visualastro 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visualastro 0.3.2
File Size Uploaded Provenance Actions
visualastro-0.3.2.tar.gz 26.6 MB Without provenance Details for visualastro-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for visualastro 0.3.2
File Interpreter ABI Platform Actions
visualastro-0.3.2-py3-none-any.whl Python 3 none any Details for visualastro-0.3.2-py3-none-any.whl

Total release size: 39.8 MB

Release files / visualastro-0.3.2.tar.gz

Download URL visualastro-0.3.2.tar.gz
Size 26.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6f99cd15aeb9549ac62a32d2cff60dc4b9c2ab7fd703cae10865d3f7da13f927
BLAKE2b-256 checksum
How to use checksums
1099be2bf54a40f6a7d07b3f57cf473987ab624c83b1873b60893677059d43c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / visualastro-0.3.2-py3-none-any.whl

Download URL visualastro-0.3.2-py3-none-any.whl
Size 13.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1d97b1c54e19695999b4494b461219138d50d4aee5afd6f33ff610f28924a314
BLAKE2b-256 checksum
How to use checksums
446419a5bdf8329c38dbeec636ba81ccc3f45e0d8605017df39e4b1c36dfc4ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for visualastro 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page