From 51de9aea9a1ae19e293583a473b5525f8d88deb3 Mon Sep 17 00:00:00 2001 From: Mr-Milk Date: Mon, 8 Jan 2024 17:10:53 +0100 Subject: [PATCH] Fix import issue --- docs/source/conf.py | 2 +- docs/source/cover.py | 1 - examples/example2.py | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index db6f1bd..c24b815 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,4 @@ -from matplotlib import cycler +from cycler import cycler project = 'legendkit' copyright = '2024, Mr-Milk' diff --git a/docs/source/cover.py b/docs/source/cover.py index 0bf8f84..770e926 100644 --- a/docs/source/cover.py +++ b/docs/source/cover.py @@ -1,6 +1,5 @@ import matplotlib as mpl import matplotlib.pyplot as plt -from matplotlib import cycler from matplotlib.colors import Normalize from legendkit import legend, cat_legend, colorbar, colorart, hstack, vstack diff --git a/examples/example2.py b/examples/example2.py index 32596fd..48b8318 100644 --- a/examples/example2.py +++ b/examples/example2.py @@ -2,8 +2,8 @@ import matplotlib.pyplot as plt from matplotlib.lines import Line2D -from legendkit import legend, SquareItem, CircleItem, RectItem -from legendkit.handles import LineItem +from legendkit import legend +from legendkit.handles import LineItem, SquareItem, CircleItem, RectItem plt.style.use('https://github.com/dhaitz/matplotlib-stylesheets/raw/master/pacoty.mplstyle')