2 plot problemsfixed:
-error when only one algo
-minimum should be taken from data, not always from zero