Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1739 > unrolled thread
| Started by | Mark Scott <mylastname+ME@talk21.com> |
|---|---|
| First post | 2013-04-04 11:17 +0000 |
| Last post | 2013-04-06 18:57 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
This ought to be easy! Mark Scott <mylastname+ME@talk21.com> - 2013-04-04 11:17 +0000
Re: This ought to be easy! Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2013-04-04 18:55 +0200
Re: This ought to be easy! Mark Scott <mylastname+ME@talk21.com> - 2013-04-04 18:59 +0000
Re: This ought to be easy! Mark Scott <mylastnameME@talk21.com> - 2013-04-06 18:57 +0000
| From | Mark Scott <mylastname+ME@talk21.com> |
|---|---|
| Date | 2013-04-04 11:17 +0000 |
| Subject | This ought to be easy! |
| Message-ID | <qjd7t.212718$oT2.137417@en-nntp-06.am2.easynews.com> |
I am attempting to create 2D filled surface charts from solar panel output data. I have a simple data file for each day's generation, in this format: HH:mm kW 00:00 0 00:10 0.000 00:20 0.000 00:30 0.000 00:40 0.000 .. and so on, with a power level for each 10-minute interval up to 23:50. The power level never gets above 3kW. I want to create a simple black-and-white curve showing the power levels by time of day across the 24-hour period. On an ideal day this would look like a classic normal distribution curve. I am using commands such as this: set yrange [0:5] set xdata time set timefmt "%H:%M" set format x "%H:%M" set xrange ["00:00":"24:00"] plot "./2012-06-15.dat" with lines I am being thwarted by the message "Need full using spec for x time data". If I re-issue the same "set format" command after the error and replot, it draws a chart, but using points not lines. Don't understand - is there some proper order to issue the commands in? Come on, this really should be simple! I have spent hours reading different sections of the manual and trying all kinds of variations of the plot command and set commands, but I just can't figure it out and am getting really frustrated! Can anyone offer a solution, or even a clue? BTW I am using Version 4.6 patchlevel 0 on Ubuntu 12.10.
[toc] | [next] | [standalone]
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Date | 2013-04-04 18:55 +0200 |
| Message-ID | <as5pkdFeqfaU1@mid.dfncis.de> |
| In reply to | #1739 |
On 04.04.2013 13:17, Mark Scott wrote: > I am using commands such as this: > set yrange [0:5] > set xdata time > set timefmt "%H:%M" > set format x "%H:%M" > set xrange ["00:00":"24:00"] > plot "./2012-06-15.dat" with lines > > I am being thwarted by the message "Need full using spec for x time data". So how about you do what the message asks you to: give it a using spec(ification), as explained in 'help using'?
[toc] | [prev] | [next] | [standalone]
| From | Mark Scott <mylastname+ME@talk21.com> |
|---|---|
| Date | 2013-04-04 18:59 +0000 |
| Message-ID | <94k7t.149013$Fu1.41910@en-nntp-04.am2.easynews.com> |
| In reply to | #1740 |
On Thu, 04 Apr 2013 18:55:41 +0200, Hans-Bernhard Bröker wrote: > > So how about you do what the message asks you to: give it a using > spec(ification), as explained in 'help using'? Well I tried! I had tried all sorts of different variations of "using", and none of them worked up to the time I made my post. But I persisted and I did finally get an output more or less like I wanted. FWIW, these are the commands I have ended up using: set yrange [0:5] set style data lines set style fill solid set border 3 set tics nomirror set xdata time set grid ytics unset key set timefmt "%H:%M" set format x "%H:%M" set xrange ["00:00":"24:00"] plot "./2012-06-16.dat" using 1:2 with filledcurves lt -1
[toc] | [prev] | [next] | [standalone]
| From | Mark Scott <mylastnameME@talk21.com> |
|---|---|
| Date | 2013-04-06 18:57 +0000 |
| Message-ID | <ne_7t.214103$Qv2.20469@en-nntp-03.am2.easynews.com> |
| In reply to | #1741 |
On Thu, 04 Apr 2013 18:59:17 +0000, Mark Scott wrote: > On Thu, 04 Apr 2013 18:55:41 +0200, Hans-Bernhard Bröker wrote: >> >> So how about you do what the message asks you to: give it a using >> spec(ification), as explained in 'help using'? Actually I think what fixed it was dropping the header row from the input data file. Gnuplot doesn't like header rows when the xdata is time format.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web