Skip to content

Commit

Permalink
Fixed bug where axis_kwds weren't being propagated.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohnson643 committed Nov 8, 2021
1 parent 42b5647 commit 8334617
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EMBEDR/plots/embedr_scatterplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8334617

Please sign in to comment.