Very nice! Could you explain how those coefficients are calculated, practically? I tried reading up on IIR filters, but the texts I found are gibberish to me. This could be a nice demo script. FIR filters also aren't hard, I'll work out and upload an example of a script I've written in the next days. Just need two arrays for the coefficients and the sampling buffer, and gnuplot's summation operator.
The default fonts used vary largely depending on the terminal setting (and local computer, e.g. what fonts are available, how the font subsystem is configured), and gnuplot doesn't really know what the default setting is, unless you set one explicitly for your terminal, e.g. in your .gnuplot / gnuplot.ini file. I don't know what you mean by "giant", windows describes font sizes by numbers. Or do you have a font that's called "giant", which really isn't? What terminal are you using? Please provide...
You can (should, usually, from a scientific point) also limit the plot to the range for which you did the fit. plot sample [6:10] a * x+b lc 1 lw 3 title "fit region", \ [3:6] a * x + b lc 1 title "extrapolation", \ $dat
For "plot" command, the index feature can not be used with stringcolumns.
Data sets are separated by two blank lines in the data file, and the first set has index number zero.
smooth mcsplines w table crashes
Hm, just gave it a try myself. You can (that's not clear from the docs, but I find it quite handy now) add a list of explicit tic positions to an invocation with an increment, in the same command. plot [0:6] sin(x) set xtics 2 add (1,0.6,3.9); rep You cannot add one incremental invocation to a previous one. They overwrite each other. That's not perfectly clear from the docs, but I don't know why I'd want to do it in the first place. ? set xtics 2; rep set xtics add pi/2; rep # tics at 0,2,4,6 disappear...
Hm, just gave it a try myself. You can (that's not clear from the docs, but I find it quite handy now) add a list of explicit tic positions to an invocation with an increment, in the same command. plot [0:6] sin(x) set xtics 2 add (1,0.6,3.9); rep You cannot add one incremental invocation to a previous one. They overwrite each other. That's not perfectly clear from the docs, but I don't know why I'd want to do it in the first place. ? set xtics 2; rep set xtics add pi/2; rep # tics at 0,2,4,6 disappear...
@markisch An error with tab completion upon pasting occured before https://sourceforge.net/p/gnuplot/bugs/1444/ You wrote it was fixed at the time, but it seems to have crept back in after five years. ;)
You can set y2tics set link y2 via y*180/pi inv y/180*pi to have radians on the left and degrees on the right, or plot on the (not viewed) y2axis and set up the link the other way round #unset y2tics set link y2 via y/180*pi inv y*180/pi set xrange ...; set y2range ... plot f(x) smooth unwrap axes x1y2
Oh, I hadn't checked boxplots and boxes in fact. Just candlesticks. And I also didn't know about "set offset". I was expecting to find the functionality under "set xtics". Does what it's supposed to, thanks! Only the name is a bit weird, that's not really an offset, is it? Perhaps a reference to "set offsets" in the help on "set xtics" and "set autoscale" would be good.
range extension options
I was somehow convinced that doesn't work. Thanks for showing otherwise!
Copypasting into wgnuplot
iterative fitting
Sounds like separate issues, yes. Should I file as a new bug?
Yea, copypasting into gnuplot is also a bit broken. Tabs trigger the filename completion, and I yesterday noticed that unix LF line endings just vanish on windows (i.e. when copypasting out of a browser). I can't build a windows version now unfortunately to check.
gnuplot: fastest bugfixing in the west :D Thanks!
Yea, copypasting into gnuplot is also a bit broken. Tabs trigger the filename completion, and I yesterday noticed that unix line LF line endings just vanish on windows (i.e. when copypasting out of a browser). I can't build a windows version now unfortunately to check.
wgnuplot dies when pressing CTRL+Ins
logscaled + noextend doesn't work
There was a post on the newsgroup a month ago, where it failed with the %p AM/PM specifier.
Ah, hadn't seen that. Yes, I meant the behaviour reported above. I think it was clearly a bug (esp. badly backwards incompatible), but I also agree it would be a useful feature, to be able to plot an arbitrary number of datasets in one go, and each with its own linetype and key entry.
The new behaviour feels a bit awkward, and doesn't match with the documentation. help index says : If index is not specified, the entire file is plotted as a single data set. Also "plot" still handles multiple datasets in the old way, i.e. always creates only one entry in the legend. I'm thinking the "plot for [] ..." loop should instead accept an open ended iteration specifier [i=0::1], which suppresses the error message if a subsequent index specifer runs out of datasets.
dashtype " " crashes wxt terminal
Finally had a chance to give it a try, many thanks!
wrap kernel functions of angular data with smooth kdensity
You need to use the specified input timefmt to set the range, not the one displayed on the axis see example under help Time/Date data or any arbitrary format : set xrange [strptime("%d.%m.%Y","1.3.2020"):*]
The reason and workaround are clear, I just thought the user should get cautioned if he tries to modify x. ;) Of course if gnuplot had such local variables, then the dummy variables could just be treated as ones inside the function, too, right? Perhaps additional local variables could be defined like this f(x,y; a,b=3,c=.23) = .... plot f(x,y) , where a, b, c shadow global variables of the same name, just as x and y do already, and are reset before every evaluation.
change value of independent variable during function evaluation
You could attach the file to your post. One sees this same error with plot dataf when the first line in the file is unreadable (e.g. contains text without a hash mark in front), but it vanishes if you type plot dataf us 1:2. That doesnt seem to fit here however. Does this plot '-' 0.00152339 0.111111 0.00205761 0.0625 0.00230414 0.04 0.00243902 0.027777 e work when you c&p it into your gnuplot console?
Much simpler example with wxt or qt terminal set ylabel "ylabel" unset ytics plot x The ylabel sits tightly on the left border, with the lower end of the "y" (depending on the font i guess) even sticking into the graph. (qt need plotting twice, the first try looks terrible due to the slow font initialisation problem)
So that is the "windows" terminal, I assume. You can try using the wxt terminal (set term wxt), it can also export to emf, or directly use the "emf" terminal set output 'test.emf' set term push set term emf plot dataf us 1:2 w l .... set term pop set output Other than that, it's impossible to tell from here, as the only difference between those plots is the data file. Unless one of them is extremely large and you hit some size limit (no idea if there is one). I can only advise cutting the file in...
So that is the "windows" terminal, I assume. You can try using the wxt terminal (set term wxt), it can also export to emf, or directly use the "emf" terminal set output 'test.emf' set term push set term emf plot dataf us 1:2 w l .... set term pop set output Other than that, it's impossible to tell from here, as the only difference between those plots is the data file. Unless one of them is extremely large and you hit some size limit (no idea if there is one). I can only advise cutting the file in...
I like the idea of preset styles for set grid, e.g. crosshair, invcrosshair, doublecrosshair (smaller cross at intersection of tics and mtics lines). Or, more versatile, a keyword for each x/y(m)tic grid line that says to break the line inbetween + optional to invert that pattern
My suggestion would be font aliases, e.g. like set alias TmIt12 "Times New Roman:Italic,12" set title 'A {/#TmIt12 new} title' But then in the age of utf8, you normally only need one font per label, i.e. you don't need to switch between symbol and normal font. So it's probably not really an issue. Since nobody has complained about this ever since enhanced text mode was introduced ...
Have you tried that lately? On my system, wxt understands both "times-new-roman" and "times new roman", but e.g. the windows terminal doesn't even find the font with dashes instead of spaces, and switches to default sans serif.
Or any other font that you actually have. What you see on your screenshots is definitely no "Times" variant but the default sans serif font, as the warning tells you. (Times and Times New Roman are principally the same font, but the names belong to two different companies, one of which has licensed it to Microsoft (TNR), and the other to the rest of the world (Times). There are a few subtle differences in what they look like, but you'd have to be a typesetter to recognise them.) I don't know if it...
Are you running this in the (windows shell) console version? Because this warning is not normally shown in the standard GUI console. (it should, principally) And do you not get the warning if you just do a simple "plot x", without going to multiplot mode? (That would be really odd.) Anyway, the reason is you don't have "Times" on a regular windows installation, but only "Times New Roman", the MS copy. "Arial" you have, so you get no warning. No bug here, very likely.
Are you running this in the (windows shell) console version? Because this warning is not shown in the standard GUI console. (it should, principally) And do you not get the warning if you just do a simple "plot x", without going to multiplot mode? (That would be really odd.) Anyway, the reason is you don't have "Times" on a regular windows installation, but only "Times New Roman", the MS copy. "Arial" you have, so you get no warning.
Both look broken in a similar way like what I get on my machine (win7, 5.2pl6a binary from sf.net). Also I think there is sth wrong with Ethan's output above, look at the letters x and a in the word "example" printed diagonally, they don't look right. It's just not so obvious as in the output with the Arial font. But, as the output from pdfcairo looks perfect, I assume Ethan is right that this is a bug in cairo/pango, only it has probably never been found/fixed. And from what it looks to me, it's...
There's another way to give different sampling ranges for subplots. See alsohelp special filename. plot \ sample [t=0:pi] '+' us (cos(t)):(sin(t)), \ [t=.5*pi:1.5*pi] '+' us (cos(t)*1.05):(sin(t)*1.05, \ [t=pi:2*pi] '+' us (cos(t)*1.1):(sin(t)*1.1) (the keyword "sample" has to be given in front of the first subplot only) If logsc x is set, '+' generates logspaced datapoints. '++' doesn't do that, but I'm not sure how exactly that is intended to work, the help doesn't mention logscaled sampling (or...
Bit simpler example, it looks like if logsc is set, the parametric plot does not use t but 10^t reset;set samp 10 set logscale x set parametric set trange [1:2] plot t,t w lp set table;rep;unset table Same behaviour already in 5.2pl0, but not 5.0pl7.
Bit simpler example, it looks like if logsc is set, the parametric plot does not use t but 10^t reset;set samp 10 set logscale x set parametric set trange [1:2] plot t,t w lp set table;rep;unset table
Bit simpler example, it looks like if logsc is set, the parametric plot does not use t but 10^t reset set samp 10 set logscale x set parametric set trange [1:2] plot t,t w lp set table rep unset table
option to not generate isoline datapoints
kerning in vertical text of cairo-based terminals
Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo rounded sets line caps and line joins to be rounded; butt is the default, butt caps and mitered joins. means? And what's the difference between butt and square? I couldn't see any. set samp 15 set term wxt 0 lw 8 rounded plot [-10:10] [-1.2:1.2] sample [-8:8] sin(x) set term wxt 1 lw 8 square; rep set term wxt 2 lw 8 butt; rep (now I noticed, square let's the line end extend over the last point by lw/2) Btw....
Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo rounded sets line caps and line joins to be rounded; butt is the default, butt caps and mitered joins. means? And what's the difference between butt and square? I couldn't see any. set samp 15 set term wxt 0 lw 8 rounded plot [-10:10] [-1.2:1.2] sample [-8:8] sin(x) set term wxt 1 lw 8 square; rep set term wxt 2 lw 8 butt; rep Btw. the line ending options are missing from the help on term wxt.
Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo rounded sets line caps and line joins to be rounded; butt is the default, butt caps and mitered joins. means?
Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo **rounded** sets line caps and line joins to be rounded; **butt** is the default, *butt caps and mitered joins*. means?
Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo **rounded** sets line caps and line joins to be rounded; **butt** is the default, *butt caps and mitered joins*. means?
But shouldn't enigmail honour my default settings? Just saying ... ;-) Not everybody I email has his certificates correctly set up on all his devices.
I've seen the two other recent threads about enigmail and S/MIME, not sure how this fits in: I want to solely use S/MIME in one account and enigmail in another. However enigmail always removes the S/MIME buttons in the composer window, and replaces it with it's own buttons. They work for S/MIME also, which is fine, but encryption always gets enabled by default as soon as I type in address with known certificate, although I've disabled S/MIME encryption in the account settings. (enigmail 2.0.2 / TB...
If you (re)set the output file just before the last "replot", it comes out all right. "replot" doesn't just add to the existing plot, but recreates everything (at least in the output) from scratch.
Thanks! Good idea to set a flag in FIT_SCRIPT, that works fine. Less elegant: I found that hitting CTRL-C several times before pressing "S"(top) also most of the time ends the script.
Cannot CTRL-C from interrupted fit
Can reproduce this on 5.0pl1, but not 5.2pl2. Seems this has been fixed? Found this in the changelog: 2016-01-31 Ethan A Merritt merritt@u.washington.edu * src/wxterminal/wxt_gui.cpp: Another pair of fixes for wxt font processing. Prevent a memory leak from temporary storage of the fontname. Initial font used by enhanced text processing should be the most recently set font, not the original one from "set term". Funnily, 5.0pl3 was released five days later.
This change seems to not have made it into the 5.2 release notes.
You can upload text files (gnuplot scripts), screenshots in png or jpeg, anything except binary code i guess. Some people can't or don't want to open (foreign) MS Word files, however. Can you please also post the gnuplot commands your "code" issues, i.e. redirect them into a text file to c&p here? That'll make it easier to reproduce the problem.
You can set mouse ruler and then use two pause mouse commands in a while () {} loop with the respective commands to do stats over the chosen range, put the calculated average in a label (set label) and then replot . Something like this: plot dataf using .... set mouse ruler flag=1 while (flag) { flag=0 pause mouse keypress,button1 "press x exit, left mouse button for left border" if (MOUSE_KEY!=120) { x1=MOUSE_X pause mouse keypress,button2 "press x exit, right mouse button for right border" if (MOUSE_KEY!=120){...
You can set mouse ruler and then use two pause mouse commands in a do while {} loop with the respective commands to do stats over the chosen range, put the calculated average in a label (set label) and then replot . Something like this: plot dataf using .... set mouse ruler flag=1 do while (flag) { flag=0 pause mouse keypress,button1 "press x exit, left mouse button for left border" if (MOUSE_KEY!=120) { x1=MOUSE_X pause mouse keypress,button2 "press x exit, right mouse button for right border" if...
That is unfortunately a rather tricky feature, and most solutions i have seen in other software do not work very reliably. The problem is to determine what should happen when a parameter reaches that border. Set it to that value and/or take it out of the fit? Make it "expensive" to get ever closer to the min/max value? How expensive? A good choice will surely be problem-dependent, and a bad one could lead to wrong ar at least different results. Luckily, this however (often) becomes a non-problem...
That is unfortunately a rather tricky feature, and most solutions i have seen in other software do not work very reliably. The problem is to determine what should happen when a parameter reaches that border. Set it to that value and/or take it out of the fit? Make it "expensive" to get ever closer to the min/max value? How expensive? A good choice will surely be problem-dependent, and a bad one could lead to wrong ar at least different results. Luckily, this however becomes a non-problem if you determine...
That is unfortunately a rather tricky feature, and most solutions i have seen in other software do not work very reliably. The problem is to determine what should happen when a parameter reaches that border. Set it to that value and/or take it out of the fit? Make it "expensive" to get ever closer to the min/max value? How expensive? A good choice will surely be problem-dependent, and a bad one could lead to wrong ar at least different results. Luckily, this however becomes a non-problem if you determine...
That is unfortunately a rather tricky feature, and most solutions i have seen do not work very reliably. The problem is to determine what should happen when a parameter reaches that border. Set it to that value and/or take it out of the fit? Make it "expensive" to get ever closer to the min/max value? How expensive? A good choice will surely be problem-dependent, and a bad one could lead to wrong ar at least different results. Luckily, this however becomes a non-problem if you determine your starting...
This should make clear what happens: $data << EOD 1 # first block in first dataset 2 3 # second block 4 # two blank lines should follow here, but sf doesn't allow that 5 # first block in second ds 6 7 # etc. 8 EOD plot $data index 0 w l, $data every :::1::1 w l "data blocks" (addressed via "every") are separated by a single blank line, data sets (addressed by "index") by two.
This should make clear what happens: $data << EOD 1 # first block in first dataset 2 3 # second block 4 5 # first block in second ds 6 7 # etc. 8 EOD plot $data index 0 w l, $data every :::1::1 w l "data blocks" (addressed via "every") are separated by a single blank line, data sets (addressed by "index") by two.
Ah, Ok. I was already one step further. That addition could certainly be useful, I remember once having some info in the header line to normalise data. At least the function would then match it's current description. I'll give the patch a try. But having that, can't we always send a placeholder instead of an actual title string, postpone evaluating the title to after processing the data (assuming that's a simple change), and give the result to the actual drawing routine when it comes across the ...
You mean the alternative would be to have an option to read the title from (the last value of) an extra column in the "using" statement, instead of processing it in as an option to "title"? But then, can't we "fake" this behaviour and transparently always treat plot titles like that? What ever comes behind the keword "title" becomes an implicit, additional "using" column?
Can you point out the position in the help that you found misleading, and/or make a suggestion for improvement? The difference was always quite clear to me.
No problem on windows with an old 5.0pl1 or 5.0pl6 or the new 5.2pl0, I get a star with lines of alternating (red and blue) colours. It'd be strange if this was mac-specific, I guess you have mixed up sth. in your palette and are plotting every other line in white. Can you add a third column for the colour and fill it with a different sequence of numbers to make sure the problem is real?
I see this would be very tricky. gnuplot (because we can do multiple plots in one command) has to parse the whole command before reading in any (header) data. So the only thing that can be used together with the columnhead() function is the string concatenation operator "." ? It'd be good if the help would make the limitations clearer: columnhead(x) may only be used to set a plot title as part of a plot, splot, or stats command. It returns a string containing the content of column x in the first...
substr() does not work with columnhead()
gnuplot not opening graph
Yes, if you put path = GPVAL_PWD pause -1 path into your script (instead of an actual plot command), you see that windows actually executes the script in C:\Windows\System32 instead of the current path if you run it from the search window. (tested in win7 here) I guess you will have to work around that, because this is a windows feature, not a gnuplot bug. Unless there is a special windows configuration option for that, which the gnuplot installer should set ... ?
5.2rc1 Inconsistent "data block" definition for 'every'
This should make clear what happens: $data << EOD 1 # first block in first dataset 2 3 # second block 4 5 # first block in second ds 6 7 # etc. 8 EOD plot $data index 0 w l, $data every :::1::1 w l "data blocks" (addressed via "every") are separated by a single blank line, data sets (addressed by "index") by two.
While at it, that "screendump" button could probably get removed. The function is unclear to me, anyway. Why an extra button to run a command that is there to not have to do mouse interaction? Generally, I find those "modern" icons (similar ones are used in e.g. jabref and other java-based programs) not much of an improvement. The opposite, rather, they are not well discernible at all to me. It's also a matter of taste probably, but why are they b&w? Looks stylish, but not functional. ymmv
The wikipedia article https://en.wikipedia.org/wiki/.dwg points to a "re-"fork http://libdwg.sourceforge.net/en/index.html, no idea if that would be useable license-wise. At least it seems to have died only recently. UPDATE: And it is only for reading .dwg. Not useful here. I skimmed through that spec file, does dxf today support 3D? That'd be interesting. I tested a bit more, and rectangles/polygons come out broken in LibreCAD. They look OK in Inventor, though. I'll try to diagnose that and report...
The wikipedia article https://en.wikipedia.org/wiki/.dwg points to a "re-"fork http://libdwg.sourceforge.net/en/index.html, no idea if that would be useable license-wise. At least it seems to have died only recently. UPDATE: And it is only for reading .dwg. Not useful here. I skimmed through that spec file, does dxf today support 3D? That'd be interesting. I tested a bit more, and rectangles/polygons come out broken in LibreCAD. They look OK in Inventor, though. I'll try to diagnose that and report...
The wikipedia article https://en.wikipedia.org/wiki/.dwg points to a "re-"fork http://libdwg.sourceforge.net/en/index.html, no idea if that would be useable license-wise. At least it seems to have died only recently. UPDATE: And it is only for reading .dwg. Not useful here. I skimmed through that spec file, does dxf today support 3D? That'd be interesting. I tested a bit more, and rectangles/polygons come out broken in LibeCAD. They look OK in Inventor, though. I'll try to diagnose that and report...
The wikipedia article https://en.wikipedia.org/wiki/.dwg points to a "re-"fork http://libdwg.sourceforge.net/en/index.html, no idea if that would be useable license-wise. At least it seems to have died only recently. I skimmed through that spec file, does dxf today support 3D? That'd be interesting. I tested a bit more, and rectangles/polygons come out broken in LibeCAD. They look OK in Inventor, though. I'll try to diagnose that and report back. Ellipses/circles seem to work.
The wikipedia article https://en.wikipedia.org/wiki/.dwg points to a "re-"fork http://libdwg.sourceforge.net/en/index.html, no idea if that would be useable license-wise. At least it seems to have died only recently. I tested a bit more, and rectangles/polygons come out broken in LibeCAD. They look OK in Inventor, though. I'll try to diagnose that and report back. Ellipses/circles seem to work.
Yea, I was wondering why my original script never tripped on this one before. Thanks!
keep dxf terminal
crash if stat command finds no data in current range
No such files on windows, but there are registry entries under HKEY_CURRENT_USER/Software/gnuplot/... for both wxt and qt.
Stupid question: Where do wxt and qtl store the graph options? They get retained nicely, without explicitly storing them, but how?
Just checked on win7/firefox (with the demo linked above), and the zooming sometimes works, and sometimes all data points disappear.
There are compatible (and gpl-licensed) dictionaries available on https://addons.mozilla.org/de/firefox/language-tools/....
gnuplot 5.0.6 axis x2y2 bug
Hm. The range changes if you set the x2tics/y2tics after plotting. They are then...
I don't have your data, but everything looks fine here (also 5.0pl6): $dat << EOD...
Possibly. ;-) I must say I'm with Dan here, have always found it slightly confusing...
Make that an option to "reset", and leave it to the user to re-bind the "u" key accordingly?...
Make that an option to "reset", and leave it to the user to re-bind the "u" key accordingly?...
window title is displaced