CEMPD / VERDI

This is the repo for the VERDI project, written in java.
GNU General Public License v3.0
16 stars 13 forks source link

VERDI legend placement #307

Closed lizadams closed 1 year ago

lizadams commented 1 year ago

Describe the bug

Zac Aldeman submitted the following issue to the CMAS Forum. https://forum.cmascenter.org/t/verdi-legend-placement/3594/4

I've confirmed the bug on 2.1.3 and 2.1.4. I haven't tried older versions.

To Reproduce Steps to reproduce the behavior:

  1. Download the gridded emissions file for the CONUS2 domain: https://github.com/lizadams/VERDI/blob/master/verdi_dist/distfiles/data/release/model/emis_mole_all_20151222_12US2_nobeis_norwc_2016fh_16j.CO.ncf Note, this file is not exactly the same as what Zac used, so the units are not the same. The domain is the same.
  2. Run the following script ./verdi.command -f ~/downloads/emis_mole_all_20151222_12US2_nobeis_norwc_2016fh_16j.CO.ncf -s "CO[1]" -titleString "Daily Total Emissions:CO" -subTitle1 "Grid: 12US2 - Simulation: LADCO_2016d" -subTitle2 "Inventory Sector: nonpt" -g tile -saveImage "png" ~/downloads/emissions.CO.png -quit
  3. Note, the legend gets moved to the size due to the length and font size of the Title String, and the number of subTitles.
  4. If you remove -subTitle2, then the legend looks ok.
  5. This also happens when you add these titles and subtitles to the GUI using configure

Expected behavior Titles and Subtitles can be added without impacting the position of the legend on the tile plot.

Screenshots Plot with Title and 2 subtitles. emissions CO

Plot with Title and only 1 subtitle. emissions CO onesubtitle

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

yadongxuEPA commented 1 year ago

Retested VERDI_2.1.4_linux64_20220930.tar.gz on Atmos, found that the issue has resolved. image Screenshot_VERDI_issue_307_1

yadongxuEPA commented 1 year ago

Retested VERDI_2.1.4_linux64_20221007.tar.gz on Atmos, confirmed that the issue has resolved.

yadongxuEPA commented 8 months ago

Checked VERDI_2.1.5_linux64_20231222.tar.gz on Atmos and it worked.

lizadams commented 8 months ago

Checked VERDI_2.1.5_mac_20240103.tar.gz on mac and it worked.