Installation¶
Using pip¶
Install clearplot using
pip install -v clearplotfrom the command line.This will download clearplot from PyPI, install it on your
PYTHONPATH, and install the custom fonts in the proper directory. The-vtells pip to be verbose, so you can see what pip is doing.If pip has trouble connecting to the PyPI server, you can download clearplot from PyPI’s website and run
pip install -v [path], where[path]is the path to the downloaded tarball.
Using github¶
Get a recent copy of clearplot using
git clone https://github.com/breedlun/clearplot.Append the clearplot directory to your
PYTHONPATH.Load a python interpreter. Verify that you can run
import clearplotwithout any errors.
Optional Additional Steps¶
Install the custom fonts on your system so they can be accessed by other applications like Adobe Illustrator and Inkscape.
Find where clearplot stores its True Type fonts. In a python interpreter, type the following two commands:
import clearplot,clearplot.__file__. On a mac you should get something like:.../site-packages/clearplot/clearplot/__init__.py. The custom fonts, such as TeXGyreHerosTXfonts, should have been installed in.../site-packages/clearplot/clearplot/true_type_fonts/.
For Mac users:
Open the Font Book application (
/Applications/Utilities/Font Book)Select the “All Fonts” group from the left tray.
“Drag and drop” the font files into the Font Book window while holding down the option key to copy the font files instead of moving them.
I do not know how to install fonts on Windows or Linux, but I am sure there are instructions online.