Skip to content

Repository files navigation

SciPlotLib

A toolbox for drawing figures commonly found in journal or conference papers.

URL: https://github.com/MetaVisionLab/SciPlotLib

Install

Install Package

git clone https://github.com/MetaVisionLab/SciPlotLib.git
cd SciPlotLib
python setup.py install

Install Font

If you don't have the Times-New-Roman font in your system, you need to install it manually. For example, in Ubuntu 18.04, you can use the following command:

cp ./fonts/* /path/to/your/python/site-packages/matplotlib/mpl-data/fonts/ttf/

And then, remove the cache of matplotlib.

rm ~/.cache/matplotlib -rf

Usage

All sample images are generated by the test function with the same name in the test folder. Users can refer to the corresponding code to prepare their own data and then call the corresponding function.

Due to the lack of compatibility of the SVG format, we do not generate SVG directly but generate PDF. The image can be inserted directly into LaTeX documents. If you want to insert the image into Word or PowerPoint, you can use Illustrator to extract the SVG from the PDF.

Additional Information

Color Map

By default, we use the following color map for scatter plot:

RGBH
55126184#377EB8
7717574#4DAF4A
15278163#984EA3
2336363#E93F3F
2551270#FF7F00
25521747#FFD92F
1668640#A65628
247129191#F781BF
19418944#C2BD2C
153153153#999999
102194165#66C2A5
141160203#8DA0CB
15016349#96A331
221179117#DDB375

color map

About

A toolbox for drawing figures commonly found in journal or conference papers.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages