Skip to main content

A spatial and temporal plotting package for heliophysics data

Project description

pysplot: Spatiotemporal Plotting in Python

The pysplot package hosts tools and visualization methods for making spatial and temporal plots with heliophysics timeseries data.

Table of Contents

Installation

To install the package:

pip install pysplot

Install additional dependencies if running through the examples:

pip install pysplot[examples]

or using the WHPI-specific tools:

pip install pysplot[whpi]

Usage

After installation, you can use the package as follows:

from pysplot.io.data import SpatialData, ScienceData, SpatialTimeData
from pysplot.plots.plottypes import orbit_plot
import matplotlib.pyplot as plt

# input data as dictionaries
spatial_data_dictionary = {'x': [...], 'y': [...]}
science_data_dictionary = {'x': [...], 'y': [...]}

# Initiate data objects
spatial_data = SpatialData(spatial_data_dictionary)
science_data = ScienceData(science_data_dictionary)
combined_splot_data = SpatialTimeData(spatial_data, science=science_data)

# Make plots
fig, ax = plt.subplots()
orbit_plot(combined_splot_data.data, ax, 'x', 'y')

For a full example of how to use pysplot, refer to our example notebooks.

Contributing

We welcome contributions to improve this package! To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a pull request.

Please make sure your code adheres to the existing style guidelines and includes tests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

pysplot-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

pysplot-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file pysplot-0.1.0.tar.gz.

File metadata

  • Download URL: pysplot-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pysplot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b491674067ebe5255f9923c33104aa55c35ba4941f25b0caf31b049e45d5d2e1
MD5 1679cd99410706513361010be5f14d52
BLAKE2b-256 8b6808a65b4f888321033195ac2c5b85ec85a432df84f781c46b831b870ecbf0

See more details on using hashes here.

File details

Details for the file pysplot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pysplot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pysplot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5de2f73eb60fec19cfdd950ff216303b921d68616a62d5befe9ac9e4ab855112
MD5 1f63ad8a97cc6a87c73cbbad0b2d3988
BLAKE2b-256 838c6beb94600c8d372b1460aad8e46072aa9382b376523f35c21722bc46b487

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