Skip to content

Commit

Permalink
Ref #212
Browse files Browse the repository at this point in the history
Fix plot logo & tight layout bugs.
  • Loading branch information
EdwardSafford-NOAA committed Nov 19, 2024
1 parent 767125f commit 30dbcf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/eva/plotting/batch/base/plot_tools/figure_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@ def make_figure(handler, figure_conf, plots, dynamic_options, data_collections,
fig.tight_layout(**figure_conf['tight layout'])
else:
fig.tight_layout()
figure_conf.pop('tight layout')

if 'plot logo' in figure_conf:
fig.plot_logo(**figure_conf['plot logo'])
figure_conf.pop('plot logo')

saveargs = get_saveargs(figure_conf)
fig.save_figure(output_file, **saveargs)
Expand Down
7 changes: 4 additions & 3 deletions src/eva/tests/config/testMonDataSpaceHirs4Metop-A.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ graphics:
figure size: [12,10]
title: 'hirs4_metop-a | Channel 1 | Obs Count'
output name: lineplots/hirs4_metop-a/hirs4_metop-a.0.count.png
#plot logo:
# which: 'noaa/nws'
# loc: 'upper right'
plot logo:
which: 'noaa/nws'
loc: 'upper right'
tight layout:
plots:
- add_xlabel: 'Cycle Time'
add_ylabel: 'Observation Count'
Expand Down

0 comments on commit 30dbcf8

Please sign in to comment.