Skip to content

Make plotting in matplotlib with many subfigures, especially in publications, easier.

License

Notifications You must be signed in to change notification settings

gridspeccer/gridspeccer

Repository files navigation

gridspeccer

Plotting tool to make plotting with many subfigures easier, especially for publications. After installation gridspeccer can be used from the command line to create plots

gridspeccer [path]

install module gsExample with mpl mathtext gsExample with latex math

Installation

You can install either from PyPi

pip install [--user] gridspeccer

or the current version from GitHub

pip install [--user] git+https://github.com/gridspeccer/gridspeccer/

For a debug version where local changes are automatically in effect, clone the repository and install it with the editable flag -e

git clone https://github.com/gridspeccer/gridspeccer
cd gridspeccer
pip install -e [--user] .

Usage

A standalone plot file that does not need data is examples/fig_setup.py, this is also used for testing, see actions.

  • gridspeccer can be used on specific files gridspeccer fig_setup.py or on folders (no argument is equivalent to CWD .), in which files that satisfy fig*.py are searched for.
  • with the optional argument --mplrc [file] one can specify a matplotlibrc to be used for plotting (two examples in gridspeccer/defaults/)
  • default filetype of the plot is .pdf, for other filetypes specify, e.g., --filetype .png
  • plots are saved to ../fig/ by default, can be specified by --output-folder FOLDER

Requirements

Notes

  • Don't install using python setup.py install, as this will create an .egg, and the default matplotlibrcs will not be accessible.
  • Many old examples that are not executable at the moment can be found in old_examples, to serve as inspiration for other plots.
  • For an example using gridspeccer see JulianGoeltz/automised_latex_template. Recent papers utilising gridspeccer include

Todos

  • make true tex standard?
  • Format code to satisfy linting, then update linting workflow linting

About

Make plotting in matplotlib with many subfigures, especially in publications, easier.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages