From: Pierre Habouzit (MadCoder Date: Mon, 17 Jan 2005 00:48:43 +0000 (+0000) Subject: better zoom X-Git-Tag: xorg/old~389 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=79ef6c5e7091e7028a5cb00229af69e652934eac;p=platal.git better zoom git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-368 --- diff --git a/htdocs/stats/graph_evolution.php b/htdocs/stats/graph_evolution.php index ddd8546..44224f4 100644 --- a/htdocs/stats/graph_evolution.php +++ b/htdocs/stats/graph_evolution.php @@ -60,8 +60,9 @@ for ($i=-$JOURS;$i<=0;$i++) { //Genere le graphique à la volée avec GNUPLOT header( "Content-type: image/png"); -$ymin = round($init_nb*0.95,0); -$ymax = round($total *1.05,0); +$delt = ($total - $init_nb)/10; +$ymin = round($init_nb - $delt,0); +$ymax = round($total + $delt,0); $gnuplot = <<