def METHOD_NAME(parser, default_plot_height=30, default_plot_width=30):
    """Adds arguments related to plot grids.
    This is used for the thumbnail plotting but also for the tables.
    """
    group = parser.add_argument_group('Plot Grid Configuration',
                                      'Arguments for the plot image grid.')
    group.add_argument('--max-rois', dest='max_rois', metavar='NUM',
                        type=int, default=0,
                        help='Maximal number of ROIs, 0 for all.')
    group.add_argument('--max-value', dest='max_value', metavar='NUM',
                        type=int, default=0,
                        help='Largest y value to plot, 0 for all.')
    group.add_argument('--num-rows', dest='num_rows', metavar='ROWS',
                        type=int, default=50,
                        help='Number of rows per grid.')
    group.add_argument('--num-cols', dest='num_cols', metavar='COLS',
                       type=int, default=40,
                       help='Number of columns per grid.')
    group.add_argument('--plot-height', dest='plot_height', metavar='HEIGHT',
                       type=int, default=default_plot_height, help='Height of one plot in px.')
    group.add_argument('--plot-width', dest='plot_width', metavar='WIDTH',
                       type=int, default=default_plot_width, help='Width of one plot in px.')
    group.add_argument('--border-width', dest='border_width', metavar='WIDTH',
                       type=int, default=0, help='Border width.')
    group.add_argument('--spacing', dest='spacing', metavar='SPACING',
                       type=int, default=2, help='Spacing.')