Skip to content

Commit

Permalink
update default figsize which suits better for 3d plots
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Apr 24, 2023
1 parent ff8d96b commit fb8c58a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pca/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,15 +845,15 @@ def scatter3d(self, PC=[0, 1, 2], **args):
fig, ax = self.scatter(PC=PC, **args)
return fig, ax

def biplot3d(self, PC=[0, 1, 2], alpha=0.8, **args):
def biplot3d(self, PC=[0, 1, 2], alpha=0.8, figsize=(30, 25), **args):
"""Biplot 3d plot.
Parameters
----------
Input parameters are described under <scatter>.
"""
if not isinstance(alpha, (int, float)): alpha=0.8
fig, ax = self.biplot(PC=PC, alpha=alpha, **args)
fig, ax = self.biplot(PC=PC, alpha=alpha, figsize=figsize, **args)
return fig, ax

# Show explained variance plot
Expand Down

0 comments on commit fb8c58a

Please sign in to comment.