Skip to main content

VPLANET Plotting Tools

Project description

A suite of plotting routines for vplanet. It can be used to both generate a plot of all vplanet output data, or combined with matplotlib to easily import data for professional figures. If running from the command line, the output parameter list(s) must include Time, i.e. you can only instantly plot the evolution of the parameters as a function of time.

Installation

vplot will work most effectively if installed as the super-user as follows:

git clone https://github.com/VirtualPlanetaryLaboratory/vplot.git
cd vplot
python setup.py develop

If you prefer to install without root access, you can do so by replacing the last line with:

python setup.py install --user

You can edit the vplot_config.py to specify custom settings. This file is automatically created in the cwd when you run vplot. Type vplot -h for the complete list of options.

vplot can be run from the command line to quickly generate a figure that shows the evolution of every output parameter from a vplanet simulation. After a simulation has completed, simply type

vplot

and a figure will appear with all the output data plotted.

Quick-and-dirty docs

VPLOT
-----
usage: vplot  [-h [OPTION_NAME]] [-b [BODIES [BODIES ...]]]
              [-x XAXIS] [-y [YAXIS [YAXIS ...]]] [-a ALPHA]

optional arguments:
  -h [OPTION_NAME]          Show this help message or the docstring for OPTION_NAME
  -b BODIES [BODIES ...]    Bodies to plot; should match names of .in files in cwd
  -x XAXIS                  Parameter to plot on the x-axis
  -y YAXIS [YAXIS ...]      Parameter(s) to plot on the y-axis
  -a ALPHA                  Parameter to control line alpha

version: 0.3.0

vplot_config.py options:
  figheight, figname, figwidth, interactive, legend_all, legend_fontsize, legend_loc,
  line_styles, linewidth, maxplots, maxylabelsize, short_labels, skip_xzero_log,
  tight_layout, title, xlabel_fontsize, xlog, xticklabel_fontsize, ylabel_fontsize,
  ylog, ymargin, yticklabel_fontsize


Type `vplot -h OPTION_NAME` for info on any option

After installation vplot can be imported and used with matplotlib to easily import vplanet data and quickly generate figures. You can check the examples/ directory in the vplanet repo for examples on how to use vplot in this case.

vplot must be installed to perform unit tests with vplanet.

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

vplot-0.3.4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

vplot-0.3.4-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file vplot-0.3.4.tar.gz.

File metadata

  • Download URL: vplot-0.3.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for vplot-0.3.4.tar.gz
Algorithm Hash digest
SHA256 fed05836fa8d42f388a9af9f493623b6a43fd02224a475ae6c99563ca61eda10
MD5 aa36db6c487cb57056f2705e738e5788
BLAKE2b-256 bd3b818ed6348ce010bec13907d8635cab7d13b367fa9857d163f474b5bee95c

See more details on using hashes here.

File details

Details for the file vplot-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: vplot-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for vplot-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4b43af3818f5e69f26dfb3bd11f358fb07fbb09f7847206daf27ce67442ebc
MD5 f3bd447dc05b1d09f3d4f8fe669873b3
BLAKE2b-256 ea25cd6e78c172e25f958ac98b93b94f1d1a9bd71f525e22b5b878988fbc3da8

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