import click


def map_setup_options(f):
    """Create common options for making 2D maps of the data set"""
    f = click.option('--peratom',
                     help='Save the per-atom projection.',
                     default=False, is_flag=True)(f)
    f = click.option('--adjusttext/--no-adjusttext',
                     help='Adjust the annotation texts so they do not overlap.',
                     default=False)(f)
    f = click.option('--annotate', '-a',
                     help='Location of tags to annotate the samples.',
                     default='none', type=str)(f)
    f = click.option('--aspect_ratio', '-ar',
                     help='Aspect ratio of the plot',
                     show_default=True, default=2, type=float)(f)
    f = click.option('--style', '-s',
                     type=click.Choice(['default', 'journal'], case_sensitive=False),
                     help='Style of the plot.',
                     show_default=True, default='default')(f)
    return f