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.5.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.5-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vplot-0.3.5.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.5.tar.gz
Algorithm Hash digest
SHA256 f0ebcc87f46cc8ad5603df67b61d0d37da86afc3fce33027afd9183d049cb6d9
MD5 6d664957e0d0599f951a3c1141f41c4e
BLAKE2b-256 35888045c4bce59e66baeb294b696b4f02fdcea57557d8971b94edc5d284b2ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vplot-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5629bfdc43ad913ca77764a4fce4fdf206bdc40fdcb8d5fd95e7bec51850b94
MD5 363d699a6f68aeede15b71da7a493a9e
BLAKE2b-256 ed42b4a94bfc0eaa5bb1d283a68d834ef450520dfde00db13fcd7613210c4756

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