Skip to content

Commit

Permalink
Change names of logo locs (#139)
Browse files Browse the repository at this point in the history
* change names of logo locs

* fix test
  • Loading branch information
kevindougherty-noaa committed Jul 27, 2023
1 parent 9b67563 commit a2a7fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/emcpy/plots/create_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,8 @@ def _display_logo(self, ax, im, loc, zoom, alpha):
loc_dict = {
'upper right': 1,
'upper left': 2,
'bottom left': 3,
'bottom right': 4,
'right': 5,
'lower left': 3,
'lower right': 4,
'center left': 6,
'center right': 7,
'lower center': 8,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_add_logo():
fig.figsize = (12, 8)
fig.create_figure()
fig.tight_layout()
fig.plot_logo(loc='bottom right', zoom=0.9, alpha=0.2)
fig.plot_logo(loc='lower right', zoom=0.9, alpha=0.2)
fig.save_figure('test_add_logo.png')


Expand Down

0 comments on commit a2a7fde

Please sign in to comment.