diff --git a/.coveragerc b/.coveragerc index c390dd11..ba60896d 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,7 +5,6 @@ branch = True source = celer include = */celer/* omit = */setup.py - */celer/plot_utils.py [report] exclude_lines = diff --git a/celer/plot_utils.py b/celer/plot_utils.py deleted file mode 100644 index 28a173de..00000000 --- a/celer/plot_utils.py +++ /dev/null @@ -1,30 +0,0 @@ -# Author: Mathurin Massias -# Alexandre Gramfort -# Joseph Salmon -# License: BSD 3 clause - -import matplotlib -import matplotlib.pyplot as plt -import seaborn as sns - -from matplotlib import rc - -C_LIST = sns.color_palette("colorblind", 8) -C_LIST_DARK = sns.color_palette("dark", 8) - - -def configure_plt(fontsize=12): - rc('font', **{'family': 'sans-serif', - 'sans-serif': ['Computer Modern Roman']}) - usetex = matplotlib.checkdep_usetex(True) - params = {'axes.labelsize': fontsize, - 'font.size': fontsize, - 'legend.fontsize': fontsize, - 'xtick.labelsize': fontsize - 2, - 'ytick.labelsize': fontsize - 2, - 'text.usetex': usetex, - 'figure.figsize': (8, 6)} - plt.rcParams.update(params) - - sns.set_palette('colorblind') - sns.set_style("ticks") diff --git a/examples/plot_group_lasso.py b/examples/plot_group_lasso.py index f7c87fea..6405684d 100644 --- a/examples/plot_group_lasso.py +++ b/examples/plot_group_lasso.py @@ -11,10 +11,8 @@ from celer import GroupLassoCV, LassoCV from celer.datasets import make_correlated_data -from celer.plot_utils import configure_plt print(__doc__) -configure_plt(fontsize=16) # Generating X, y, and true regression coefs with 4 groups of 5 non-zero values diff --git a/examples/plot_lasso_cv.py b/examples/plot_lasso_cv.py index c182ff5e..23bd3e2b 100644 --- a/examples/plot_lasso_cv.py +++ b/examples/plot_lasso_cv.py @@ -14,10 +14,8 @@ from sklearn.model_selection import KFold from celer import LassoCV -from celer.plot_utils import configure_plt print(__doc__) -configure_plt() print("Loading data...") dataset = fetch_openml("leukemia") diff --git a/pyproject.toml b/pyproject.toml index ba5abfda..d3637b2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "celer" dependencies =[ - 'seaborn>=0.7', 'matplotlib>=2.0.0', 'libsvmdata>=0.3', - 'scikit-learn>=1.0', 'xarray', 'download', 'tqdm' + 'libsvmdata>=0.3', 'scikit-learn>=1.0', 'xarray', 'download', 'tqdm' ] description = "A fast algorithm with dual extrapolation for sparse problems" authors = [ @@ -29,6 +28,6 @@ repository = "https://github.com/mathurinm/celer.git" [project.optional-dependencies] doc = [ - "numpydoc", "pandas", "pillow", + "numpydoc", "pandas", "pillow", "matplotlib", "furo", "sphinx-copybutton", "sphinx-gallery" -] \ No newline at end of file +]