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:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b491674067ebe5255f9923c33104aa55c35ba4941f25b0caf31b049e45d5d2e1
|
|
| MD5 |
1679cd99410706513361010be5f14d52
|
|
| BLAKE2b-256 |
8b6808a65b4f888321033195ac2c5b85ec85a432df84f781c46b831b870ecbf0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de2f73eb60fec19cfdd950ff216303b921d68616a62d5befe9ac9e4ab855112
|
|
| MD5 |
1f63ad8a97cc6a87c73cbbad0b2d3988
|
|
| BLAKE2b-256 |
838c6beb94600c8d372b1460aad8e46072aa9382b376523f35c21722bc46b487
|