Skip to content

Commit 3e1f803

Browse files
authored
Adding additional matplotlib colormaps (#17)
1 parent 4d22830 commit 3e1f803

File tree

11 files changed

+1399
-1236
lines changed

11 files changed

+1399
-1236
lines changed

.appveyor.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,32 @@ install:
3232
- conda config --set always_yes yes --set changeps1 no
3333
- conda update -q conda
3434
- conda info -a
35-
- conda install python -c conda-forge
36-
- conda install numpy -c conda-forge
37-
- conda install matplotlib -c conda-forge
38-
- conda install cmake -c conda-forge
39-
- conda install xtensor -c conda-forge
40-
- conda install pyxtensor -c conda-forge
35+
- conda install -c conda-forge python
36+
- conda install -c conda-forge numpy
37+
- conda install -c conda-forge matplotlib
38+
- conda install -c conda-forge cmake
39+
- conda install -c conda-forge xtensor
40+
- conda install -c conda-forge pyxtensor
4141
# Build/install the library
4242
- cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -DCMAKE_BUILD_TYPE=RELEASE .
4343
- nmake
4444
- nmake install
4545
- python -m pip install .
4646

4747
build_script:
48+
# Run Python test
49+
- python test\python\main.py
50+
# Compile and run C++ test
51+
- cd test\cpp
52+
- cmake -G "NMake Makefiles" .
53+
- nmake
54+
- .\test
55+
- cd ..\..
4856
# Run Python example
4957
- python examples\python\match.py
5058
# Compile and run C++ example
5159
- cd examples\cpp
5260
- cmake -G "NMake Makefiles" .
5361
- nmake
5462
- .\example
63+
- cd ..\..

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
test*
2-
31
# Prerequisites
42
*.d
53

.travis.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,32 @@ install:
8585
- hash -r
8686
- conda config --set always_yes yes --set changeps1 no
8787
- conda update -q conda
88-
- conda install python -c conda-forge
89-
- conda install numpy -c conda-forge
90-
- conda install matplotlib -c conda-forge
91-
- conda install cmake -c conda-forge
92-
- conda install xtensor -c conda-forge
93-
- conda install pyxtensor -c conda-forge
88+
- conda install -c conda-forge python
89+
- conda install -c conda-forge numpy
90+
- conda install -c conda-forge matplotlib
91+
- conda install -c conda-forge cmake
92+
- conda install -c conda-forge xtensor
93+
- conda install -c conda-forge pyxtensor
9494
# Build/install the library
9595
- cmake .
9696
- sudo make install
9797
- python -m pip install .
9898

9999
script:
100+
# Run Python example
101+
- python test/python/main.py
102+
# Compile and run C++ example
103+
- cd test/cpp
104+
- cmake .
105+
- make
106+
- ./test
107+
- cd ../..
100108
# Run Python example
101109
- python examples/python/match.py
102110
# Compile and run C++ example
103111
- cd examples/cpp
104112
- cmake .
105113
- make
106114
- ./example
115+
- cd ../..
107116

examples/overview/matplotlib.png

14.1 KB
Loading

examples/overview/overview.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,23 @@
4545
"PiYG",
4646
"PRGn"),
4747
'matplotlib' : (
48+
"spring",
49+
"summer",
50+
"autumn",
51+
"winter",
52+
"cool",
53+
"hot",
54+
"bone",
55+
"copper",
56+
"afmhot",
57+
"terrain",
58+
"seismic",
4859
"magma",
4960
"inferno",
5061
"plasma",
5162
"viridis",
63+
"nipy_spectral",
64+
"hsv",
5265
"jet"),
5366
'monocolor' : (
5467
"White",

0 commit comments

Comments
 (0)