Skip to content
Snippets Groups Projects

Relax matplotlib requirement

Merged Samuel GAIST requested to merge relax_matplotlib_dependency into master

Files

+ 1
1
import numpy as np
import matplotlib.pyplot as plt
def to_matplotlib(img):
@@ -64,6 +63,7 @@ def imshow(img, cmap=None, **kwargs):
object
Returns whatever ``plt.imshow`` returns.
'''
import matplotlib.pyplot as plt
if cmap is None and img.ndim == 2:
cmap = 'gray'
Loading