Skip to content
Snippets Groups Projects
Commit c5802153 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'relax_matplotlib_dependency' into 'master'

Relax matplotlib requirement

Closes #31

See merge request !39
parents c581fe5f ad25c8d6
No related branches found
No related tags found
1 merge request!39Relax matplotlib requirement
Pipeline #
import numpy as np import numpy as np
import matplotlib.pyplot as plt
def to_matplotlib(img): def to_matplotlib(img):
...@@ -64,6 +63,7 @@ def imshow(img, cmap=None, **kwargs): ...@@ -64,6 +63,7 @@ def imshow(img, cmap=None, **kwargs):
object object
Returns whatever ``plt.imshow`` returns. Returns whatever ``plt.imshow`` returns.
''' '''
import matplotlib.pyplot as plt
if cmap is None and img.ndim == 2: if cmap is None and img.ndim == 2:
cmap = 'gray' cmap = 'gray'
......
...@@ -40,9 +40,10 @@ requirements: ...@@ -40,9 +40,10 @@ requirements:
run: run:
- python - python
- setuptools - setuptools
- matplotlib
- boost - boost
- {{ pin_compatible('numpy') }} - {{ pin_compatible('numpy') }}
run_constrained:
- matplotlib
test: test:
imports: imports:
...@@ -59,6 +60,7 @@ test: ...@@ -59,6 +60,7 @@ test:
- coverage - coverage
- sphinx - sphinx
- sphinx_rtd_theme - sphinx_rtd_theme
- matplotlib
about: about:
home: https://www.idiap.ch/software/bob/ home: https://www.idiap.ch/software/bob/
......
matplotlib
...@@ -4,4 +4,3 @@ bob.extension ...@@ -4,4 +4,3 @@ bob.extension
bob.blitz bob.blitz
bob.core bob.core
bob.io.base bob.io.base
matplotlib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment