You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
(6) |
Oct
(3) |
Nov
(2) |
Dec
|
|
From: Mikhail K. <mko...@gm...> - 2012-11-27 20:36:48
|
more elaborate object specification:
set object 1 circle at 0,0 size 0.4 fc rgb "red" fs transparent solid
0.3 border lc rgb "blue" lw 3.0
On 27/11/2012 21:03, Mikhail Kononets wrote:
> set object 1 circle at 0,0 size 1 fc lt 0
>
> produces a black circle for me (gnuplot 4.4.3)
>
> On 27/11/2012 20:03, Philipp K. Janert wrote:
>>
>> Is there a way to set the linetype or style for an object?
>>
>> Something like this:
>> set object 1 circle at 0,0 size 1 lt 0
>> does not seem to work:
>> Unrecognized or duplicate option
>>
>> (At least in gnuplot 4.4.)
>
--
Mikhail Kononets
Ph.D. Student
Marine Chemistry
Department of Chemistry and Molecular Biology
University of Gothenburg
Kemivagen 10
SE-412 96
Gothenburg, Sweden
office num.: +46-31-786-9063
mobile num.: +46-70-216-0936
e-mail: m.k...@ch...
mko...@gm...
|
|
From: Mikhail K. <mko...@gm...> - 2012-11-27 20:03:59
|
set object 1 circle at 0,0 size 1 fc lt 0 produces a black circle for me (gnuplot 4.4.3) On 27/11/2012 20:03, Philipp K. Janert wrote: > > Is there a way to set the linetype or style for an object? > > Something like this: > set object 1 circle at 0,0 size 1 lt 0 > does not seem to work: > Unrecognized or duplicate option > > (At least in gnuplot 4.4.) |
|
From: Philipp K. J. <ja...@ie...> - 2012-11-27 19:30:39
|
Is there a way to set the linetype or style for an object? Something like this: set object 1 circle at 0,0 size 1 lt 0 does not seem to work: Unrecognized or duplicate option (At least in gnuplot 4.4.) |
|
From: Oberwittler, D. <d.o...@mp...> - 2012-11-27 16:03:39
|
Dear list members, can gnuplot turn a simple bar chart (histogram) with data from a .dat-file into a circular polar plot, like the examples on this page show: http://scienceoss.com/categories/python/matplotlib/ I have seen examples in gnuplot using functions, but not simple using bars representing data points. a basic example for the histogram would be: ********************************* reset set xlabel "category" set ylabel "value" set grid set xrange [0:7] set yrange [0:10] set style data boxes set style fill solid 1.0 set boxwidth 0.95 relative plot "temp1.dat" u 1:2 w boxes ********************************** where the data is: ================================== 1 7.5 2 5.8 3 7.9 4 4.2 5 5.0 6 7.7 ================================= Any tipps are appreciated! Many thanks Dietrich |
|
From: Mikhail K. <mko...@gm...> - 2012-11-24 03:21:01
|
for the last two examples at http://gnuplot.sourceforge.net/demo/heatmaps.html, i think the "splot" command needs an argument of 1:2:3:4 which is a regular grid of parameter 3 and parameter 4 at 1:2, with no blank lines. other important instructions are: set pm3d ... set view ... set contour ... the examples are straightforward and understandable but very concise so be careful. On 24/11/2012 02:04, James Cloos wrote: >>>>>> "MK" == Mikhail Kononets<mko...@gm...> writes: > > MK> does the demo http://gnuplot.sourceforge.net/demo/heatmaps.html explain > MK> what you are looking for? see last two examples. > > Argh. I missed that. > > I thought I had tried using 1:2:3:4, but perhaps only with the existing files > (which lack blank lines; they are just lists of points). > > I take it then that all I need to do is to sort the files to create iso-lines > and add blanks between those, yes? > > Sort(1) should handle the sorting; I'll just need to write a simple program > which adds a blank line whenever a specified column changes value. > > Thanks. > > -JimC |
|
From: James C. <clo...@jh...> - 2012-11-24 01:15:46
|
>>>>> "MK" == Mikhail Kononets <mko...@gm...> writes: MK> does the demo http://gnuplot.sourceforge.net/demo/heatmaps.html explain MK> what you are looking for? see last two examples. Argh. I missed that. I thought I had tried using 1:2:3:4, but perhaps only with the existing files (which lack blank lines; they are just lists of points). I take it then that all I need to do is to sort the files to create iso-lines and add blanks between those, yes? Sort(1) should handle the sorting; I'll just need to write a simple program which adds a blank line whenever a specified column changes value. Thanks. -JimC -- James Cloos <cl...@jh...> OpenPGP: 1024D/ED7DAEA6 |
|
From: Mikhail K. <mko...@gm...> - 2012-11-22 20:34:40
|
Hi James does the demo http://gnuplot.sourceforge.net/demo/heatmaps.html explain what you are looking for? see last two examples. Mikhail On 22/11/2012 01:17, James Cloos wrote: > I'd like to do pm3d splots of datafiles using three columns for x, y, z > and a fourth column for the color at that point. > > Can gnuplot do that without first pre-processing the data into datablocks? > > If not, what should the files look like to specify a colour independent of > the third (aka z) column? > > -JimC |
|
From: James C. <clo...@jh...> - 2012-11-22 00:23:46
|
I'd like to do pm3d splots of datafiles using three columns for x, y, z and a fourth column for the color at that point. Can gnuplot do that without first pre-processing the data into datablocks? If not, what should the files look like to specify a colour independent of the third (aka z) column? -JimC -- James Cloos <cl...@jh...> OpenPGP: 1024D/ED7DAEA6 |
|
From: Mikhail K. <mko...@gm...> - 2012-11-21 21:27:47
|
Hi all.
Does anyone by a chance knows a less crude way to get a dataset plotted
as "filledcurves" with gradient fill, other than used by me?
My code and the plot are attached. With my code only one dataset is
possible obviously, and i would like to be able plot more than one.
thank you,
Mikhail
set term pngcairo enhanced font "Helvetica,12" size 500,200
set datafile separator "\t"
set xdata time
set timefmt "%b %d, %Y %H:%M"
set xrange ["Oct 27, 2012 00:00" to "Nov 27, 2012 00:00"]
set format x "%b %d"
set table
set output "/dev/null"
set timefmt "%Y-%m-%d %H:%M:%SZ"
plot \
"Loven_Wind_data.txt" \
using 1:6
unset table
X_MAX=GPVAL_X_MAX
X_MIN=GPVAL_X_MIN
DATA_X_MAX=GPVAL_DATA_X_MAX
DATA_X_MIN=GPVAL_DATA_X_MIN
set output "TEST01-10-sensor_data-11-temperature.png"
set lmargin at screen 0.1
set rmargin at screen 0.95
set tmargin at screen 0.90
set bmargin at screen 0.10
A = -20
B = 25
set yrange [A to B]
set multiplot
unset ytics
unset y2tics
unset xtics
set key off
set pm3d map
set palette defined ( -20.0 "black", -5.0 "blue", 0.0 "white", 10.0
"red", 25.0 "black" )
unset colorbox
set isosamples 200
splot y notitle
unset pm3d
if (X_MAX>DATA_X_MAX) \
set timefmt "%s"; \
set object 1 rectangle from DATA_X_MAX, graph 0 to graph 1, graph 1
fc rgb "white" fs solid 1.0 border; \
plot 0/0 notitle; \
unset object 1
if (X_MIN<DATA_X_MIN) \
set timefmt "%s"; \
set object 1 rectangle from graph 0, graph 0 to DATA_X_MIN, graph 1
fc rgb "white" fs solid 1.0 border; \
plot 0/0 notitle; \
unset object 1
set timefmt "%Y-%m-%d %H:%M:%S"
plot \
"Loven_Wind_data.txt" \
using 1:($5>0 ? $5 : 0):(25) w filledcurves below fc rgb "white"
notitle, \
"" using 1:($5<=0 ? $ 5 : 0):(-20) w filledcurves above fc rgb
"white" notitle
set ylabel "Air temperature, C"
set border
set ytics -20,10
set xtics
set grid
plot \
"Loven_Wind_data.txt" \
using 1:5 w l lt -1 notitle
unset multiplot
unset output
|
|
From: Patrick W. <pat...@gm...> - 2012-11-20 21:23:36
|
Hey all, I'm trying to use iozone to perform some disk benchmarks on Ubuntu 11.10. The problem is that, although iozone has scripts to automatically generate plots in gnuplot, http://www.iozone.org/src/current/gnu3d.dem is for out-of-date gnuplot (to my knowledge). I haven't found a (working) solution/patch, although I found a number of non-working ones! I'm not sure what I need to do to gnu3d.dem to make it work with gnuplot 4.4 patchlevel 3 Any ideas? Thanks in advance, Pat Wilbur -- Patrick F. Wilbur Computer Science Graduate at Clarkson University pat...@gm... wil...@cl... Check out our book: http://runningxen.com My website: http://pdub.net |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-11-15 21:27:01
|
On 15.11.2012 14:35, sabretoothedhamster wrote: > But if I try to show the time values (from the first column, by "using > ($0):4:xticlabels(1)") instead of line numbers then gnuplot goes mad. Not really. It just does exactly what you asked it to. So whatever madness may have ensued: it was caused by you. What did you expect to happen when you added "xticslabels(1)", other than what the documentation clearly says it does: put a tick label at every data point? On what basis did you conclude this would be a useful thing to do in this use case? > How can I force gnuplot to thin textual labels out? Only by thinning out the data. See "every". |
|
From: sabretoothedhamster <nab...@ne...> - 2012-11-15 13:35:52
|
Hello gnuplot gurus!
Help me please with unexpected gnuplot (4.6/win32) behavior.
I do have the data file which looks like this:
...
21:20:58.784;538633;752;543;520;541;1;70;543;521;541
21:20:58.799;538734;755;543;521;541;1;70;543;520;541
21:20:58.831;538835;754;542;520;541;1;70;543;520;541
....
And I have got two issues while trying to plot it.
1st. If I plot with the following script:
=============================================
reset
set datafile separator ';'
set title "Test"
set terminal windows size 1680,1050
set y2tics border
set yrange[440:640]
set y2range[-150:150]
set xtics border rotate by 90 autofreq offset 0,-2
plot "data.csv" \
every::1::25000 using ($0):4 title "V" with lines, \
"" u ($0):6 t "Vzero" w l, \
"" u ($0):9 t "Vmean" w l, \
"" u ($0):10 t "TurnA" w l, \
"" u ($0):5 t "BumpA" w l, \
"" u ($0):7 axes x1y2 t "dV" w l
=============================================
everything looks fine. Gnuplot puts line numbers as xticlabels with proper
interval (about 5000 with "autofreq" or any particular number given instead
of autofreq).
But if I try to show the time values (from the first column, by "using
($0):4:xticlabels(1)") instead of line numbers then gnuplot goes mad. It
prints time (and draws gridline) for every single line of data no matter if
I use 'autofreq' or specify precise step value.
How can I force gnuplot to thin textual labels out?
2nd. The minor one. Having the script from the first issue I have got
xticlabels (numbers) too close to the axis line. Bit if I try to put them
away by changing "offset 0,-2" to e.g. "offset 0,-3" xticlabels completely
disappear. I suppose they are not shown because their starting point appears
out of some bounding box, but I can not figure out which one and how to
extend it (preferably automatically, depending on the length of xticlabels).
Thanks you in advance!
--
View this message in context: http://old.nabble.com/how-to-thin-out-textual-xticlabels--tp34683698p34683698.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Shigeharu T. <sh...@ie...> - 2012-11-08 08:06:13
|
shige 11/07 2012 ---------------- I introduce a translation tool of gnuplot table data to a sound file, "tbl2wav", which is modified version of tbl2snd included in yomi (my Japanese speech tool). This requires libsndfile (http://www.mega-nerd.com/libsndfile/). http://takeno.iee.niit.ac.jp/~shige/unix/gnuplot/data/tbl2wav.c (C source file) Ex. gnuplot> set table "test1.tbl" gnuplot> plot sin(x), cos(x) gnuplot> unset table % tbl2wav test1.tbl test1.wav Currently, this supports only 2D table data. +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |
|
From: Robert S. <rob...@ru...> - 2012-11-03 18:18:23
|
Hi all, I'm plotting data from binary files, to be more precise one file contains 250k one-byte values measured with a sampling oscilloscope. Now gnuplot generates coordinates and labels the axes accordingly - x axis by number of data point (I get ticks at 50k, 100k, ..., 250k) and y axis according to the min/max value (I get ticks from -150 to +150). Is there any way to relabel the x axis in a custom way? For example, let's say that the x axis should display time values from 0 up to 250ns. Can I do this? Kind regards, Robert |
|
From: Aaron R. <aar...@gm...> - 2012-11-01 08:04:24
|
This works for the most part: plot DATAFILE using 4:1:5:(0):3:ytic(2) with vectors notitle nohead lc palette but still wondering if there is a why to the the whole line style and not just the color (so I could change widths or ps based on data) Thanks. On Thu, Nov 1, 2012 at 1:34 AM, Aaron Rich <aar...@gm...> wrote: > Hello, > > I'm wondering if there is a way to set the line style based on a value > from the plotted data? I'm trying to have all of my data in a single file > and just iterate over it. I want to use a column value to indicate what > color the line should be draw (may have same type of data from multiple > sources- color is used to indicate type. I haven't been able to get > anything to work yet. > > Sample data: > #yindex data_label type_indicator start length > 0 LABEL1 1 20 10 > 0 LABEL1 1 60 20 > > > 1 LABEL2 2 10 90 > > > 2 LABEL3 1 100 50 > > gnuplot file: > set style line 1 lt rgb 'black' lw 10 > set style line 2 lt rgb "cyan" lw 10 > > > I want to have something like this: > > plot DATAFILE using 4:1:5:(0):ytic(2) with vectors notitle nohead ls ($3) > > instead of: > plot DATAFILE using 4:1:5:(0):ytic(2) index 0 with vectors notitle nohead > ls 1, \ > DATAFILE using 4:1:5:(0):ytic(2) index 1 with vectors notitle nohead > ls 2, \ > DATAFILE using 4:1:5:(0):ytic(2) index 2 with vectors notitle nohead > ls 1, \ > ... > index n > > > > Thanks for any suggestions. > > -Aaron > |
|
From: Aaron R. <aar...@gm...> - 2012-11-01 07:34:54
|
Hello,
I'm wondering if there is a way to set the line style based on a value from
the plotted data? I'm trying to have all of my data in a single file and
just iterate over it. I want to use a column value to indicate what color
the line should be draw (may have same type of data from multiple sources-
color is used to indicate type. I haven't been able to get anything to work
yet.
Sample data:
#yindex data_label type_indicator start length
0 LABEL1 1 20 10
0 LABEL1 1 60 20
1 LABEL2 2 10 90
2 LABEL3 1 100 50
gnuplot file:
set style line 1 lt rgb 'black' lw 10
set style line 2 lt rgb "cyan" lw 10
I want to have something like this:
plot DATAFILE using 4:1:5:(0):ytic(2) with vectors notitle nohead ls ($3)
instead of:
plot DATAFILE using 4:1:5:(0):ytic(2) index 0 with vectors notitle nohead
ls 1, \
DATAFILE using 4:1:5:(0):ytic(2) index 1 with vectors notitle nohead
ls 2, \
DATAFILE using 4:1:5:(0):ytic(2) index 2 with vectors notitle nohead
ls 1, \
...
index n
Thanks for any suggestions.
-Aaron
|
|
From: BBands <bb...@gm...> - 2012-10-29 14:37:41
|
'help set format' will get you going with the label control you want. Some extra clues here: http://gnuplot.sourceforge.net/docs_4.2/node184.html<http://gnuplot.sourceforge.net/docs_4.2/node185.html> http://gnuplot.sourceforge.net/docs_4.2/node185.html set format x "%d-%b-%Y" 'help set xrange' will show you how to 'revert' the axes. set yrange[10:-10] Enjoy, John On Mon, Oct 29, 2012 at 2:42 AM, porton <po...@na...> wrote: > > I need natural numbers (without fractional numbers) on y-axis and discrete > dates (without hours and minutes) at x-axis. How? > > I also need to revert Y axis to show greater values below smaller. How? > |
|
From: porton <po...@na...> - 2012-10-29 09:42:33
|
I need natural numbers (without fractional numbers) on y-axis and discrete dates (without hours and minutes) at x-axis. How? I also need to revert Y axis to show greater values below smaller. How? -- View this message in context: http://old.nabble.com/How-to-change-the-tics--tp34614320p34614320.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Aaron R. <aar...@gm...> - 2012-10-25 03:35:12
|
Hello all,
I'm new to gnuplot and am hoping to get some advice on how to
accomplish the goal I'm trying to get to and/or improvements to what I
have so far.
I'm trying to make a chart that shows windows of a given time duration
and specific events, that occurred at a given time. The events are
grouped by type and source. The specific example is trying to show
which sensors in my house (motion, temperature, lights) are triggered
over a given time. I'd like to be able to show a window that indicates
the time a room is occupied and then samples from temperature in that
room. There may be multiple windows for the same run that I want to
have on the same line.
So far, here is what I have:
reset
#use for saving image
#set terminal png
#set output 'plot.png'
set title "Test plot"
#data file with measurements
DATAFILE='testdata'
#clean up the borders
set border 1
set xtics nomirror
set ytics nomirror
#unset ytics
#create map to have all the events of a given type have same style
stylemap(string) = (string eq 'TEMPMEASUREMENT' ? 1: \
string eq 'MOTION' ? 2 : \
1/0)
#map of each potential source of an event
sourcemap(index) = ( index == 1 ? 'ROOM1_TEMPSENSOR' : \
index == 2 ? 'ROOM1_MOTIONSENSOR' : \
index == 3 ? 'ROOM2' : \
1/0)
#test room occupied window data
ENTERTIME=0
EXITTIME=100
ENTERTIME_1=120
EXITTIME_1=150
#window
#TODO: yticlabel
#TODO: dynamic creation from datafile
set object 1 rect from ENTERTIME,0 to EXITTIME,0.1 fc rgb 'black'
set object 2 rect from ENTERTIME_1,0 to EXITTIME_1,0.1 fc rgb 'black'
set xrange[ENTERTIME-10:EXITTIME+10]
#TODO: set max to total index used
set yrange[-1:10]
set autoscale ymax
#add some style
set style line stylemap('TEMPMEASUREMENT') lt rgb "green" lw 3 pt 50
set style line stylemap('MOTION') lt rgb "blue" lw 3 pt 6 ps 2
#plot data.
plot DATAFILE using 3:1:ytic(sourcemap($1)) index 0 with points
notitle ls stylemap('TEMPMEASUREMENT'), \
DATAFILE using 3:1:ytic(sourcemap($1)) index 1 with points
notitle ls stylemap('MOTION'), \
DATAFILE using 3:1:ytic(sourcemap($1)) index 2 with points
notitle ls stylemap('TEMPMEASUREMENT')
###data file sample
#WHO WHAT WHEN
1 TEMPMEASUREMENT 10 1
1 TEMPMEASUREMENT 20 1
1 TEMPMEASUREMENT 30 1
1 TEMPMEASUREMENT 40 1
1 TEMPMEASUREMENT 50 1
2 MOTION 15
2 MOTION 25
2 MOTION 35
2 MOTION 45
2 MOTION 55
3 TEMPMEASUREMENT 13
3 TEMPMEASUREMENT 23
3 TEMPMEASUREMENT 33
3 TEMPMEASUREMENT 43
3 TEMPMEASUREMENT 53
3 TEMPMEASUREMENT 63
The questions I have:
1) Is there a better way to do the time windows other then using
objects? I really want to have all the data in data file. Is there a
way to have the object pull the enter/exit time from the data file? I
want to also add a label at the the ylabel for the windows. A yticmark
if you will. How can I add one that isn't tied to a data point (more
reason to want to pull windows from datafile. Just have some that y=0
that is labeled ROOM_OCCUPIED: __________ ________
_____ _____ ___________
2) From what I have read online, I can't use a string for the y value.
That is why I have the mapping functions to take the index (column
one) and translate it to the name for the ytic. Is there a way to do
this will out the map?
3) I want to get the "magic text" out of the plot call? I have tried
everything but I can't seem to find a way to pass the string from the
datafile into the stylemap call. I have tried
stylemap($2),stylemap(stringcolumn(2)), and a few others. All fail.
I know I can probably just take the strings out of the datafile and
then just have two maps: source_index->source_name and
style_index->name (for key). But I wanted to ask if there might be an
easily or other way to do this. I'd love to not have those maps
(source map mainly since I want it to be dynamic from datafile/ styles
will not change that much) and be able to have all the strings in the
datafile itself. That will let the data files be more human readable
and have all the information to allow for a generic gnuplot script to
generate ( use iterator to through all the datafiles instead of
indexes within a single file).
Any suggestions or comments would be great. I'm sure I have done
things wrong/overly complex since I'm still new to gnuplot. Any coarse
corrections would be great before I get in too much of a rabbit hole.
Thanks.
|
|
From: Adrian H. <Hi...@ma...> - 2012-10-22 08:24:16
|
Hi. Thanks for the advice. Does the "every" command work when you have two line beaks between data sets? I can't seem to get it to work. Regarding the legal disclaimer. I have no control over it I am afraid. Thanks Adrian -----Original Message----- From: Tait [mailto:gnu...@t4...] Sent: 20 October 2012 05:13 To: gnu...@li... Cc: Adrian Hill Subject: Re: [Gnuplot-info] stacked line plots > Hi > > I am trying to plot stacked 2-d files which vary in a 3rd dimension. i.e. I have multiple xy files. Something like the following link. > > http://www.mathworks.com/matlabcentral/fx_files/24368/4/style1.jpg > > Plotting a colour map works fine (once I get all the files into one file) with splot, but whenever I use splot with lines, it joins up along the y axis too. > > My script is: > ... > Can anyone suggest a good way to plot stacked plots, not joining up on the y axis? This basically comes down to inserting additional line breaks in your data file. It's explained in more detail in "help data" but the extra line break creates a discontinuity. To get a plot like the one above, you will group all the points with the same y-coordinate together and insert an extra line break between each group of shared-y-coordinate points. There are some demos that are somewhat related: http://gnuplot.sourceforge.net/demo_4.6/surface1.html http://gnuplot-tricks.blogspot.com/2010/07/fence-plots-with-some-liner.html > If the reader of this email is not the intended recipient(s), ... How shall I know whether I am the "intended recipient(s)"? These sorts of disclaimers are irritating, unenforceable, and probably harmful to any possible legal action based on the affected email (because, among other reasons, it's almost certainly not consistently or universally enforced). There used to be an excellent website explaining how/why in detail, but I can't find it anymore. This message has been scanned for viruses by MailControl - www.mailcontrol.com Click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam If the reader of this email is not the intended recipient(s), please be advised that any dissemination, distribution or copying of this information is strictly prohibited. Johnson Matthey PLC has its main place of business at 5th Floor, 25 Farringdon Street, London (020 7269 8400). Johnson Matthey Public Limited Company Registered Office: 5th Floor, 25 Farringdon Street, London EC4A 4AB Registered in England No 33774 Whilst Johnson Matthey aims to keep its network free from viruses you should note that we are unable to scan certain emails, particularly if any part is encrypted or password-protected, and accordingly you are strongly advised to check this email and any attachments for viruses. The company shall NOT ACCEPT any liability with regard to computer viruses transferred by way of email. Please note that your communication may be monitored in accordance with Johnson Matthey internal policy documentation. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-20 16:46:42
|
On 20.10.2012 18:19, Jon wrote: > Here is the syntax for the key with my gnuplot, I don't see opaque option > there. Is it because my version number is not high enough? Yes. > My gnuplot version is Version 4.4 patchlevel 3 Current is 4.6 pl 1 |
|
From: Jon <dev...@gm...> - 2012-10-20 16:19:48
|
On Sat, Oct 20, 2012 at 5:06 AM, Hans-Bernhard Bröker <HBB...@t-...
> wrote:
> On 20.10.2012 06:04, Jon wrote:
>
> I am trying to achieve the effect putting the key on some white background
>> although there is originally some plots there. How can I possibly do that?
>>
>
> See "help set key" and find what the "opaque" option is for.
>
>
Here is the syntax for the key with my gnuplot, I don't see opaque option
there. Is it because my version number is not high enough? My gnuplot
version is Version 4.4 patchlevel 3
Syntax:
set key {on|off} {default}
{{inside | outside} | {lmargin | rmargin | tmargin | bmargin}
| {at <position>}}
{left | right | center} {top | bottom | center}
{vertical | horizontal} {Left | Right}
{{no}reverse} {{no}invert}
{samplen <sample_length>} {spacing <vertical_spacing>}
{width <width_increment>}
{height <height_increment>}
{{no}autotitle {columnheader}}
{title "<text>"} {{no}enhanced}
{font "<face>,<size>"} {textcolor <colorspec>}
{{no}box { {linestyle | ls <line_style>}
| {linetype | lt <line_type>}
{linewidth | lw <line_width>}}}
{maxcols {<max no. of columns> | auto}}
{maxrows {<max no. of rows> | auto}}
unset key
show key
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-20 10:06:23
|
On 20.10.2012 06:04, Jon wrote: > I am trying to achieve the effect putting the key on some white background > although there is originally some plots there. How can I possibly do that? See "help set key" and find what the "opaque" option is for. |
|
From: Jon <dev...@gm...> - 2012-10-20 05:18:23
|
Thanks Trait, It really does not automatically white out its background. I checked the gnuplot help, but it does not have the option of opaque, and the default does not white out the background. I tried set object rectangle from 0.5,-0.0175 to 1,0.1 fillcolor rgbcolor "white" but it does not even white out anything. Actually, I cannot understand the logic. As far as I understand gnuplot, it saves effects in the ordering when they appear and then gnuplot plots according to this effects. I can set something, they will not appear until I issue plot command. That means plot command is always latest to any effects defined before, thus nothing can cover it unless specifically defined in the manual, say, set object rectangle specifically says it will remove any lines etc (no matter where the command is issue) but leaves labels intact. Thanks for further help, Sincerely, Jon On Sat, Oct 20, 2012 at 12:24 AM, Tait <gnu...@t4...> wrote: > > I am trying to achieve the effect putting the key on some white > background > > although there is originally some plots there. How can I possibly do > that? > > I tried to define a region and then clear it within mutliplot, but that > > area is always overwritten by the following plots, and thus cannot be > > whiten out. > > This should happen automatically already? > > I'd first pursue why it's not working as-is, but an alternative > approach is to define an opaque, filled rectangle and place it behind > the key. See "help set object". > > |
|
From: Tait <gnu...@t4...> - 2012-10-20 04:24:12
|
> I am trying to achieve the effect putting the key on some white background > although there is originally some plots there. How can I possibly do that? > I tried to define a region and then clear it within mutliplot, but that > area is always overwritten by the following plots, and thus cannot be > whiten out. This should happen automatically already? I'd first pursue why it's not working as-is, but an alternative approach is to define an opaque, filled rectangle and place it behind the key. See "help set object". |