From d3ae6f25dd1acd2f1f7d71189d2315774363405e Mon Sep 17 00:00:00 2001 From: Wilson Wang Date: Wed, 2 Jun 2021 13:30:05 -0700 Subject: [PATCH] tools: fix small rw-heatmaps python plot script argument parsing bug (cherry picked from commit 5b6b3ffe0b9fca7c72edfc2218e98357d1152872) --- tools/rw-heatmaps/plot_data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/rw-heatmaps/plot_data.py b/tools/rw-heatmaps/plot_data.py index de139d612..d02c70015 100755 --- a/tools/rw-heatmaps/plot_data.py +++ b/tools/rw-heatmaps/plot_data.py @@ -23,9 +23,11 @@ def parse_args(): help='second input data files in csv format. (optional)') parser.add_argument('-t', '--title', dest='title', type=str, required=True, help='plot graph title string') - parser.add_argument('-z', '--zero-centered', dest='zero', type=bool, required=False, + parser.add_argument('-z', '--zero-centered', dest='zero', action='store_true', required=False, help='plot the improvement graph with white color represents 0.0', default=True) + parser.add_argument('--no-zero-centered', dest='zero', action='store_false', required=False, + help='plot the improvement graph without white color represents 0.0') parser.add_argument('-o', '--output-image', dest='output', type=str, required=True, help='output image filename') return parser.parse_args()