From 5be1c251874b2bfefcd222ccdcb4945a9edfe20f Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Mon, 26 Oct 2020 23:59:16 +0100 Subject: [PATCH] [plotstyle] fix is get_axes is not available --- plotstyle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plotstyle.py b/plotstyle.py index 328565a..06aa015 100644 --- a/plotstyle.py +++ b/plotstyle.py @@ -212,7 +212,10 @@ def show_spines(ax, spines='lb'): if isinstance(ax, (list, tuple)): axs = ax else: - axs = ax.get_axes() + if hasattr(ax, "get_axes"): + axs = ax.get_axes() + else: + axs = [ax] if not isinstance(axs, (list, tuple)): axs = [axs] for ax in axs: