pax_global_header 0000666 0000000 0000000 00000000064 14530442242 0014512 g ustar 00root root 0000000 0000000 52 comment=2988782ba17bc04ba6c6c978359e8046afdd0a65 SciencePlots-2.1.1/ 0000775 0000000 0000000 00000000000 14530442242 0014106 5 ustar 00root root 0000000 0000000 SciencePlots-2.1.1/.github/ 0000775 0000000 0000000 00000000000 14530442242 0015446 5 ustar 00root root 0000000 0000000 SciencePlots-2.1.1/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14530442242 0017631 5 ustar 00root root 0000000 0000000 SciencePlots-2.1.1/.github/ISSUE_TEMPLATE/01-bug.yml 0000664 0000000 0000000 00000004455 14530442242 0021357 0 ustar 00root root 0000000 0000000 name: Bug report description: File a bug report title: "[Bug]: " labels: ["bug"] # assignees: body: - type: markdown attributes: value: | Please check it hasn't been already reported in the [issue tracker](../). And thanks for taking the time to fill this out! It really helps us a lot. - type: markdown attributes: value: | First of all, let's have a look to your environment: run the following Python code snippet and paste the output below. Also, please note that if the issue is related to the Latex binding, you have to type it manually. ```python import platform import sys from importlib.metadata import version print('System: ' + platform.platform()) print('Python: ' + sys.version) print('SciencePlots: ' + version('scienceplots')) print('Matplotlib: ' + version('matplotlib')) print('Latex distro: ' + '(populate manually)') ``` - type: textarea id: env attributes: label: Environment description: Paste here the output of the code above placeholder: | System: Windows-10-10.0.19044-SP0 Python: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 1984, 24:00:00) [MSC v.1929 64 bit (AMD64)] SciencePlots: 0.0.0 Matplotlib: 0.0.0 Latex distro: (populate manually) # value: "" render: "Python console" validations: required: true - type: textarea id: user-description attributes: label: "Describe the issue here" # description: "" placeholder: "What do you expect? What happens?" # value: "" validations: required: true - type: textarea id: how-to-reproduce attributes: label: "How can we reproduce it? What have you tried?" description: "Paste inline code between backticks [`] and code blocks between 3 [```]" placeholder: "Be as accurate as possible, it will help us very much." # value: "" validations: required: true - type: textarea id: extra attributes: label: "Extra info" description: "Please, specify anything else that may be of help (e.g. links to other issues that may be related anywhere, stackoverflow posts, etc.)" # placeholder: "" # value: "" validations: required: false SciencePlots-2.1.1/.github/ISSUE_TEMPLATE/03-help.yml 0000664 0000000 0000000 00000004502 14530442242 0021525 0 ustar 00root root 0000000 0000000 name: Help request description: File a help request title: "[Help Request]: " labels: ["user question/help"] # assignees: body: - type: markdown attributes: value: | Please check there isn't a duplicate in the [issue tracker](../). And thanks for taking the time to fill this out! It really helps us a lot. - type: markdown attributes: value: | First of all, let's have a look to your environment: run the following Python code snippet and paste the output below. Also, please note that if the issue is related to the Latex binding, you have to type it manually. ```python import platform import sys from importlib.metadata import version print('System: ' + platform.platform()) print('Python: ' + sys.version) print('SciencePlots: ' + version('scienceplots')) print('Matplotlib: ' + version('matplotlib')) print('Latex distro: ' + '(populate manually)') ``` - type: textarea id: env attributes: label: Environment description: Paste here the output of the code above placeholder: | System: Windows-10-10.0.19044-SP0 Python: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 1984, 24:00:00) [MSC v.1929 64 bit (AMD64)] SciencePlots: 0.0.0 Matplotlib: 0.0.0 Latex distro: (populate manually) # value: "" render: "Python console" validations: required: true - type: textarea id: user-description attributes: label: "Describe your issue here" # description: "" placeholder: "What do you expect? What happens?" # value: "" validations: required: true - type: textarea id: how-to-reproduce attributes: label: "How can we reproduce it? What have you tried?" description: "Paste inline code between backticks [`] and code blocks between 3 [```]" placeholder: "Be as accurate as possible, it will help us very much." # value: "" validations: required: true - type: textarea id: extra attributes: label: "Extra info" description: "Please, specify anything else that may be of help (e.g. links to other issues that may be related anywhere, stackoverflow posts, etc.)" # placeholder: "" # value: "" validations: required: false SciencePlots-2.1.1/.gitignore 0000664 0000000 0000000 00000006140 14530442242 0016077 0 ustar 00root root 0000000 0000000 .ipynb_checkpoints/ .DS_STORE SciencePlots.egg-info/ dist/ dev/ TODO.md new-version.md # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv # For a library or package, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # poetry # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. # This is especially recommended for binary packages to ensure reproducibility, and is more # commonly ignored for libraries. # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control #poetry.lock # pdm # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. #pdm.lock # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it # in version control. # https://pdm.fming.dev/#use-with-ide .pdm.toml # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ # PyCharm # JetBrains specific template is maintained in a separate JetBrains.gitignore that can # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ SciencePlots-2.1.1/CHANGES.md 0000664 0000000 0000000 00000006224 14530442242 0015504 0 ustar 00root root 0000000 0000000 v2.1.1 (25-Nov-2023) ==================== - Avoid Matplotlib issuing `INFO` log statements about no available fonts due to last release changes. - Add `science` + `no-latex ` example v2.1.0 (30-May-2023) ==================== - Change `science` and `ieee` to use Times New Roman look-alike fonts - Tweak `plot-examples.py` and clean PDF output v2.0.1 (03-Dec-2022) ==================== - Add Turkish `turkish-font` language style v2.0.0 (21-Nov-2022) ==================== - Fix import on case sensitive OSs - Finally bump to this version, following breaking change of distribution v1.1.0 (07-Nov-2022) ==================== - Major change in distribution system - Now needs import directive `import scienceplots` - Fix not using raw string in `plot-example.py` - Update README v1.0.9 (16-Sep-2021) ==================== - `notebook`: - make Latex fonts sans-serif - Fix bug with Latex packages: - e.g., `\usepackage{amsmath, amssymb, sfmath}` --> `\usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}` - Add `pyproject.toml` file (see PEP 517/518) - Minor updates to README, including adding more papers to publication list v1.0.8 (02-Jun-2021) ==================== - ``nature``: - Added style for Nature articles - Uses sans-serif fonts - ``latex-sans``: - Added style for using LaTeX with sans-serif fonts - ``std-colors``: - Added style to recover the standard color cycle of the SciencePlots package - For example, if you use ``plt.style.use(["science", "ieeee"]). The figure will use the ``"ieee"`` color cycle. To revert to the standard color cycle, you can use ``plt.style.use(["science", "ieee", "std-colors"])``. - ``science``: - Added ``amssymb`` to LaTeX preamble - ``grid``: - Set ``axes.axisbelow`` to True - Minor updates to README v1.0.7 (28-Feb-2021) ==================== - Add support for CJK fonts: - see README for details - Add example of CJK fonts: - see Fig 14a, Fig 14b, Fig 14c, Fig 14d - ``science`` style: - use default serif font - ``ieee`` style: - use Times font - ``grid`` style: - change line style to '--' - README: - add badge for Zenodo reference - add info on citing SciencePlots - add info on using Times New Roman - add more papers using SciencePlots v1.0.6 (19-Oct-2020) ==================== - The main reason for this release is to trigger Zenodo: - I've added SciencePlots to Zenodo (an archiving service). - It only archives after new releases, so I will make a trivial version bump. - Trivial changes to README: - Added installation info for Google Colab, Jupyter Notebooks, etc. - Added PyPI badge - Added more papers to list v1.0.5 (8-Sep-2020) =================== - New color blind safe color cycles (``high-contrast.mplstyle``, ``light.mplstyle``). Taken from [Paul Tol's website](https://personal.sron.nl/~pault/). - Fixed color order in ``muted.mplstyle``, ``vibrant.mplstyle``, and ``bright.mplstyle``. v1.0.4 (14-Aug-2020) ==================== - New style: ``grid`` - this will add grid lines - ``science`` style: - use a serif font with mathtex - README: - Add example of the ``notebook`` style - Add FAQ - Update publications - Other misc changes... SciencePlots-2.1.1/LICENSE 0000664 0000000 0000000 00000002054 14530442242 0015114 0 ustar 00root root 0000000 0000000 MIT License Copyright (c) 2018 John Garrett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SciencePlots-2.1.1/MANIFEST.in 0000664 0000000 0000000 00000000031 14530442242 0015636 0 ustar 00root root 0000000 0000000 global-include *.mplstyle SciencePlots-2.1.1/README.md 0000664 0000000 0000000 00000025565 14530442242 0015402 0 ustar 00root root 0000000 0000000 Science Plots ============= > **Warning** > : As of version 2.0.0, you need to add `import scienceplots` before setting the style (`plt.style.use('science')`). [](https://badge.fury.io/py/SciencePlots) [](https://zenodo.org/badge/latestdoi/144605189) *Matplotlib styles for scientific figures* This repo has Matplotlib styles to format your figures for scientific papers, presentations and theses.