Skip to main content

PSO Plotting Utils

Project description

psoplot

PSO Plotting Utils

Installation

pip install psoplot

Usage

If you only want to use a style, you can use the following code:

import matplotlib.pyplot as plt
import psoplot

plt.style.use("psoplot.aanda_publication")

# [Your plotting code here]

If you want to use e.g. a convenient wrapper for generating subplots, you can use the following code:

import psoplot.aanda_plot as aplt

fig, (ax1, ax2) = aplt.subplots(2, 1)

Which is essentially a wrapper around plt.subplots with some convenience settings regarding the size of the figure.

Available styles

  • psoplot.aanda_publication: A style for A&A publication
  • psoplot.aas_publication: A style for AAS publication, e.g. ApJ, ApJL, ApJS

For example plots, see the (https://astro-pso.github.io/psoplot)[examples] page.

CLI: make-movie

Use make-movie to build an MP4 from image frames sharing the same base name.

make-movie frame_ --extension png --fps 24 --output movie.mp4

The command searches for matching frames like frame_*.<extension> in the same directory, sorts them, and runs ffmpeg to produce the MP4 file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psoplot-26.5.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psoplot-26.5.1-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file psoplot-26.5.1.tar.gz.

File metadata

  • Download URL: psoplot-26.5.1.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for psoplot-26.5.1.tar.gz
Algorithm Hash digest
SHA256 14095f8d9ebca682403012db7daccf46401b05cb41ab6de08c0d47e01f341431
MD5 19d444b841b00c3958c0cb5b13d87060
BLAKE2b-256 b474d9c6829deb37ca6a57a2c3a090f36f21faf01dab8274621fa0a0a6635f9b

See more details on using hashes here.

File details

Details for the file psoplot-26.5.1-py3-none-any.whl.

File metadata

  • Download URL: psoplot-26.5.1-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for psoplot-26.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 558cb5a7e760aed4a710ec1d09b8823b92b57bf7a664eb6e1946a3c01098b007
MD5 37f54b3b54ee817680757c5927cf512f
BLAKE2b-256 83348cf1abf2b18a19be7fce3be3d1beb32eca887f539bd7764a4d0cc6296a0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page