From 492ed6102afed8fee909a04ac33d300cb1b87c68 Mon Sep 17 00:00:00 2001 From: Osvaldo A Martin Date: Wed, 18 Oct 2023 14:14:45 -0300 Subject: [PATCH] unpin matplotlib (#285) --- preliz/internal/plot_helper.py | 7 ------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/preliz/internal/plot_helper.py b/preliz/internal/plot_helper.py index 6d1e20e8..69e4c98f 100644 --- a/preliz/internal/plot_helper.py +++ b/preliz/internal/plot_helper.py @@ -108,8 +108,6 @@ def plot_pdfpmf( dist, moments, pointinterval, interval, levels, support, legend, color, alpha, figsize, ax ): ax = get_ax(ax, figsize) - if color is None: - color = next(ax._get_lines.prop_cycler)["color"] if legend is not None: label = repr_to_matplotlib(dist) @@ -157,8 +155,6 @@ def plot_cdf( dist, moments, pointinterval, interval, levels, support, legend, color, alpha, figsize, ax ): ax = get_ax(ax, figsize) - if color is None: - color = next(ax._get_lines.prop_cycler)["color"] if legend is not None: label = repr_to_matplotlib(dist) @@ -196,9 +192,6 @@ def plot_cdf( def plot_ppf(dist, moments, pointinterval, interval, levels, legend, color, alpha, figsize, ax): ax = get_ax(ax, figsize) - if color is None: - color = next(ax._get_lines.prop_cycler)["color"] - if legend is not None: label = repr_to_matplotlib(dist) diff --git a/pyproject.toml b/pyproject.toml index 66816638..4cfab158 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dynamic = ["version"] description = "The place for all your prior elicitation needs." dependencies = [ "arviz", - "matplotlib<3.8,>=3.5", + "matplotlib>=3.5", "numpy>=1.22", "scipy>=1.9.1", ]