def build_essential_plots(lr: float, batch_size: int, eval_metric: str, eval_metric_color: str) -> list:
    """Create a list of plot definitions for the trainer to build from dumped logs.
    The plots included here correspond to the training loss and the performance on dev.

    :param lr: learning rate value
    :param batch_size: number of sentences in a batch
    :param eval_metric: the evaluation metric name
    :param eval_metric_color: the matplotlib color with which to draw the plot
    :return: a list of dictionaries describing each plot for a `Trainer`
    """
    return [
        {
            'log_file': 'loss.log',
            'metric': 'Loss',
            'bottom': None, 'top': None,
            'color': 'blue',
            'title': f'Train Loss - lr={lr} - batch_size={batch_size}',
            'filename': 'loss-plot'
        },
        {
            'log_file': 'metric.log',
            'metric': eval_metric,
            'bottom': 0.,
            'top': 1.,
            'color': eval_metric_color,
            'title': f'Dev {eval_metric} - lr={lr} - batch_size={batch_size}',
            'filename': f"dev-{eval_metric.lower().replace(' ', '-')}-plot"
        }
    ]