Methods $graph->set_legend(@legend_keys); Sets the keys for the legend. The elements of @legend_keys correspond to the data sets as provided to plot(). If a key is undef or an empty string, the legend entry will be skipped.