summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/fplot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/fplot.c b/sys/src/cmd/fplot.c
index 259f03a10..8bc53010c 100644
--- a/sys/src/cmd/fplot.c
+++ b/sys/src/cmd/fplot.c
@@ -410,8 +410,6 @@ drawgraph(Code *co, Rectangle *r)
{
int x;
- gymin = Inf(1);
- gymax = Inf(-1);
for(x = r->min.x; x < r->max.x; x++)
drawinter(co, r, convx(r, x), convx(r, x + 1), 0);
}
@@ -567,6 +565,8 @@ drawgraphs(void)
int i;
color = display->black;
+ gymin = Inf(1);
+ gymax = Inf(-1);
for(i = 0; i < nfns; i++)
drawgraph(&fns[i], &screen->r);
if(!aflag)