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: Craig D. <def...@bo...> - 2013-02-12 20:10:15
|
Is there any way to interrupt gnuplot and either ask for out-of-band status or tell it to revert to a prompt, when it's expecting binary data input from stdin? I currently manage PDL::Graphics::Gnuplot, a Perl front-end for gnuplot plotting. The module provides a Perl API that generates Gnuplot commands and ships data over a pipe to a gnuplot process. A major compatibility and reliability issue that we have is that, in binary mode (which we use for speed) gnuplot locks up until its full complement of data has been read. This causes several problems: - There's no documented way (that I've found) for our perl process to know in advance if gnuplot is working or locked-up (e.g. sometimes the x11 terminal can take a long time to render a plot if the DISPLAY is remote) - Slow rendering jobs can be interrupted by the user, and there's no documented way (that I've found) to let gnuplot know to stop what it's doing and give a prompt back. That means we have to drop-kick the gnuplot process and restart it (which loses state and also generates a new display window on interactive terminals) - Some platforms munge pipe contents, and there's no way to diagnose that problem. The only workaround I can see would be to generate temporary files and ask gnuplot to read those - but that incurs more overhead since we are then using the file system instead of direct IPC. Cheers, Craig DeForest |
|
From: walter h. <wh...@bf...> - 2013-02-12 18:31:55
|
Am 12.02.2013 17:45, schrieb julien.siebert: > Dear all, > > I am having trouble while plotting some heatmaps with the following > commands: > > "set view map > splot 'myfile' matrix with image" > > Where myfile is an ASCII file containing N lines and each lines containing K > floating point values. > > It worked really well until I have the following error: > "warning: Number of pixels cannot be factored into integers matching grid. N > = 500500 K = 2000" > > I understand the error, Gnuplot told me that it cannot read "myfile" as a > 500500*2000 grid. > The problem is that "myfile" is actually 500500*500 grid. (really I check). > > It seems to me that gnuplot is having trouble while determining K. > I don't know if it comes from the fact that I am using floating point values > (As I said it worked well before)? > I don't know if I can set these two values N and K by myself ? > > Any idea? > Thanks, > Julien > Hi, Julien, i also use heatmaps very often (but more 800x500) i tend to ingnore the errors they are most times caused by a missing value. re, wh > -- > gnuplot 4.6 patchlevel 0 (Gentoo revision r0) > > Linux spencer 3.4.9-gentoo-r0-c2-v1 #3 SMP Mon Sep 10 15:29:08 CEST 2012 > x86_64 Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz GenuineIntel GNU/Linux > > > |
|
From: julien.siebert <jul...@gm...> - 2013-02-12 16:45:21
|
Dear all, I am having trouble while plotting some heatmaps with the following commands: "set view map splot 'myfile' matrix with image" Where myfile is an ASCII file containing N lines and each lines containing K floating point values. It worked really well until I have the following error: "warning: Number of pixels cannot be factored into integers matching grid. N = 500500 K = 2000" I understand the error, Gnuplot told me that it cannot read "myfile" as a 500500*2000 grid. The problem is that "myfile" is actually 500500*500 grid. (really I check). It seems to me that gnuplot is having trouble while determining K. I don't know if it comes from the fact that I am using floating point values (As I said it worked well before)? I don't know if I can set these two values N and K by myself ? Any idea? Thanks, Julien -- gnuplot 4.6 patchlevel 0 (Gentoo revision r0) Linux spencer 3.4.9-gentoo-r0-c2-v1 #3 SMP Mon Sep 10 15:29:08 CEST 2012 x86_64 Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz GenuineIntel GNU/Linux -- View this message in context: http://gnuplot.10905.n7.nabble.com/Plotting-heatmap-warning-Number-of-pixels-cannot-be-factored-data-file-seems-correct-I-E-K-N-matrix-tp17108.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: sfeam (E. Merritt) <sf...@us...> - 2013-02-07 16:56:48
|
On Wednesday, 06 February 2013, Martin Krupicka wrote:
> Hello,
> I would like to produce the SVG output, where the axis label contains
> symbol in upper index. At a moment, I can produce the symbols correctly
> with:
>
> set terminal svg noenhanced
> set ylabel ' Δ E ‡'
>
> But I would like to put the the double dagger symbol as the index. To do
> that,
> obviously:
>
> set terminal svg enhanced
> set ylabel ' Δ E^‡'
>
> But this causes the HTML entities to screw up. The ampersand gets
> interpreted in gnuplot sense as emtpy space, upon escaping to \Δ
> it end up as &, more backlashes do not help.
>
> Is there a way to solve this?
SVG necessarilly accepts UTF-8 encoding, so just give it the
characters directly:
set ylabel " Δ ^‡"
(tested here using gnuplot 4.6.1's svg terminal)
Ethan
(3rd try - the mailing list keeps rejecting my mail)
|
|
From: Nunzio L. <nun...@gm...> - 2013-02-06 17:09:14
|
Hi all, as far as I have understood the Postscript Terminal requires plot size to be defined in the "set term " command. But then how can I decide how large the canvas is going to be? I mean, I want a plot to be square 5 inches x5 inches FIXED. Then I want a larger canvas to put plot title and key without affecting the graph size. This is what I have so far: set term post eps enh color size 5,5 font 18 set size ratio -1 Thank you in advance, NL |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-02-06 16:52:44
|
On 06.02.2013 11:42, Martin Krupicka wrote:
> set terminal svg enhanced
> set ylabel ' Δ E^‡'
I think you'll have to put the superscript in {} for that to work.
set ylabel ' Δ E^{‡}'
gnuplot's internal engine doesn't know about &#x syntax, so it has no
way of knowing that it's not just the & you wanted in superscript.
Whether or not that will help with smuggling the '&' through, I'm not sure.
|
|
From: Martin K. <ma...@bh...> - 2013-02-06 10:50:25
|
Hello, I would like to produce the SVG output, where the axis label contains symbol in upper index. At a moment, I can produce the symbols correctly with: set terminal svg noenhanced set ylabel ' Δ E ‡' But I would like to put the the double dagger symbol as the index. To do that, obviously: set terminal svg enhanced set ylabel ' Δ E^‡' But this causes the HTML entities to screw up. The ampersand gets interpreted in gnuplot sense as emtpy space, upon escaping to \Δ it end up as &, more backlashes do not help. Is there a way to solve this? Thanks Martin |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-01-29 19:53:29
|
On 27.01.2013 21:23, dreichen wrote: > I am using gnuplot to plot charts of amperage/power data. The logger > generates a database entry (SQLite) every 60 seconds or so, so plotting a > monthly line chart is what I'm going for, but plotting xticlabels was very > messy, because it would place a label every minute for an entire month's > worth of data. So why use xticlabels at all? You have time-date data, so why not use a time-data scaled axis to display it? |
|
From: dreichen <dcr...@ya...> - 2013-01-27 20:23:43
|
Ok. I spent yesterday afternoon figuring it out, and it's not a perfect solution, but a workable one. I am using gnuplot to plot charts of amperage/power data. The logger generates a database entry (SQLite) every 60 seconds or so, so plotting a monthly line chart is what I'm going for, but plotting xticlabels was very messy, because it would place a label every minute for an entire month's worth of data. The basic solution was to generate a plot using precise timestamps and with a yrange writeback set timefmt "%m/%d/%Y %H:%M:%S" set yrange [*:*] writeback set output "unknown" - this is a fix for an issue I found with PNG output plot sqlite command with select statement for all timestamps and data with lines then set yrange restore set terminal png size 950,480 set output "outfile.png" replot sqlite command select distinct days that logging occurs with simply a date as a timestamp and a zero value as column 2, 1:2:xtics(1) Issues: this works for me because amperage is usually positive and the zero values generated in the replot are ignored by using the yrange restore. If I were using data that had negative values, this would be an issue, because it would leave marks on the x Axis line. I hope I've helped you and have given you some ideas for fixing your problem. Dick R. 2012_December_sensor2_amperage.png <http://gnuplot.10905.n7.nabble.com/file/n17088/2012_December_sensor2_amperage.png> sabretoothedhamster wrote > 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://gnuplot.10905.n7.nabble.com/how-to-thin-out-textual-xticlabels-tp2093p17088.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: somesh <som...@gm...> - 2013-01-25 00:00:35
|
Leo Butler wrote > How about > > f(x) = (x >= 0 ? x : 1/abs(x)); > > plot file using 1:(f($2)) .... > > > Leo BBands wrote > That sort of approach is often useful in plotting certain types of > technical analysis indicators. One way I have seen that done is to > pick a pair arbitrary cutoff points near zero. You could try Googling > for John McGinley. He wrote on the subject back in the 1980s. His > solution was to plot a small slice of the chart just above and below > zero with a linear scale. I add a hatch to the region to make the > discontinuity clear. I haven't tried this in gnuplot, but Ethan > Merritt demoed some tricks using the ternary operator that should make > it doable. > > John Bollinger Thanks Leo and John for the ideas! I could do something similar to what I wanted by this: f(x) = (x >= 0 ? log10(x) : log10(1/abs(x))); then combine the following two plots (in linear scale) using multiplot ... set yrange [0:4] plot file using 1:(f($2)) set yrange [-4:0] plot file using 1:(f($2)) The use of multiplot is to place two plots above and below the zero line. Positioning is tricky but doable! Thanks, Somesh -- View this message in context: http://gnuplot.10905.n7.nabble.com/Both-positive-and-negative-log-y-axis-in-same-plot-tp17082p17085.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: BBands <bb...@gm...> - 2013-01-24 16:40:52
|
That sort of approach is often useful in plotting certain types of
technical analysis indicators. One way I have seen that done is to
pick a pair arbitrary cutoff points near zero. You could try Googling
for John McGinley. He wrote on the subject back in the 1980s. His
solution was to plot a small slice of the chart just above and below
zero with a linear scale. I add a hatch to the region to make the
discontinuity clear. I haven't tried this in gnuplot, but Ethan
Merritt demoed some tricks using the ternary operator that should make
it doable.
John Bollinger
On Thu, Jan 24, 2013 at 7:46 AM, somesh <som...@gm...> wrote:
> Hi,
>
> I have a data file like this:
> #x y
> 1 34
> 2 450
> 3 -987
> 4 20045
> 5 -1003
> 6 -30
>
> For only positive values, just "logscale y" is fine.
> For only negative values, I can use a reversed logscale:
> --
> set logscale y
> set yrange [ymin:ymax] reverse
> plot file u 1:(-$2) axis x1y1 t "Y" w linespoints
> --
>
> But how do I plot both positive and negative values in same plot?
> I want to place the x axis at the center of y axis; positive log scale (for
> positive values) above the x axis, and reversed logscale (for negative
> values) below the x axis.
>
> Is it possible?
>
> Thanks,
> Somesh
>
>
>
> --
> View this message in context: http://gnuplot.10905.n7.nabble.com/Both-positive-and-negative-log-y-axis-in-same-plot-tp17082.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
--
John Bollinger
www.BollingerBands.com
|
|
From: <l_b...@us...> - 2013-01-24 16:34:08
|
>From mailnull Thu Jan 24 15:48:29 2013 Received-SPF: neutral (sog-mx-4.v43.ch3.sourceforge.com: 172.29.29.180 is neither permitted nor denied by domain of lists.sourceforge.net) client-ip=172.29.29.180; env...@li...; helo=lists.sourceforge.net; Received-SPF: neutral (sog-mx-3.v43.ch3.sourceforge.com: 216.139.250.139 is neither permitted nor denied by domain of gmail.com) client-ip=216.139.250.139; env...@gm...; helo=joe.nabble.com; Date: Thu, 24 Jan 2013 07:46:43 -0800 From: somesh <som...@gm...> Content-Type: text/plain; charset="us-ascii" Hi, I have a data file like this: #x y 1 34 2 450 3 -987 4 20045 5 -1003 6 -30 For only positive values, just "logscale y" is fine. For only negative values, I can use a reversed logscale: -- set logscale y set yrange [ymin:ymax] reverse plot file u 1:(-$2) axis x1y1 t "Y" w linespoints -- But how do I plot both positive and negative values in same plot? I want to place the x axis at the center of y axis; positive log scale (for positive values) above the x axis, and reversed logscale (for negative values) below the x axis. How about f(x) = (x >= 0 ? x : 1/abs(x)); plot file using 1:(f($2)) .... Leo |
|
From: somesh <som...@gm...> - 2013-01-24 15:46:52
|
Hi, I have a data file like this: #x y 1 34 2 450 3 -987 4 20045 5 -1003 6 -30 For only positive values, just "logscale y" is fine. For only negative values, I can use a reversed logscale: -- set logscale y set yrange [ymin:ymax] reverse plot file u 1:(-$2) axis x1y1 t "Y" w linespoints -- But how do I plot both positive and negative values in same plot? I want to place the x axis at the center of y axis; positive log scale (for positive values) above the x axis, and reversed logscale (for negative values) below the x axis. Is it possible? Thanks, Somesh -- View this message in context: http://gnuplot.10905.n7.nabble.com/Both-positive-and-negative-log-y-axis-in-same-plot-tp17082.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: nf <nic...@ub...> - 2013-01-22 18:50:48
|
Thanks a bunch for the info. Apparently, all I had to do is install cairo and that gave me both the pngcairo and pdfcairo terminals after recompiling the gnuplot code. Much appreciated, Nick -- View this message in context: http://gnuplot.10905.n7.nabble.com/png-other-terminals-missing-tp17075p17081.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Gerhard G. <gap...@gm...> - 2013-01-22 14:13:04
|
Hi, I'm trying to create nice looking benchmarks with gnuplot which works quite well so far. See attachment. What is still is missing is histogram shadows. I've seen several examples in the internet which draw curve shadows by simple drawing the curve two times with a slight offset. Is there a trick like this for histograms? regards, Gerhard |
|
From: ianstern <ian...@ao...> - 2013-01-22 05:25:36
|
Hello, I have several data sets that I want to display on a plot with varying colored csplines. I want to display the the raw data points on the splines and have the colors of the data points match that of the associated spline. I also would like the key to display the line color and point shape together for each data set. The closest I have come is plotting the data points with key titles and overlaying the splines. However, to get the colors to match, I need to specify the colors of each point and each spline, which is very time consuming with all the data I have. Also, the line does not appear in the key. Does anyone know a "clean" way to integrate the points into a cspline display? Thank you, Ian -- View this message in context: http://gnuplot.10905.n7.nabble.com/Showing-data-points-with-cspline-tp17079.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Kai H. <kai...@gm...> - 2013-01-21 08:59:06
|
On 21 January 2013 16:53, walter harms <wh...@bf...> wrote: > maybe it is a bit late but you can use awk etc also within a plot cmd like > plot "<awk 'file'" > i found it very handy while testing I was using a similar approach https://github.com/kaihendry/laptemp/commit/863ea1de75b95ac0db19f656c5178e569a296cfd Problem with this is that lines won't join IIRC. |
|
From: walter h. <wh...@bf...> - 2013-01-21 08:53:42
|
Am 16.01.2013 14:16, schrieb Thor Andreassen:
> On Wed, Jan 16, 2013 at 12:39:36PM +0100, Mikhail Kononets wrote:
>> you could use external data processing in this case, like:
>>
>> echo "plot \"< awk '{ if (\$3==\\\"A\\\") print}' data\" u 1:2 w l" | gnuplot --persist
>
> Right, this is another way to do it, thank you. Although I would prefer,
> and expect, that the script I listed would work.
>
> Thank you for your help.
>
> [...]
>
maybe it is a bit late but you can use awk etc also within a plot cmd like
plot "<awk 'file'"
i found it very handy while testing
re,
wh
|
|
From: Nicola F. <fa...@ma...> - 2013-01-18 18:05:49
|
Hi there, I've been using gnuplot 4.6 for a while in my Ubuntu Linux 12.04 installation and just noticed that the png, pngcairo and a host of other terminals are missing. Any help on how to remedy that would be greatly appreciated. Thanks very much, Nick |
|
From: Kai H. <kai...@gm...> - 2013-01-17 03:07:01
|
On 16 January 2013 18:50, Mikhail Kononets <mko...@gm...> wrote: > why not using 1/0 specification instead of '?': Sorry, I'm a bit of a gnuplot newbie. I asked the question upon http://stackoverflow.com/questions/14314895/ and my sources are upon https://github.com/kaihendry/laptemp gnuplot> help 1/0 Sorry, no help for '1/0' gnuplot> help ? Doesn't "1/0" mean one divided by zero? I also (erroneously, I guess) filed a bug upon http://sourceforge.net/tracker/?func=detail&aid=3600871&group_id=2055&atid=102055 which I've since closed. Many thanks, |
|
From: Thor A. <ta...@to...> - 2013-01-16 13:16:12
|
On Wed, Jan 16, 2013 at 12:39:36PM +0100, Mikhail Kononets wrote:
> you could use external data processing in this case, like:
>
> echo "plot \"< awk '{ if (\$3==\\\"A\\\") print}' data\" u 1:2 w l" | gnuplot --persist
Right, this is another way to do it, thank you. Although I would prefer,
and expect, that the script I listed would work.
Thank you for your help.
[...]
--
best regards
Thor Andreassen
|
|
From: Mikhail K. <mko...@gm...> - 2013-01-16 11:39:52
|
you could use external data processing in this case, like:
echo "plot \"< awk '{ if (\$3==\\\"A\\\") print}' data\" u 1:2 w l" |
gnuplot --persist
it is possible to avoid ugly escaping by putting the processing commands
into a separate shell script.
On 16/01/2013 12:16, Thor Andreassen wrote:
> The only issue is if I want to connect data points
> separated by one of the undefined lines, see for example:
>
> echo "plot 'data' u 1:((strcol(3) eq 'A')? \$2 : 1/0)" | gnuplot
>
> [...]
>
--
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: Thor A. <ta...@to...> - 2013-01-16 11:16:26
|
On Wed, Jan 16, 2013 at 11:50:20AM +0100, Mikhail Kononets wrote: > Hi Thor Hi Mikhail, thanks for the help. > why not using 1/0 specification instead of '?': > > echo "set table; plot 'data' u 1:((strcol(3) eq 'B')? \$2 : 1/0)" | gnuplot > > # Curve 0 of 1, 5 points > # Curve title: "'data' u 1:((strcol(3) eq 'B')? $2 : 1/0)" > # x y type > 0 0 u > 0 0 u > 1 1 i > 2 4 i > 0 0 u I see, it does work better with NaNs, returning undefined for non-matching lines. The only issue is if I want to connect data points separated by one of the undefined lines, see for example: echo "plot 'data' u 1:((strcol(3) eq 'A')? \$2 : 1/0)" | gnuplot [...] -- best regards Thor Andreassen |
|
From: Mikhail K. <mko...@gm...> - 2013-01-16 10:50:40
|
Hi Thor
why not using 1/0 specification instead of '?':
echo "set table; plot 'data' u 1:((strcol(3) eq 'B')? \$2 : 1/0)" | gnuplot
# Curve 0 of 1, 5 points
# Curve title: "'data' u 1:((strcol(3) eq 'B')? $2 : 1/0)"
# x y type
0 0 u
0 0 u
1 1 i
2 4 i
0 0 u
Mikhail
On 16/01/2013 10:53, Thor Andreassen wrote:
> Hi,
>
> I was under the impression that it is possible to plot only parts of a data
> file with the ternary operator (?:), strcol() and missing ('?'), but I get
> strange results.
>
> My data file contains:
>
> 8<------8<------8<------8<------
> cat<< EOF> data
> 1 2 A
> 2 3 A
> 1 1 B
> 2 4 B
> 3 2 A
> 4 3 A
> EOF
> 8<------8<------8<------8<------
>
> Now if try to plot the lines with 'B' in the third column:
>
> echo "set table; plot 'data' u 1:((strcol(3) eq 'B')? \$2 : '?')" | gnuplot
>
> The result is:
>
> 8<------8<------8<------8<------
> # Curve 0 of 1, 6 points
> # Curve title: "'data' u 1:((strcol(3) eq 'B')? $2 : '?')"
> # x y type
> 1 1.89869e-267 i
> 2 1.89869e-267 i
> 1 1 i
> 2 4 i
> 3 4 i
> 4 4 i
> 8<------8<------8<------8<------
>
> Which is not what I expected. Am I doing it wrong or is this a bug?
>
> The above was tested with a recent cvs version of Gnuplot.
>
> gnuplot> show version long
>
> G N U P L O T
> Version 4.7 patchlevel 0 last modified 2013-01-08
> Build System: Linux i686
>
> Copyright (C) 1986-1993, 1998, 2004, 2007-2012
> Thomas Williams, Colin Kelley and many others
>
> gnuplot home: http://www.gnuplot.info
> mailing list: gnu...@li...
> faq, bugs, etc: type "help FAQ"
> immediate help: type "help" (plot window: hit 'h')
> Compile options:
> -READLINE +LIBREADLINE +HISTORY
> -BACKWARDS_COMPATIBILITY +BINARY_DATA
> +GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
> -USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
> +DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS
>
> GNUPLOT_DRIVER_DIR = "/opt/stow/gnuplot/libexec/gnuplot/4.7"
> GNUPLOT_PS_DIR = "/opt/stow/gnuplot/share/gnuplot/4.7/PostScript"
> HELPFILE = "/opt/stow/gnuplot/share/gnuplot/4.7/gnuplot.gih"
>
--
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: Thor A. <ta...@to...> - 2013-01-16 09:53:08
|
Hi,
I was under the impression that it is possible to plot only parts of a data
file with the ternary operator (?:), strcol() and missing ('?'), but I get
strange results.
My data file contains:
8<------8<------8<------8<------
cat << EOF > data
1 2 A
2 3 A
1 1 B
2 4 B
3 2 A
4 3 A
EOF
8<------8<------8<------8<------
Now if try to plot the lines with 'B' in the third column:
echo "set table; plot 'data' u 1:((strcol(3) eq 'B')? \$2 : '?')" | gnuplot
The result is:
8<------8<------8<------8<------
# Curve 0 of 1, 6 points
# Curve title: "'data' u 1:((strcol(3) eq 'B')? $2 : '?')"
# x y type
1 1.89869e-267 i
2 1.89869e-267 i
1 1 i
2 4 i
3 4 i
4 4 i
8<------8<------8<------8<------
Which is not what I expected. Am I doing it wrong or is this a bug?
The above was tested with a recent cvs version of Gnuplot.
gnuplot> show version long
G N U P L O T
Version 4.7 patchlevel 0 last modified 2013-01-08
Build System: Linux i686
Copyright (C) 1986-1993, 1998, 2004, 2007-2012
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
mailing list: gnu...@li...
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Compile options:
-READLINE +LIBREADLINE +HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS
GNUPLOT_DRIVER_DIR = "/opt/stow/gnuplot/libexec/gnuplot/4.7"
GNUPLOT_PS_DIR = "/opt/stow/gnuplot/share/gnuplot/4.7/PostScript"
HELPFILE = "/opt/stow/gnuplot/share/gnuplot/4.7/gnuplot.gih"
--
best regards
Thor Andreassen
|