Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Collection of KTH colors for matplotlib

License

NotificationsYou must be signed in to change notification settings

KTH-AC/matplotlib-kthcolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of KTH colors for matplotlib

Supported colors

The package supports the 11 colors listed in theKTH color palette.The color names have been translated to English.

Here is a preview of the colors and their English names.After installation, you will be able to reproduce this picture by runningexample.py.

Installation

Installation steps may vary depending on your OS.On Linux and MacOS, I would expect the following instructions to work just fine.

You need Python 2 or 3 on your computer.Moreover, you needpython-pip andpython-setuptools.In the remote event that you do not have them already, grab them with your favorite package manager.For example, on Linux, type this in a terminal:

sudo apt-get install python-pip python-setuptools
  1. Clone this repository.
git clone https://github.com/adaldo/matplotlib-kthcolors
  1. Enter the repository directory and run the setup script.
cd matplotlib-kthcolorssudo python setup.py sdist bdist_wheelsudo pip install ./dist/kthcolors-0.0.2.tar.gz
  1. If you want, you can remove the repository directory now.
cd ..sudo rm -r matplotlib-kthcolors

Usage

If you want to introduce new color names for the kth colors, then importkthcolors.kthcolors and use Matplotlib with the new color names. Seeexample.py for an example of this usage.

If you want the standard color names to be remapped to the kth colors, importkthcolors.inplace and use Matplotlib normally.

Uninstall

Uninstallation varies depending on your OS.On Linux and MacOS, I expect the following to work just fine.

  1. Type this in a terminal
sudo pip uninstall kthcolors
  1. Write a mail toantonio.adaldo.89@gmail.com to let me know what went wrong.

About

Collection of KTH colors for matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp