All Projects → garrettj403 → Scienceplots

garrettj403 / Scienceplots

Licence: mit
Matplotlib styles for scientific plotting

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Scienceplots

publib
Produce publication-level quality images on top of Matplotlib
Stars: ✭ 34 (-98.84%)
Mutual labels:  matplotlib-style-sheets, scientific-papers, matplotlib-styles
ntuthesis
台大碩博士論文模板 (R Package)
Stars: ✭ 14 (-99.52%)
Mutual labels:  latex, thesis-template
hesso-latextemplate-thesis
HES-SO//Master MSE thesis template
Stars: ✭ 26 (-99.11%)
Mutual labels:  latex, thesis-template
Ustcthesis
LaTeX template for USTC thesis
Stars: ✭ 724 (-75.35%)
Mutual labels:  thesis-template, latex
master-thesis
Выпускная квалификационная работа (ВКР) магистра в LaTeX, оформленная в соответствии с нормоконтролем Севастопольского государственного университета в 2017 г.
Stars: ✭ 84 (-97.14%)
Mutual labels:  latex, thesis-template
Yet-Another-LaTeX-Template-for-NPU-Thesis
西北工业大学硕博学位论文模版 | Yet Another Thesis Template for Northwestern Polytechnical University
Stars: ✭ 82 (-97.21%)
Mutual labels:  latex, thesis-template
Zjuthesis
Zhejiang University Graduation Thesis LaTeX Template
Stars: ✭ 720 (-75.49%)
Mutual labels:  thesis-template, latex
Tum Thesis Latex
📔 A LaTeX template for TUM Bachelor/Master theses.
Stars: ✭ 291 (-90.09%)
Mutual labels:  thesis-template, latex
Swjtuthesis
LaTeX template for SWJTU thesis.
Stars: ✭ 16 (-99.46%)
Mutual labels:  thesis-template, latex
Bachelor Diploma
Дипломная работа бакалавра в LaTeX, оформленная в соответствии с нормоконтролем Севастопольского государственного университета в 2015 году
Stars: ✭ 52 (-98.23%)
Mutual labels:  thesis-template, latex
Sjtuthesis
上海交通大学 XeLaTeX 学位论文及课程论文模板 | Shanghai Jiao Tong University XeLaTeX Thesis Template
Stars: ✭ 2,376 (-19.1%)
Mutual labels:  thesis-template, latex
dufte
📈 Minimalistic Matplotlib style
Stars: ✭ 196 (-93.33%)
Mutual labels:  matplotlib-style-sheets, matplotlib-styles
Latex Template For Npu Thesis
LaTeX Template For NPU Thesis
Stars: ✭ 127 (-95.68%)
Mutual labels:  thesis-template, latex
mit-phd-thesis
MIT Ph.D. Thesis in LaTeX
Stars: ✭ 52 (-98.23%)
Mutual labels:  latex, thesis-template
Scientific Thesis Template
LaTeX template for Master, Bachelor, Diploma, and Student Theses
Stars: ✭ 228 (-92.24%)
Mutual labels:  thesis-template, latex
Concordia Latex Template
Concordia University LaTeX Template for Master's thesis or PHD thesis.
Stars: ✭ 6 (-99.8%)
Mutual labels:  thesis-template, latex
Aaulatextemplates
A collection of Aalborg University LaTeX-templates
Stars: ✭ 85 (-97.11%)
Mutual labels:  thesis-template, latex
Hagenbergthesis
Hagenberg LaTeX Thesis Template
Stars: ✭ 130 (-95.57%)
Mutual labels:  thesis-template, latex
Texsoup
fault-tolerant Python3 package for searching, navigating, and modifying LaTeX documents
Stars: ✭ 157 (-94.65%)
Mutual labels:  latex
Neotex
latex live preview - plugin for neovim and vim 8
Stars: ✭ 170 (-94.21%)
Mutual labels:  latex

Science Plots

PyPI version DOI

Matplotlib styles for scientific figures

This repo has Matplotlib styles to format your figures for scientific papers, presentations and theses.

You can find the full gallery of included styles here.

Getting Started

The easiest way to install SciencePlots is by using pip:

# to install the lastest release (from PyPI)
pip install SciencePlots

# to install the latest commit (from GitHub)
pip install git+https://github.com/garrettj403/SciencePlots

# to clone and install from a local copy
git clone https://github.com/garrettj403/SciencePlots.git
cd SciencePlots
pip install -e .

The pip installation will automatically move all of the Matplotlib style files *.mplstyle into the appropriate directory on your computer.

Notes:

Please see the FAQ for more information and troubleshooting.

Using the Styles

"science" is the primary style in this repo. Whenever you want to use it, simply add the following to the top of your python script:

import matplotlib.pyplot as plt

plt.style.use('science')

You can also combine multiple styles together by:

plt.style.use(['science','ieee'])

In this case, the ieee style will override some of the parameters from the science style in order to configure the plot for IEEE papers (column width, fontsizes, etc.).

To use any of the styles temporarily, you can use:

with plt.style.context('science'):
    plt.figure()
    plt.plot(x, y)
    plt.show()

Examples

The basic science style is shown below:

It can be cascaded with other styles to fine-tune the appearance. For example, the science + notebook styles (intended for Jupyter notebooks):

Please see the project Wiki for a full list of available styles.

Specific Styles for Academic Journals

The science + ieee styles for IEEE papers:

  • IEEE requires figures to be readable when printed in black and white. The ieee style also sets the figure width to fit within one column of an IEEE paper.

The science + nature styles for Nature articles:

  • Nature recommends sans-serif fonts.

Other languages

SciencePlots currently supports traditional Chinese, simplified Chinese, Japanese, Korean and Russian.

Example: Traditional Chinese (science + no-latex + cjk-tc-font):

See the FAQ for information on installing CJK fonts.

Other color cycles

SciencePlots comes with a variety of different color cycles. For a full list, see the project Wiki. Two examples are shown below.

The bright color cycle (color blind safe):

The high-vis color cycle:

Help and Contributing

Please feel free to contribute to the SciencePlots repo! For example, it would be good to add new styles for different journals and add new color cycles. Before starting a new style or making any changes, please create an issue through the GitHub issue tracker. That way we can discuss if the changes are necessary and the best approach.

If you need any help with SciencePlots, please first check the FAQ and search through the previous GitHub issues. If you can't find an answer, create a new issue through the GitHub issue tracker.

You can checkout Matplotlib's documentation for more information on plotting settings.

FAQ

You can find the FAQ in the project Wiki.

SciencePlots in Academic Papers

The following papers use SciencePlots:

If you use SciencePlots in your paper/thesis, feel free to add it to the list!

Citing SciencePlots

You don't have to cite SciencePlots if you use it but it's nice if you do:

@article{SciencePlots,
  author       = {John D. Garrett},
  title        = {{garrettj403/SciencePlots}},
  month        = sep,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {1.0.9},
  doi          = {10.5281/zenodo.4106649},
  url          = {http://doi.org/10.5281/zenodo.4106649}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].