def get_parser_plot(subparsers, parents=[]):
    """Create the parser for the "plot" sub-command."""
    parser = subparsers.add_parser('plot', usage=
        '%(prog)s [options]... casepath...', description=
        "Script that plots pickled data in .npz, .hdf5 file to figures in a directory beside pickled data. It also accepts 'convert options', as subcommand 'plot' is beyond 'convert'."
        , add_help=False, parents=parents)
    optgrp = parser.add_argument_group('plot options')
    optgrp.add_argument('--datagroups_filter', type=eval, metavar='Filter',
        help='Function(str) to filter datagroups in pickled data')
    optgrp.add_argument('--select', type=str, action='append', metavar=
        'Pattern', help='Patterns for selecting figures to plot')
    optgrp.add_argument('--style', type=str, action='append', metavar=
        'Style', help='Style name of figures')
    optgrp.add_argument('--figext', type=str, default='png', choices=['png',
        'pdf', 'ps', 'eps', 'svg', 'jpg'], help=
        'Extension of saved figures, (default:  %(default)s)')
    return parser
