Skip to content

Commit

Permalink
Update default value for origin
Browse files Browse the repository at this point in the history
The default value for `origin` is `upper` as described in [matplotlib official documentation](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.imshow.html)
  • Loading branch information
CinnamonJui authored and SarthakJariwala committed Jul 14, 2023
1 parent b95ff7c commit 1f441f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/seaborn_image/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def reset_defaults():
mpl.rcParams.update(mpl.rcParamsDefault)


def set_image(cmap="deep", origin="lower", interpolation="nearest", despine=False):
def set_image(cmap="deep", origin="upper", interpolation="nearest", despine=False):
"""
Set deaults for plotting images
Expand All @@ -108,7 +108,7 @@ def set_image(cmap="deep", origin="lower", interpolation="nearest", despine=Fals
cmap : str, optional
Colormap to use accross images, by default to "deep".
origin : str, optional
Image origin - same as in `matplotlib.pyplot.imshow`, by default "lower".
Image origin - same as in `matplotlib.pyplot.imshow`, by default "upper".
interpolation : str, optional
Image interpolation - same as in `matplotlib.pyplot.imshow`, by default "nearest".
despine : bool, optional
Expand Down

0 comments on commit 1f441f8

Please sign in to comment.