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: Tait <gnu...@t4...> - 2012-10-20 04:13:17
|
> 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. |
|
From: Jon <dev...@gm...> - 2012-10-20 04:04:55
|
Dear All, 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. Thanks, Sincerely, Jon |
|
From: Adrian H. <Hi...@ma...> - 2012-10-19 11:46:05
|
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: reset set termoption dash set term postscript color enhanced eps "Helvetica" 16 set output "stack_01.eps" set size 1,1 set border 4095 front linetype -1 linewidth 1.000 unset key unset contour set xlabel "2{/Symbol-Oblique q} / {/Symbol \260}" set ylabel "Scan number" set ytics mirror set zlabel "Relative intensity / s^{-1}" rotate by 90 set xrange [ * : 70 ] set yrange [ 1 : 95] set zrange [ * : *] set view 60,15 splot "combined.txt" using 2:1:($3/925.1) every :8::1::95 with lines #splot "combined.txt" using 2:1:($3/925.1) every :8::1::95 with points Can anyone suggest a good way to plot stacked plots, not joining up on the y axis? 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: wjahn <w.j...@gm...> - 2012-10-17 21:26:37
|
I am running a bash script that produces a series of plots using gnuplot.
Next to each plot I want to write some information about the plot (average
etc), and I achieve this using labels. I have the following settings (among
others):
<code>
#!/bin/bash
for some input in {blah };do
gnuplot << EOF
set term pngcairo size 800,600
set output '$input.png'
set size 0.8,1
set label 1 at graph 1.2, graph 0.2
set label 1 "Average $average"
...
set more labels
...
splot .....
EOF
done
</code>
This works fine most of the times, but randomly in some plots the labels are
mispositioned (examples attached - first one is ok, second one is
misplaced). Any idea why this might happen? And better yet, how to fix it?
Thanks!!
http://old.nabble.com/file/p34568733/DF_01_basecase_East_1.png
http://old.nabble.com/file/p34568733/DF_05_twolouvers_East_3.png
--
View this message in context: http://old.nabble.com/automated-label-positioning-tp34568733p34568733.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: BBands <bb...@gm...> - 2012-10-16 21:48:08
|
I downloaded the sources here: http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.0/ Unpacked them and then did the standard ./configure --prefix=/usr/local make sudo make install sequence. After getting a few of the dependencies I wanted installed, it went perfectly. John On Sun, Oct 14, 2012 at 4:06 PM, P. A. Grubel <pag...@tu...> wrote: > I'm not sure how to update to version 4.6 I'm using Ubuntu 12.04 64 bit |
|
From: walter h. <wh...@bf...> - 2012-10-15 07:27:47
|
Download gnuplot and follow the instructions http://www.gnuplot.info/download.html see readme inside the tarball re, wh Am 15.10.2012 01:06, schrieb P. A. Grubel: > I'm not sure how to update to version 4.6 I'm using Ubuntu 12.04 64 bit > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: P. A. G. <pag...@tu...> - 2012-10-14 23:19:59
|
I'm not sure how to update to version 4.6 I'm using Ubuntu 12.04 64 bit |
|
From: Martin I. de O. <mar...@gm...> - 2012-10-11 16:30:28
|
Hello, I am trying to plot two graphs on the same plot. The first is a simple x-y points plot: plot myfile u 1:2 The second is a contour plot at level 0, which I can plot with the following commands: set contour unset surface set map view set cntrparam levels discrete 0 splot a*y**3 + b(x)*y**2 + c(x)*y + d(x) b(x), c(x) and d(x) are known polynomial functions on x. Both use the same xrange and yrange. How can I plot them both in the same graph? Thank you, Martin |
|
From: jmseibt <Joa...@ch...> - 2012-10-09 16:31:01
|
Hello, Maybe someone can help me with the following issue: I'm trying to plot a complex quantity z which depends on two variables x and y in form of a pm3d-plot, where the phase phi(z) of the complex values is aimed to be encoded a color from the hue-scale, while the amplitude A(z) of the complex values determines the intensity of that color. The data are read from a file with specification of x y phi(z) A(z) in each column, where x changes slow and y changes fast. The most obvious solution (at least from my point of view) to choose the option u 1:2:3:4 in combination with "splot" after definition of the color scheme via set palette model HSV functions gray,1,1 did not yield the desired result. Then just the phase is plotted regardless of the amplitude. If you have an idea how to proceed, please let me know. Best regards, Joachim -- View this message in context: http://old.nabble.com/pm3d-plot-with-HSV-color-space-tp34533376p34533376.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-08 18:53:34
|
On 08.10.2012 12:49, Clement Law wrote: > splot fx(u,v),fy(u,v),fz(v),\ > gx(u,v),gy(u,v),gz(v),\ > hx(u,v),hy(u,v),hz(v) > Is there any way of independently changing the ranges of the dummy > variables for each sphere? Well, there's no particular reason you have to use 'u' and 'v' as-is. You can re-define your functions fx(u,v), or you can call them with arguments other than plain 'u' and 'v': set urange[0:1] set vrange[0:1] splot fx(0.2*u+1,v), fy(0.2*u+1,v), fz(v) etc. |
|
From: gnuplotUser <oth...@ao...> - 2012-10-08 15:01:05
|
setting linetype works! Thanks! -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34527965.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Clement L. <the...@gm...> - 2012-10-08 10:49:57
|
Hello, I'm trying to plot three spheres using set parametric. At the moment, I have this small script: ##### set parametric; set angle degree fx(u,v)=0.4*cos(u)*cos(v)+0.34 fy(u,v)=0.4*sin(u)*cos(v)+0.366 fz(v)=0.4*sin(v) gx(u,v)=0.7*cos(u)*cos(v) gy(u,v)=0.7*sin(u)*cos(v) gz(v)=0.7*sin(v) hx(u,v)=0.5*cos(u)*cos(v) hy(u,v)=0.5*sin(u)*cos(v) hz(v)=0.5*sin(v) splot fx(u,v),fy(u,v),fz(v),\ gx(u,v),gy(u,v),gz(v),\ hx(u,v),hy(u,v),hz(v) ###### Is there any way of independently changing the ranges of the dummy variables for each sphere? Thanks, Clement Law |
|
From: Thomas S. <t.s...@fz...> - 2012-10-08 09:38:29
|
use a different linetype for each plot: plot a.dat using 2:1 with lines lt 1 lc rgb "blue" plot b.dat using 2:1 with lines lt 2 lc rgb "red" gnuplotUser wrote: > > Thanks, Thomas. > > set terminal fig color dashed size 5,5 > > is able to show all the lines in the multiplot by the same color (even > though I chose different rgb settings for each of them). > > plot a.dat using 2:1 with lines lc rgb"blue" > plot b.dat using 2:1 with lines lc rgb"red" > > Is there a way to correct this? > > Regards, > Ethan > -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34526409.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Leo B. <l_b...@us...> - 2012-10-07 17:05:14
|
Hi, I am seeing an issue the cairolatex terminal. After the first object
circle is placed on the canvas, the fillcolor is ignored and set to the
default (black). This does not happen for the pdfcairo terminal.
Here is a script to demonstrate:
set macros
set terminal push
set terminal cairolatex pdf color
set style fill solid 1.0
set xrange [0:5]; set yrange [0:5]
plotcmd="plot 1/0; set terminal pop; set terminal push; replot;"
c=0;
circle(x,y)=sprintf("c=c+1; set object c circle at %g,%g size 0.1
fillstyle fillcolor rgbcolor 'red';",x,y);
eval circle(1,1);
eval circle(1,2);
eval circle(1,3);
# cl.pdf will have one red and 2 black circles
set output 'cl.ltx'
@plotcmd
set terminal pdfcairo color
c=0;
eval circle(1,1);
eval circle(1,2);
eval circle(1,3);
# clf.pdf has all three red circles
set output 'clf.pdf'
@plotcmd
--
Leo Butler l_b...@us...
SDF Public Access UNIX System - http://sdf.lonestar.org
|
|
From: gnuplotUser <oth...@ao...> - 2012-10-07 15:49:35
|
Thanks, Thomas. set terminal fig color dashed size 5,5 but is able to show all the lines in the multiplot by the same color (even though I chose different rgb settings for each of them). Is there a way to correct this? Regards, Ethan -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34524637.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2012-10-07 12:47:08
|
"help set terminal fig"
tell you:
Syntax:
set terminal fig {monochrome | color}
...
{solid | dashed}
...
you need to give the appropriate options to get colored
and dashed lines:
set terminal fig color dashed size 5,5
gnuplotUser wrote:
>
> Hello,
>
> I am exporting a plot using fig terminal under multiplot mode. But the
> exported image has only black lines. It works well if I don't use fig
> terminal, but I *do* need to use colored and dashed lines to be exported
> (for further editing on them). Below is snippet from my code.
>
> set term fig size 5 5
> set multiplot
> plot a.dat using 2:1 with lines lc rgb"red";
> set nomultiplot
> unset multiplot
>
> I'm using 4.4 version of gnuplot under Ubuntu Linux.
>> gnuplot --version
> gnuplot 4.4 patchlevel 3
>
>
--
View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34524171.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: gnuplotUser <oth...@ao...> - 2012-10-07 08:59:02
|
Hello, I am exporting a plot using fig terminal under multiplot mode. But the exported image has only black lines. It works well if I don't use fig terminal, but I *do* need to use colored and dashed lines to be exported (for further editing on them). Below is snippet from my code. set term fig size 5 5 set multiplot plot a.dat using 2:1 with lines lc rgb"red"; set nomultiplot unset multiplot I'm using 4.4 version of gnuplot under Ubuntu Linux. > gnuplot --version gnuplot 4.4 patchlevel 3 -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34523653.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-06 13:37:14
|
On 06.10.2012 14:20, gargarale wrote: > I want to change my default directory for gnuplot to my data folder on > Windows, without having to manually use ChDir or alike (which is currently > about 10 times a day). > > Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed > applicable (with cd "folder" in the file), however I cannot seem to find > which folder to place this file so the command is run. See "help startup" and "help environment" for information where gnuplot.ini is supposed to be, and how you can change that location if you want to. That said, I'm not convinced you even need a gnuplot.ini for that. Windows users almost invariably start programs via desktop / start menu links. Those allow you to specify a starting directory. Wouldn't that be enough? |
|
From: walter h. <wh...@bf...> - 2012-10-06 13:35:11
|
I do not use that feature, but as a wild guess i would expect .gnuplot in my homedir. ~/.gnuplot To be fair i could not find it in the documentation now. re, wh Am 06.10.2012 14:20, schrieb gargarale: > > Hope you can help: > > I want to change my default directory for gnuplot to my data folder on > Windows, without having to manually use ChDir or alike (which is currently > about 10 times a day). > > Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed > applicable (with cd "folder" in the file), however I cannot seem to find > which folder to place this file so the command is run. > > If anyone can shed any light it would be fantastic. > > Thanks! |
|
From: gargarale <gar...@gm...> - 2012-10-06 12:20:52
|
Hope you can help: I want to change my default directory for gnuplot to my data folder on Windows, without having to manually use ChDir or alike (which is currently about 10 times a day). Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed applicable (with cd "folder" in the file), however I cannot seem to find which folder to place this file so the command is run. If anyone can shed any light it would be fantastic. Thanks! -- View this message in context: http://old.nabble.com/Changing-Directory-At-Start-up-using-.ini---.gnuplot-tp34521977p34521977.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: seb_kramm <seb...@ya...> - 2012-10-02 20:43:09
|
On 10/02/2012 07:52 PM, Hans-Bernhard Bröker wrote: > Except that it isn't. An even number of points can be just as correct. The actual > trick lies in the combination of the underlying function's periodicity, the ordinate > range, and the number of samples: you want to have a sampling distance that is an > integer fraction of the signal's period, i.e. > function_period / (range_max - range_min) * (samples - 1) > should be an integer. E.g. > set samples 100 > plot [0:9] x-floor(x) > matches your expectations just fine, because 1.0/9.0*99 = 11.0 You are absolutely right, thanks for these clarifications. I indeed assumed that one would always want to plot on an even range, which can't always be the case. Regards, |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-02 17:52:39
|
On 02.10.2012 09:38, seb_kramm wrote: > It's ok, you got the point anyway. Actually, I'm afraid you didn't. Not all of it, anyway. >> The actual solution would have been more 'set samples 101'. To understand why. > > Yes, odd vs. even number of samples, I got the point. Except that it isn't. An even number of points can be just as correct. The actual trick lies in the combination of the underlying function's periodicity, the ordinate range, and the number of samples: you want to have a sampling distance that is an integer fraction of the signal's period, i.e. function_period / (range_max - range_min) * (samples - 1) should be an integer. E.g. set samples 100 plot [0:9] x-floor(x) matches your expectations just fine, because 1.0/9.0*99 = 11.0 > But then it is not very clear to me why the default number of > samples is even, as the situation pointed out here can occur rather > frequently. And just as frequently, an odd number wouldn't be any better. It would just yield a different, equally unexpected result. |
|
From: seb_kramm <seb...@ya...> - 2012-10-02 07:39:03
|
Hello, > The attachment didn't make it past the mailing list processor. It's ok, you got the point anyway. On 10/02/2012 12:11 AM, Hans-Bernhard Bröker wrote: > Yes, it is. Oh, and it's not the floor() function that's "drifting" here. To see > what actually happens, I suggest you have a look at the output of > > set table > plot [0:10] x - floor(x) Very good suggestion indeed, thanks, this way things are obvious! > And no, 'set samples 1000' didn't actually solve the problem. It just made it small > enough so you no longer noticed it. > The actual solution would have been more 'set samples 101'. To understand why. Yes, odd vs. even number of samples, I got the point. But then it is not very clear to me why the default number of samples is even, as the situation pointed out here can occur rather frequently. Is there some particular reason ? I assume there is, as you guys probably already ran into that issue, I'm just curious. At first, if I need to compute some function values, I'd compute them at the beginning and the end of the considered interval, and, say, one value in the middle. If given more time, I'd compute two other values in the "middle of the middle" (1/4 and 3/4). And so on. So, the default instinctive number of samples would be odd. But maybe there is a counterpart to this approach that I don't see ? Or is it really not that important ? >> I understand that the number of samples can be changed to set the plot >> accuracy vs. computing time tradeoff, but I didn't expect that that >> parameter could produce "wrong" results if incorrectly set. > > The thing to be learned here is that the result isn't actually wrong. It's just not > what you expected. Sure, this is why I quoted "wrong", I meant "apparently wrong". I'm confident enough with Gnuplot to know that it is a very good piece of software when it comes to numerical computation! Regards, and thanks again for your detailed answer. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-01 22:11:55
|
On 01.10.2012 17:33, seb_kramm wrote: > While trying to plot a sawtooth wave (with 4.6 on Ubuntu), I noticed > that the following plot: > plot [0:10] x-floor(x) > produces some kind of vertical drifting, that gets magically reset at > the end of the plot (whatever the x range, actually). (see attached png) The attachment didn't make it past the mailing list processor. > This seems to be related to the number of samples. Indeed, 'set samples > 1000' solves the problem. But I was wondering if such a behaviour is > normal ? Yes, it is. Oh, and it's not the floor() function that's "drifting" here. To see what actually happens, I suggest you have a look at the output of set table plot [0:10] x - floor(x) and pay attention to both columns of data. And no, 'set samples 1000' didn't actually solve the problem. It just made it small enough so you no longer noticed it. The actual solution would have been more 'set samples 101'. To understand why. > I understand that the number of samples can be changed to set the plot > accuracy vs. computing time tradeoff, but I didn't expect that that > parameter could produce "wrong" results if incorrectly set. The thing to be learned here is that the result isn't actually wrong. It's just not what you expected. |
|
From: BBands <bb...@gm...> - 2012-10-01 21:24:59
|
Not enough granularity.
Try 'set samples 1000'.
Best,
John
On Mon, Oct 1, 2012 at 8:33 AM, seb_kramm <seb...@ya...> wrote:
> Hello gnuplot users,
>
> While trying to plot a sawtooth wave (with 4.6 on Ubuntu), I noticed that
> the following plot:
> plot [0:10] x-floor(x)
> produces some kind of vertical drifting, that gets magically reset at the
> end of the plot (whatever the x range, actually).
|