From 5ffb7605edccf75e1fcd45ce77972864a455e982 Mon Sep 17 00:00:00 2001 From: Simone Spolaor Date: Mon, 2 May 2022 12:29:38 +0200 Subject: [PATCH] fixing seaborn import --- setup.py | 2 +- simpful/simpful.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c04ae87..f389253 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name = 'simpful', packages = ['simpful'], # this must be the same as the name above - version = '2.6.2', + version = '2.6.3', description = 'A user-friendly Python library for fuzzy logic', author = 'Marco S. Nobile', author_email = 'marco.nobile@unive.it', diff --git a/simpful/simpful.py b/simpful/simpful.py index e82365d..417f1da 100644 --- a/simpful/simpful.py +++ b/simpful/simpful.py @@ -8,10 +8,13 @@ import string try: from matplotlib.pyplot import plot, show, title, subplots, legend - import seaborn as sns matplotlib = True except ImportError: matplotlib = False +try: + import seaborn as sns +except: + pass # constant values linestyles= ["-", "--", ":", "-."]