Make sure that this Latex installation is added to your path enviroment variable. SciencePlots requires Latex to be installed on your machine. You can checkout Matplotlib's documentation for more information on plotting settings. If you can't find an answer, create a new issue through the GitHub issue tracker. If you need any help with SciencePlots, please first check the FAQ and search through the previous GitHub issues. That way we can discuss if the changes are necessary and the best approach. Before starting a new style or making any changes, please create an issue through the GitHub issue tracker.
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. The retro color cycle: Help and Contributing The std-colors color cycle (used to override other color cycles, e.g., the color cycle from ieee): Note: These color cycles are from Paul Tol's website. The high-contrast color cycle (3 colors): See the FAQ for information on installing CJK fonts. Korean ( science + no-latex + cjk-kr-font):
Japanese ( science + no-latex + cjk-jp-font): Simplified Chinese ( science + no-latex + cjk-sc-font): Traditional Chinese ( science + no-latex + cjk-tc-font): Note: See the examples/ directory for more! CJK Fonts For example, the dark_background + science + high-vis styles: You can also combine these styles with the other styles that come with Matplotlib. The science + notebook styles for Jupyter notebooks: The science + scatter styles for scatter plots: The science + nature styles for Nature articles: The ieee style also sets the figure width to fit within one column of an IEEE paper. IEEE requires figures to be readable when printed in black and white.
The science + ieee styles for IEEE papers: To use any of the styles temporarily, you can use: with plt. 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.). You can also combine multiple styles together by: plt. Whenever you want to use it, simply add the following to the top of your python script: import matplotlib.pyplot as plt plt.
"science" is the main style from this repo. Please see the FAQ section for more information and troubleshooting.
If you would like to use CJK fonts, you will need to install these font separately ( see CJK font installation instructions).SciencePlots requires Latex ( see Latex installation instructions).The pip installation will automatically move all of the Matplotlib style files *.mplstyle into the appropriate directory on your computer. # to clone and then install from a local copy # to install the latest commit (from GitHub) The easiest way to install SciencePlots is by using pip: # to install the lastest release (from PyPI) This repo has Matplotlib styles to format your figures for scientific papers, presentations and theses.