diff --git a/bin/postprocessing/exportscreenshot2d.py b/bin/postprocessing/exportscreenshot2d.py index aebb7e4ef1bc0f0797076bde57336029951849dd..13798776088d1fe2d40db17647142c1ce0239abe 100644 --- a/bin/postprocessing/exportscreenshot2d.py +++ b/bin/postprocessing/exportscreenshot2d.py @@ -17,18 +17,21 @@ parser = argparse.ArgumentParser( description='Export a screenshot of a standard 2D plot. To change the color palette, change the default in the paraview GUI.' ) # on/off-type features -feature_parser = parser.add_mutually_exclusive_group(required=False) -feature_parser.add_argument('--offscreen', dest='offscreen', action='store_true', help='Enable offscreen rendering (large pixel size)') -feature_parser.add_argument('--no-offscreen', dest='offscreen', action='store_false', help='Disable offscreen rendering (low pixel sizes)') +offscreen = parser.add_mutually_exclusive_group(required=False) +offscreen.add_argument('--offscreen', dest='offscreen', action='store_true', help='Enable offscreen rendering (large pixel size)') +offscreen.add_argument('--no-offscreen', dest='offscreen', action='store_false', help='Disable offscreen rendering (low pixel sizes)') parser.set_defaults(offscreen=False) -feature_parser.add_argument('--showAxesGrid', dest='showAxesGrid', action='store_true', help='Show the axes grid for the domain') -feature_parser.add_argument('--no-showAxesGrid', dest='showAxesGrid', action='store_false', help='Do not show the axes grid for the domain') +showaxesgrid = parser.add_mutually_exclusive_group(required=False) +showaxesgrid.add_argument('--showAxesGrid', dest='showAxesGrid', action='store_true', help='Show the axes grid for the domain') +showaxesgrid.add_argument('--no-showAxesGrid', dest='showAxesGrid', action='store_false', help='Do not show the axes grid for the domain') parser.set_defaults(showAxesGrid=False) -feature_parser.add_argument('--showLegend', dest='showLegend', action='store_true', help='Show the parameter legend/range') -feature_parser.add_argument('--no-showLegend', dest='showLegend', action='store_false', help='Do not show the parameter legend/range') +showlegend = parser.add_mutually_exclusive_group(required=False) +showlegend.add_argument('--showLegend', dest='showLegend', action='store_true', help='Show the parameter legend/range') +showlegend.add_argument('--no-showLegend', dest='showLegend', action='store_false', help='Do not show the parameter legend/range') parser.set_defaults(showLegend=True) -feature_parser.add_argument('--showOrientationAxes', dest='showOrientationAxes', action='store_true', help='Show the orientation axis') -feature_parser.add_argument('--no-showOrientationAxes', dest='showOrientationAxes', action='store_false', help='Do not the orientation axis') +showorientaxes = parser.add_mutually_exclusive_group(required=False) +showorientaxes.add_argument('--showOrientationAxes', dest='showOrientationAxes', action='store_true', help='Show the orientation axis') +showorientaxes.add_argument('--no-showOrientationAxes', dest='showOrientationAxes', action='store_false', help='Do not the orientation axis') parser.set_defaults(showOrientationAxes=False) # more complicated features parser.add_argument('-f', '--files', nargs='+', required=True, help="vtu files to be processed")