From b249182bbff9912f34246ea05330dda3680b993b Mon Sep 17 00:00:00 2001 From: Peter Killick Date: Fri, 3 Nov 2017 16:42:00 +0000 Subject: [PATCH 1/2] Another crack at using viridis for gallery images --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index acd989ec7e..274e26c7ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -116,8 +116,12 @@ script: # which should be investigated further in the future. - > if [[ $TEST_TARGET == 'doctest' ]]; then + MPL_RC_DIR=$HOME/.config/matplotlib; + mkdir -p $MPL_RC_DIR; + echo 'backend : Qt4Agg' > $MPL_RC_DIR/matplotlibrc; + echo 'backend.qt4 : PyQt4' >> $MPL_RC_DIR/matplotlibrc; + echo 'image.cmap : viridis' >> $MPL_RC_DIR/matplotlibrc; cd $INSTALL_DIR/docs/iris; - echo 'image.cmap: viridis' > matplotlibrc; echo `make clean html`; make doctest; fi From c37d60b219cc57793ded6435d69335e899f61358 Mon Sep 17 00:00:00 2001 From: Peter Killick Date: Fri, 3 Nov 2017 17:02:51 +0000 Subject: [PATCH 2/2] Change to agg backend --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 274e26c7ad..016352677c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -118,8 +118,7 @@ script: if [[ $TEST_TARGET == 'doctest' ]]; then MPL_RC_DIR=$HOME/.config/matplotlib; mkdir -p $MPL_RC_DIR; - echo 'backend : Qt4Agg' > $MPL_RC_DIR/matplotlibrc; - echo 'backend.qt4 : PyQt4' >> $MPL_RC_DIR/matplotlibrc; + echo 'backend : agg' > $MPL_RC_DIR/matplotlibrc; echo 'image.cmap : viridis' >> $MPL_RC_DIR/matplotlibrc; cd $INSTALL_DIR/docs/iris; echo `make clean html`;