Creates hidden information for the legend margin and legend scale to using autolegend function.
Useful links