From 8334617a937ad46c6f6feaef3ea747479f7d6c11 Mon Sep 17 00:00:00 2001 From: ejohnson643 Date: Sun, 7 Nov 2021 18:26:27 -0600 Subject: [PATCH] Fixed bug where axis_kwds weren't being propagated. --- EMBEDR/plots/embedr_scatterplots.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/EMBEDR/plots/embedr_scatterplots.py b/EMBEDR/plots/embedr_scatterplots.py index 082cebe..0789e5d 100644 --- a/EMBEDR/plots/embedr_scatterplots.py +++ b/EMBEDR/plots/embedr_scatterplots.py @@ -21,7 +21,7 @@ def __init__(self, log_labels=False, axis=None, axis_kwds=None, - show_border=True, + show_border=False, scatter_sizes=3, scatter_alpha=1, scatter_kwds=None, @@ -111,9 +111,11 @@ def plot(self, **kwargs): else: self.fig = self.axis.figure - spine_alpha = 1 if self.show_border else 0 + if 'spine_alpha' not in self.axis_kwds: + self.axis_kwds['spine_alpha'] = 0 + if self.show_border: + self.axis_kwds['spine_alpha'] = 1 self.axis = putl.make_border_axes(self.axis, - spine_alpha=spine_alpha, xticks=self.xticks, yticks=self.yticks, xticklabels=self.xticklabels,