Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4046
| X-Received | by 2002:a6b:590e:: with SMTP id n14-v6mr3786490iob.70.1537955765430; Wed, 26 Sep 2018 02:56:05 -0700 (PDT) |
|---|---|
| X-Received | by 2002:a9d:618e:: with SMTP id g14-v6mr75305otk.3.1537955765214; Wed, 26 Sep 2018 02:56:05 -0700 (PDT) |
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x188-v6no58177ite.0!news-out.google.com!z5-v6ni69ite.0!nntp.google.com!x188-v6no58173ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.graphics.apps.gnuplot |
| Date | Wed, 26 Sep 2018 02:56:05 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=88.151.157.78; posting-account=c7EUmQoAAAAw8hXP5LHJuxidZPywl80a |
| NNTP-Posting-Host | 88.151.157.78 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <675230bb-3b05-4325-8020-ed5ec323b7ac@googlegroups.com> (permalink) |
| Subject | Rescale axis after smooth |
| From | NeilB <neil@moogsoft.com> |
| Injection-Date | Wed, 26 Sep 2018 09:56:05 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| Lines | 64 |
| Xref | csiph.com comp.graphics.apps.gnuplot:4046 |
Show key headers only | View raw
Hi there, I'm having problems rescaling an axis with smoothed data. My csv data is a capture of cpu usage for a process and its generally quite low numbers but with occasional very large spikes e.g: Time,CPU 0,3 1,5 2,4 3,8 4,5 5,10 6,2 7,5 8,10 9,854 10,12 11,4 12,5 13,8 14,7 15,10 16,5 17,7 18,153 19,3 20,6 If I plot this using: set datafile separator "," set terminal png size 1000,500 set title "CPU vs Time" set ylabel "CPU (%)" set xlabel "Time (s)" set key outside; set key right center; set grid plot "temp.csv" u 1:2 smooth sbezier lw 2 title 'cpu' I get a nice smoothed CPU graph but the y axis maximum is set to the max of the csv data i.e. 854 so the curve is very low in the plot. I want to set the y axis maximum to be the max of the smoothed data and have tried using the MIN/MAX variables and replot i.e: set datafile separator "," set terminal png size 1000,500 set title "CPU vs Time" set ylabel "CPU (%)" set xlabel "Time (s)" set key outside; set key right center; set grid plot "temp.csv" u 1:2 smooth sbezier lw 2 title 'cpu' set yr [GPVAL_DATA_Y_MIN:GPVAL_DATA_Y_MAX] replot ...but got the same result. Is this doable? Can anyone help? many thanks, Neil
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Rescale axis after smooth NeilB <neil@moogsoft.com> - 2018-09-26 02:56 -0700
Re: Rescale axis after smooth Karl Ratzsch <mail.kfr@gmx.net> - 2018-09-26 12:33 +0200
Re: Rescale axis after smooth NeilB <neil@moogsoft.com> - 2018-09-26 03:50 -0700
csiph-web