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: BBands <bb...@gm...> - 2013-10-16 20:01:21
|
Try deleting the set xtics command and see what happens.
John
On Wed, Oct 16, 2013 at 12:24 PM, Mahmood Naderan <nt_...@ya...> wrote:
> Hi
> I want to set some strings on the x-axis. Here is my data points
>
> 10
> 30
> 20
>
> and I use
>
> set xtics "data point 1, data point 2, data point 3"
> plot "points.txt" with boxes fill pattern 3
>
>
> But the plot area is empty! Did I miss anything?
|
|
From: Mahmood N. <nt_...@ya...> - 2013-10-16 19:24:43
|
Hi I want to set some strings on the x-axis. Here is my data points 10 30 20 and I use set xtics "data point 1, data point 2, data point 3" plot "points.txt" with boxes fill pattern 3 But the plot area is empty! Did I miss anything? Regards, Mahmood |
|
From: Ethan A M. <EAM...@gm...> - 2013-10-12 18:06:16
|
On Saturday, 12 October 2013 06:36:47 AM Brynolf wrote:
> Hello,
>
> I want to use smoothing with the filledcurves plot, but I am unable to do
> so. When I add smooth csplines to the command it will only consider the
> first two columns and disregard the third column and plot a line, not two
> lines with filled center, so to speak. Any help appreciated
Consider only the part of the command you ask about:
> plot 'data.dat' using 1:($4-sqrt($5)):($4+sqrt($5)) w filledcu notitle smooth csplines
There are 2 or 3 problems here.
One is fairly simple:
The "smooth csplines" must come immediately after the "using ...." part
of the command. So you would need to move the "with filledcurve" to the end:
? plot 'data.dat' using 1:($4-sqrt($5)):($4+sqrt($5)) smooth csplines w filledcu
However a bigger problem is that the "smooth" operation _replaces_ your
original data with a new curve defined by only an x value from the first
"using" column and a smoothed y value from the second "using" column.
The third "using" column is ignored, and no longer exists after the smoothing
operation. This confuses the "with filledcurves" command, so we'll call it
a bug that the program does not issue some error or warning message.
If you remove the third "using" column, you'll see better what is happening:
? plot 'data.dat' using 1:($4-sqrt($5)) smooth csplines w filledcu
That command does give you a filled curve from the smoothed data,
but of course it's not quite the curve you wanted.
Possibly this two-part solution is acceptable:
plot "data.dat" using 1:($4+sqrt($5)) smooth csplines w filledcu lc rgb "black", \
"" using 1:($4-sqrt($5)) smooth csplines w filledcu lc rgb "white"
That wouldn't quite work in the general case, but it works in your case because
we know that y-sqrt(foo) is always less than y+sqrt(foo) so the second curve
is strictly less or equal to the first curve.
Ethan
> ! My code:
>
> set terminal pngcairo
> set output 'plotData.png'
> set style fill transparent solid .1 noborder
>
> plot "data.dat" using 1:2 title "avg" smooth csplines lc rgbcolor "blue",\
> "" using 1:($2-sqrt($3)) notitle smooth csplines lc rgbcolor "blue",\
> "" using 1:($2+sqrt($3)) notitle smooth csplines lc rgbcolor "blue",\
> "" using 1:4 title "mag" smooth csplines ls 1 lc rgbcolor "red",\
> "" using 1:($4-sqrt($5)):($4+sqrt($5)) w filledcu notitle smooth csplines
> lc rgbcolor "black"
>
> with data.dat containing:
> 30 0.062091 0.00055934 0.062135 0.00060258
> 35 1.5811 0.0011609 1.4886 0.34498
> 40 5.7981 0.0022667 5.466 4.768
> 45 2.9185 0.0014332 2.7366 1.1653
> 50 1.0325 0.0027071 0.97853 0.14908
> 55 0.95136 0.0030296 0.90318 0.12694
> 60 1.1746 0.0022948 1.1095 0.19144
> 65 1.1357 0.0024049 1.0738 0.17953
> 100 0.81919 0.0037934 0.78151 0.095113
> 125 0.76154 0.0040944 0.72843 0.082592
> 150 0.70832 0.0044431 0.67914 0.071776
>
>
>
> --
> View this message in context: http://gnuplot.10905.n7.nabble.com/Smooth-with-filledcurves-tp17726.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: Brynolf <pat...@gm...> - 2013-10-12 13:36:55
|
Hello, I want to use smoothing with the filledcurves plot, but I am unable to do so. When I add smooth csplines to the command it will only consider the first two columns and disregard the third column and plot a line, not two lines with filled center, so to speak. Any help appreciated! My code: set terminal pngcairo set output 'plotData.png' set style fill transparent solid .1 noborder plot "data.dat" using 1:2 title "avg" smooth csplines lc rgbcolor "blue",\ "" using 1:($2-sqrt($3)) notitle smooth csplines lc rgbcolor "blue",\ "" using 1:($2+sqrt($3)) notitle smooth csplines lc rgbcolor "blue",\ "" using 1:4 title "mag" smooth csplines ls 1 lc rgbcolor "red",\ "" using 1:($4-sqrt($5)):($4+sqrt($5)) w filledcu notitle smooth csplines lc rgbcolor "black" with data.dat containing: 30 0.062091 0.00055934 0.062135 0.00060258 35 1.5811 0.0011609 1.4886 0.34498 40 5.7981 0.0022667 5.466 4.768 45 2.9185 0.0014332 2.7366 1.1653 50 1.0325 0.0027071 0.97853 0.14908 55 0.95136 0.0030296 0.90318 0.12694 60 1.1746 0.0022948 1.1095 0.19144 65 1.1357 0.0024049 1.0738 0.17953 100 0.81919 0.0037934 0.78151 0.095113 125 0.76154 0.0040944 0.72843 0.082592 150 0.70832 0.0044431 0.67914 0.071776 -- View this message in context: http://gnuplot.10905.n7.nabble.com/Smooth-with-filledcurves-tp17726.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Elias A. <eli...@gm...> - 2013-10-10 13:24:12
|
On 10/10/2013 01:35 PM, Marek W. Gutowski wrote: > You will most probably not like the idea of producing new data > of this kind with empty line just before "bandindex". > Don't you think it should improve human readability of such data too? I do not control the code that produces the data, and I think the code maintainers would not like to change a file format once it is established. Of course I can change it myself in a post-processing step, but I wanted to know if gnuplot offers a more transparent solution. Elias |
|
From: Elias A. <eli...@gm...> - 2013-10-10 08:38:57
|
I have a file that looks like this: bandindex: 1 -0.21165 -0.36658 0.28144 0.00000 -24.30536 -0.22193 -0.36065 0.28144 0.01188 -24.30546 -0.23222 -0.35471 0.28144 0.02375 -24.30536 … -0.21508 -0.35043 -0.12440 2.31382 -24.28355 -0.21336 -0.35851 -0.13256 2.32543 -24.28356 -0.21165 -0.36658 -0.14072 2.33703 -24.28353 bandindex: 2 -0.21165 -0.36658 0.28144 0.00000 -24.30536 -0.22193 -0.36065 0.28144 0.01188 -24.30546 -0.23222 -0.35471 0.28144 0.02375 -24.30536 … Columns 4 and 5 hold the data I want to plot. Column 4 increases monotonically, then jumps back to 0 and starts increasing again. These “logical blocks” are delimited by the “bandindex“ lines. If I plot this as “p 'file' u 4:5 w p”, everything works fine. But what I would like to do is plot it with lines; then I get diagonal lines through my plot whenever column 4 jumps. How can I avoid these lines in a comfortable way? Of course I can do “p "<perl -pe 's/band.*//' file" u 4:5 w l”, then the “logical blocks” become “gnuplot blocks” suppressing the diagonal lines. But I do this a lot interactively so that would be a pain to type. It is also not practical for me to change the format of the file. One way that I could imagine this to work is if I could tell gnuplot that lines "*band*" should delimit blocks (or lines containing non-numeric data, say). Another way would be if I could define an “input filter” to be applied to all data files. Is anything like that possible in gnuplot? Elias |
|
From: Ethan A M. <eam...@gm...> - 2013-10-07 00:06:33
|
On Sunday, 06 October 2013 06:37:26 PM Xiaowei Zhan wrote: > Hi all, > > Is there a way I can enable "regis" terminal for the gnuplot 4.7 version? > The page instructing me how to build from source does not seem helpful. > I also do not know how to enable "regis" by reading "./configure > --help" outputs. > Any suggestion are welcomed. This is mentioned in the INSTALL instructions, although it would be easy to miss. Basically you edit the file .../src/term.h and uncomment the line containing #include "regis.trm" /* REGIS graphics language */ /* # include "regis.trm" */ Ethan |
|
From: Xiaowei Z. <zh...@gm...> - 2013-10-06 22:38:13
|
Hi all, Is there a way I can enable "regis" terminal for the gnuplot 4.7 version? The page instructing me how to build from source does not seem helpful. I also do not know how to enable "regis" by reading "./configure --help" outputs. Any suggestion are welcomed. Thanks, Xiaowei |
|
From: Mahmood N. <nt_...@ya...> - 2013-10-03 17:55:46
|
OK. Another way is to set xrange to the custom range and then plot all data points!
set xrange[1000:2000]
plot "data.txt" u 1
:)
Regards,
Mahmood
________________________________
From: BBands <bb...@gm...>
To: gnuplot <gnu...@li...>
Sent: Thursday, October 3, 2013 9:17 PM
Subject: Re: [Gnuplot-info] x-axis label while using "every"
If you know the exact labels you want and where you want them a
simpler method is 'set xtics'. From my finance demo script, this line
replaces the default x-axis labels with date labels.
set xtics ("6/03" 66, "7/03" 87, "8/03" 109, "9/03" 130, "10/03" 151,
"11/03" 174, "12/03" 193, "1/04" 215, "2/04" 235)
Yikes! Has it really been ten year since I wrote that?
John
On Thu, Oct 3, 2013 at 10:30 AM, Mahmood Naderan <nt_...@ya...> wrote:
>>See 'help xticlabels'.
> It seems that this function works with #columns > 1. Am I right?
>
> The data file contains one column
>
> 40
> 50
> 20
> 10
> ....
>
> So I have to use
>
> plot "data.txt" u 1:xticlabels(stringcolumn(???)) every ::1000::2000
>
> The stringcolumn() should take the row number. I wonder what is the argument then?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
gnuplot-info mailing list
gnu...@li...
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: BBands <bb...@gm...> - 2013-10-03 17:47:26
|
If you know the exact labels you want and where you want them a
simpler method is 'set xtics'. From my finance demo script, this line
replaces the default x-axis labels with date labels.
set xtics ("6/03" 66, "7/03" 87, "8/03" 109, "9/03" 130, "10/03" 151,
"11/03" 174, "12/03" 193, "1/04" 215, "2/04" 235)
Yikes! Has it really been ten year since I wrote that?
John
On Thu, Oct 3, 2013 at 10:30 AM, Mahmood Naderan <nt_...@ya...> wrote:
>>See 'help xticlabels'.
> It seems that this function works with #columns > 1. Am I right?
>
> The data file contains one column
>
> 40
> 50
> 20
> 10
> ....
>
> So I have to use
>
> plot "data.txt" u 1:xticlabels(stringcolumn(???)) every ::1000::2000
>
> The stringcolumn() should take the row number. I wonder what is the argument then?
|
|
From: Mahmood N. <nt_...@ya...> - 2013-10-03 17:30:22
|
>See 'help xticlabels'. It seems that this function works with #columns > 1. Am I right? The data file contains one column 40 50 20 10 .... So I have to use plot "data.txt" u 1:xticlabels(stringcolumn(???)) every ::1000::2000 The stringcolumn() should take the row number. I wonder what is the argument then? Regards, Mahmood ________________________________ From: BBands <bb...@gm...> To: gnuplot <gnu...@li...> Sent: Thursday, October 3, 2013 7:16 PM Subject: Re: [Gnuplot-info] x-axis label while using "every" See 'help xticlabels'. john On Thu, Oct 3, 2013 at 8:27 AM, Mahmood Naderan <nt_...@ya...> wrote: > HiAssume the range of x-axis is [0:10000]. When I use > > plot "data.txt" u 1 every ::1000::2000 > > the left most value in the x-axis is 0 and the right most is 1000 (which is the result of 2000-1000) > How can I have labels from 1000~2000 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: BBands <bb...@gm...> - 2013-10-03 15:46:07
|
See 'help xticlabels'.
john
On Thu, Oct 3, 2013 at 8:27 AM, Mahmood Naderan <nt_...@ya...> wrote:
> HiAssume the range of x-axis is [0:10000]. When I use
>
> plot "data.txt" u 1 every ::1000::2000
>
> the left most value in the x-axis is 0 and the right most is 1000 (which is the result of 2000-1000)
> How can I have labels from 1000~2000
|
|
From: Mahmood N. <nt_...@ya...> - 2013-10-03 15:27:16
|
HiAssume the range of x-axis is [0:10000]. When I use plot "data.txt" u 1 every ::1000::2000 the left most value in the x-axis is 0 and the right most is 1000 (which is the result of 2000-1000) How can I have labels from 1000~2000 ? Regards, Mahmood |
|
From: cédric o. <ced...@gm...> - 2013-10-01 08:52:32
|
2013/10/1, Clement Law <the...@gm...>: > Out of interest, what happens when you execute: > > plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w d pal I see dots where I expect. > instead of using 'w l pal' > Also, could you include the link which instructed you? Here is the link: http://stackoverflow.com/questions/15878211/pm3d-in-gnuplot-with-binary-data > > > On 30 September 2013 13:29, cédric ody <ced...@gm...> wrote: > >> In fact and to be more complete, this behaviour for splot is obtained >> with gnuplot 4.6 patchlevel 0. >> >> Crossing lines are also observed for splot AND plot command on the >> older version 4.2 patchlevel 2. So it is seems there have been >> progress between the two versions for the plot command. >> >> Cédric >> >> >> >> 2013/9/30, cédric ody <ced...@gm...>: >> > Hi, >> > >> > I have found a interesting comment on the web explaining how to plot >> > unstructured mesh written in a binary file in gnuplot. I knew to do >> > that in ascii but I have been looking for the binary possibility for a >> > while. >> > >> > The command is for instance the following >> > >> > plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w l >> > palette >> > >> > I wrote the binary file file.dat using octave (fwrite(file,vector)). >> > >> > The 15 is because I plot cells of 5 points of two coordinates + the >> > value at the point. >> > >> > cell=[ptA ptB ptC ptD ptA] >> > >> > vector=[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval ptDx ptDy >> > ptDval ptAx ptAy ptAval ...]; >> > >> > The plot command gives expected results (I would expect that I have >> > used an ascii filename). However, the splot command does not as some >> > cells of the unstructured mesh are now connected although they should >> > not. >> > >> > Does anybody know what I am missing. >> > >> > Thank you very much, >> > >> > Cédric >> > >> >> >> ------------------------------------------------------------------------------ >> October Webinars: Code for Performance >> Free Intel webinars can help you accelerate application performance. >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most >> from >> the latest Intel processors and coprocessors. See abstracts and register >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> Membership management via: >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > |
|
From: Clement L. <the...@gm...> - 2013-10-01 08:19:07
|
Out of interest, what happens when you execute: plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w d pal instead of using 'w l pal' Also, could you include the link which instructed you? On 30 September 2013 13:29, cédric ody <ced...@gm...> wrote: > In fact and to be more complete, this behaviour for splot is obtained > with gnuplot 4.6 patchlevel 0. > > Crossing lines are also observed for splot AND plot command on the > older version 4.2 patchlevel 2. So it is seems there have been > progress between the two versions for the plot command. > > Cédric > > > > 2013/9/30, cédric ody <ced...@gm...>: > > Hi, > > > > I have found a interesting comment on the web explaining how to plot > > unstructured mesh written in a binary file in gnuplot. I knew to do > > that in ascii but I have been looking for the binary possibility for a > > while. > > > > The command is for instance the following > > > > plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w l palette > > > > I wrote the binary file file.dat using octave (fwrite(file,vector)). > > > > The 15 is because I plot cells of 5 points of two coordinates + the > > value at the point. > > > > cell=[ptA ptB ptC ptD ptA] > > > > vector=[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval ptDx ptDy > > ptDval ptAx ptAy ptAval ...]; > > > > The plot command gives expected results (I would expect that I have > > used an ascii filename). However, the splot command does not as some > > cells of the unstructured mesh are now connected although they should > > not. > > > > Does anybody know what I am missing. > > > > Thank you very much, > > > > Cédric > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: cédric o. <ced...@gm...> - 2013-09-30 12:29:25
|
In fact and to be more complete, this behaviour for splot is obtained with gnuplot 4.6 patchlevel 0. Crossing lines are also observed for splot AND plot command on the older version 4.2 patchlevel 2. So it is seems there have been progress between the two versions for the plot command. Cédric 2013/9/30, cédric ody <ced...@gm...>: > Hi, > > I have found a interesting comment on the web explaining how to plot > unstructured mesh written in a binary file in gnuplot. I knew to do > that in ascii but I have been looking for the binary possibility for a > while. > > The command is for instance the following > > plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w l palette > > I wrote the binary file file.dat using octave (fwrite(file,vector)). > > The 15 is because I plot cells of 5 points of two coordinates + the > value at the point. > > cell=[ptA ptB ptC ptD ptA] > > vector=[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval ptDx ptDy > ptDval ptAx ptAy ptAval ...]; > > The plot command gives expected results (I would expect that I have > used an ascii filename). However, the splot command does not as some > cells of the unstructured mesh are now connected although they should > not. > > Does anybody know what I am missing. > > Thank you very much, > > Cédric > |
|
From: cédric o. <ced...@gm...> - 2013-09-30 10:59:56
|
Hi, I have found a interesting comment on the web explaining how to plot unstructured mesh written in a binary file in gnuplot. I knew to do that in ascii but I have been looking for the binary possibility for a while. The command is for instance the following plot 'file.dat' binary record=(15,-1) format='%float' u 1:2:3 w l palette I wrote the binary file file.dat using octave (fwrite(file,vector)). The 15 is because I plot cells of 5 points of two coordinates + the value at the point. cell=[ptA ptB ptC ptD ptA] vector=[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval ptDx ptDy ptDval ptAx ptAy ptAval ...]; The plot command gives expected results (I would expect that I have used an ascii filename). However, the splot command does not as some cells of the unstructured mesh are now connected although they should not. Does anybody know what I am missing. Thank you very much, Cédric |
|
From: Theo <th...@gm...> - 2013-09-28 06:47:54
|
> I sort of hate it when I hear can't be done... > > set format y "%.sG" > > John > Really??? At my GnuPlot 4.6 this just adds G at each tic lable. I think what Mahmood was looking for, e.g.: set yrange [1e-18:1e18] set ytics 10 set format y "%.2s %c" As Bernhard wrote... also look e.g. at the example in the Gnuplot 4.6 PDF manual, page 113, example 6. Theo. |
|
From: Leo B. <l_b...@us...> - 2013-09-27 19:47:20
|
> From: Mahmood Naderan <nt_...@ya...> > > Thanks a lot. I was writing a python script to preprocess the values! > > Just want to know how someone should conclude "%.sG" for such formatting? > From the manual http://gnuplot.sourceforge.net/docs_4.2/node184.html, we read: Mahmood, I would suggest an alternative approach to your problem: rescale your y values and include the scale information in the ylabel rather than in the tick labels. Leo |
|
From: Mahmood N. <nt_...@ya...> - 2013-09-27 18:11:57
|
Thanks a lot. I was writing a python script to preprocess the values! Just want to know how someone should conclude "%.sG" for such formatting? From the manual http://gnuplot.sourceforge.net/docs_4.2/node184.html, we read: If the format string is omitted, the format will be returned to the default "% g" ... %e or %E exponential notation; an "e" or "E" before the power %g or %G the shorter of %e (or %E) and %f ... The default format for both axes is "% g", but other formats such as "%.2f" or "%3.0em" are often desirable .... Characters not preceded by "%" are printed verbatim. Thus you can include spaces and labels in your format string, such as "%g m", which will put " m" after each number. If you want "%" itself, double it: "%g %%". Regards, Mahmood ________________________________ From: BBands <bb...@gm...> To: gnuplot <gnu...@li...> Sent: Friday, September 27, 2013 9:11 PM Subject: Re: [Gnuplot-info] formatting ytics I sort of hate it when I hear can't be done... set format y "%.sG" John On Fri, Sep 27, 2013 at 10:25 AM, Mahmood Naderan <nt_...@ya...> wrote: > Yes I know that but these specifiers are good for hex and scientific numbers > (for example 0x7F, 0x7f, 2E+2, e2+2). None of them convert a 3,000,000,000 > number to 3G. > I think I have to write a script to preprocess that. Thanks ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: BBands <bb...@gm...> - 2013-09-27 17:41:42
|
I sort of hate it when I hear can't be done... set format y "%.sG" John On Fri, Sep 27, 2013 at 10:25 AM, Mahmood Naderan <nt_...@ya...> wrote: > Yes I know that but these specifiers are good for hex and scientific numbers > (for example 0x7F, 0x7f, 2E+2, e2+2). None of them convert a 3,000,000,000 > number to 3G. > I think I have to write a script to preprocess that. Thanks |
|
From: Hans-Bernhard B. <HBB...@T-...> - 2013-09-27 17:36:55
|
Am 27.09.2013 19:25, schrieb Mahmood Naderan: > Yes I know that but these specifiers are good for hex and scientific numbers (for example 0x7F, 0x7f, 2E+2, e2+2). None of them convert a 3,000,000,000 number to 3G. > I think I have to write a script to preprocess that. Thanks No, you don't. You only need to read all of "help set format", including the examples, and use what you learnt there. |
|
From: Mahmood N. <nt_...@ya...> - 2013-09-27 17:25:16
|
Yes I know that but these specifiers are good for hex and scientific numbers (for example 0x7F, 0x7f, 2E+2, e2+2). None of them convert a 3,000,000,000 number to 3G. I think I have to write a script to preprocess that. Thanks Regards, Mahmood ________________________________ From: BBands <bb...@gm...> To: gnuplot <gnu...@li...> Sent: Friday, September 27, 2013 8:30 PM Subject: Re: [Gnuplot-info] formatting ytics There are better examples here: http://www.cplusplus.com/reference/cstdio/printf/ Best, John On Fri, Sep 27, 2013 at 9:48 AM, Mahmood Naderan <nt_...@ya...> wrote: > >>set format y "%c" > It just show > G > G > G > M > there is no number ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: BBands <bb...@gm...> - 2013-09-27 17:00:42
|
There are better examples here: http://www.cplusplus.com/reference/cstdio/printf/ Best, John On Fri, Sep 27, 2013 at 9:48 AM, Mahmood Naderan <nt_...@ya...> wrote: > >>set format y "%c" > It just show > G > G > G > M > there is no number |
|
From: BBands <bb...@gm...> - 2013-09-27 16:57:16
|
Mahmood, gnuplot formatting is very similar to C, so you can do just about anything you like. There is a good outline of the possibilities here. http://www.cplusplus.com/reference/cstdio/fprintf/ HTH, John On Fri, Sep 27, 2013 at 9:48 AM, Mahmood Naderan <nt_...@ya...> wrote: > >>set format y "%c" > It just show > G > G > G > M > there is no number |