From 5c43e8f2fcca438f5a4083692334fe097898936f Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 4 Aug 2012 16:03:01 +0200 Subject: [PATCH] plotit.c #2/9, emphasize maximize/minimize --- src/frontend/plotting/plotit.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend/plotting/plotit.c b/src/frontend/plotting/plotit.c index 96d2af9c4..7afcb8652 100644 --- a/src/frontend/plotting/plotit.c +++ b/src/frontend/plotting/plotit.c @@ -764,9 +764,9 @@ plotit(wordlist *wl, char *hcopy, char *devname) * that will go to Y axis */ dd = ft_minmax(d, FALSE); - if (dd[0] < ylims[0]) + if (ylims[0] > dd[0]) ylims[0] = dd[0]; - if (dd[1] > ylims[1]) + if (ylims[1] < dd[1]) ylims[1] = dd[1]; } } else { @@ -774,9 +774,9 @@ plotit(wordlist *wl, char *hcopy, char *devname) ylims[1] = - ylims[0]; for (d = vecs; d; d = d->v_link2) { dd = ft_minmax(d, TRUE); - if (dd[0] < ylims[0]) + if (ylims[0] > dd[0]) ylims[0] = dd[0]; - if (dd[1] > ylims[1]) + if (ylims[1] < dd[1]) ylims[1] = dd[1]; } @@ -804,9 +804,9 @@ plotit(wordlist *wl, char *hcopy, char *devname) */ dd = ft_minmax(d, TRUE); - if (dd[0] < xlims[0]) + if (xlims[0] > dd[0]) xlims[0] = dd[0]; - if (dd[1] > xlims[1]) + if (xlims[1] < dd[1]) xlims[1] = dd[1]; } } else { @@ -814,9 +814,9 @@ plotit(wordlist *wl, char *hcopy, char *devname) xlims[1] = - xlims[0]; for (d = vecs; d; d = d->v_link2) { dd = ft_minmax(d->v_scale, TRUE); - if (dd[0] < xlims[0]) + if (xlims[0] > dd[0]) xlims[0] = dd[0]; - if (dd[1] > xlims[1]) + if (xlims[1] < dd[1]) xlims[1] = dd[1]; } for (d = vecs; d; d = d->v_link2) {