Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch script does not turn off column/row labels and legend as specified in the configuration file #347

Open
lizadams opened this issue Jul 10, 2024 · 1 comment
Assignees

Comments

@lizadams
Copy link
Contributor

lizadams commented Jul 10, 2024

Describe the bug
These issues were reported by Chris Nolte in the following presentation
2024-06-verdi-issues.pptx

Issue 1: parsing configuration file
Issue 2: turn off column/row labels when configuring plot ( title, subtitle, footer, axis lines and domain and range tick labels)
Issue 3: managing white space on plot: remove footer 1 and display footer 2 in the footer 1 position.

To Reproduce
Steps to reproduce the behavior:

  1. Untar the tar.gz file that is provided at the bottom of this issue to your machine
  2. Use the verdi batch script method to load a dataset, load a configuration file, create plot, and save plot image.
  3. The configuration file containes options to turn off the column/row labels (axis lines and domain and range tick labels)
  4. verdi.command -batch $cwd/tileplot_png_test.txt

The above file contains the following content: (you will need to edit the paths in the script)

<Global>
  dir=/Users/lizadams/downloads/nolte_test
  configFile=/Users/lizadams/downloads/nolte_test/test_configure.cfg
  f=yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_Ref_2015
  f=yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_2015_2015
  saveImage=png
  imageDir=/Users/lizadams/downloads/nolte_test
</Global>

#######################
# Data files picked   #
# up from patterns    #
# specified for names #
#######################

<Task>
  s=PM25[1]-PM25[2]
  imageFile=PM25_Ref-2015
  gtype=tile
</Task>

<Task>
  s=PM25_OA[1]-PM25_OA[2]
  imageFile=PM25_OA_Ref-2015
  gtype=tile
</Task>

It generates the following plot for PM25:

PM25_Ref-2015

Expected behavior
It should create the same plot as the command line option with the x and y axis lines removed, the configuration plot has been modified to hide the tick marks and axis labels by making them white, and legend removed as per the config file, except this plot also has a bug, in that the subtitle won't turn off.

cd ~/downloads/
verdi.command -f $cwd/yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_Ref_2015 -f $cwd/yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_2015_2015 -configFile $cwd/test_configure.cfg -s "PM25[1]-PM25[2]" -g tile -saveImage "png" $cwd/test.png -quit

Screenshots

Output from command line option

test

Desktop (please complete the following information):

  • OS: Mac

Additional context
Please see the attached tar.gz file that contains the files and configuration files used in the examples above.
nolte_test.tar.gz

Chris Nolte has also updated his example to use files available from the VERDI distribution.
It is available on atmos under the following directory:

/home/cnolte/project/verdi

@yadongxuEPA
Copy link
Collaborator

Tested with VERDI_2.1.5_linux64_20240824.tar.gz on Atmos, found that this issue has resolved.
Used this "test_configure.cfg"
testing_20240824_issue_347_1
In the output image, the x and y axis lines, titles, sub-titles and legend were removed.
PM25_OA_Ref-2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants