Skip to content

Commit

Permalink
Adding additional matplotlib colormaps (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored May 4, 2020
1 parent 4d22830 commit 3e1f803
Show file tree
Hide file tree
Showing 11 changed files with 1,399 additions and 1,236 deletions.
21 changes: 15 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,32 @@ install:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install python -c conda-forge
- conda install numpy -c conda-forge
- conda install matplotlib -c conda-forge
- conda install cmake -c conda-forge
- conda install xtensor -c conda-forge
- conda install pyxtensor -c conda-forge
- conda install -c conda-forge python
- conda install -c conda-forge numpy
- conda install -c conda-forge matplotlib
- conda install -c conda-forge cmake
- conda install -c conda-forge xtensor
- conda install -c conda-forge pyxtensor
# Build/install the library
- cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -DCMAKE_BUILD_TYPE=RELEASE .
- nmake
- nmake install
- python -m pip install .

build_script:
# Run Python test
- python test\python\main.py
# Compile and run C++ test
- cd test\cpp
- cmake -G "NMake Makefiles" .
- nmake
- .\test
- cd ..\..
# Run Python example
- python examples\python\match.py
# Compile and run C++ example
- cd examples\cpp
- cmake -G "NMake Makefiles" .
- nmake
- .\example
- cd ..\..
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
test*

# Prerequisites
*.d

Expand Down
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,32 @@ install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install python -c conda-forge
- conda install numpy -c conda-forge
- conda install matplotlib -c conda-forge
- conda install cmake -c conda-forge
- conda install xtensor -c conda-forge
- conda install pyxtensor -c conda-forge
- conda install -c conda-forge python
- conda install -c conda-forge numpy
- conda install -c conda-forge matplotlib
- conda install -c conda-forge cmake
- conda install -c conda-forge xtensor
- conda install -c conda-forge pyxtensor
# Build/install the library
- cmake .
- sudo make install
- python -m pip install .

script:
# Run Python example
- python test/python/main.py
# Compile and run C++ example
- cd test/cpp
- cmake .
- make
- ./test
- cd ../..
# Run Python example
- python examples/python/match.py
# Compile and run C++ example
- cd examples/cpp
- cmake .
- make
- ./example
- cd ../..

Binary file modified examples/overview/matplotlib.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions examples/overview/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,23 @@
"PiYG",
"PRGn"),
'matplotlib' : (
"spring",
"summer",
"autumn",
"winter",
"cool",
"hot",
"bone",
"copper",
"afmhot",
"terrain",
"seismic",
"magma",
"inferno",
"plasma",
"viridis",
"nipy_spectral",
"hsv",
"jet"),
'monocolor' : (
"White",
Expand Down
Loading

0 comments on commit 3e1f803

Please sign in to comment.