fixed bug so that also plots with less then 20 terms are displayed properly (i.e. with the full legend)