mirror of
https://github.com/wassname/matplotlibrc.git
synced 2026-09-09 11:26:43 +08:00
Adds short output argument
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ ap = argparse.ArgumentParser()
|
||||
ap.add_argument('style', help='Which rc file to use. One of %s' % available)
|
||||
ap.add_argument('--plot', default='all', help='One of [scatter, hist, line, image], or '
|
||||
'a comma-separated list of a subset. Default is all.')
|
||||
ap.add_argument('--output', required=False, help='Render the plot to a file')
|
||||
ap.add_argument('-o', '--output', required=False, help='Render the plot to a file')
|
||||
args = ap.parse_args()
|
||||
|
||||
matplotlib.rc_file(os.path.join(HERE, 'rc', args.style))
|
||||
|
||||
Reference in New Issue
Block a user