Hot answers tagged

2

Gnuplot 5.0.3 Auto extracted list of the abbreviations with a variant of the code posted in the other answer. ra - raise low - lower bi - bind ca - call cl - clear eval - evaluate ex - exit f - fit h - help hi - history l - load pa - ...


2

Here I think it is a useful resource and I followed my own suggestion (see below) :-). You can download the not sorted version too , where the abbreviation are not alphabetically sorted, and so are grouped in commands, and option relative to the commands. Two ways As far as I am aware there is not a complete list of abbreviations, at least it is not so ...


2

This is straight out of the gnuplot documentation ("help ternary"): f(x) = (x>=0 && x <=a)?x:-2 After setting a value for a, you will be able to plot this function over any range you want.


2

You can try to use the pseudofile + and plot with the filledcurves option: set termoption enhanced set style fill transparent solid 0.70 noborder set key off set sample 1000 set xlabel "{/*1.2x}" set ylabel "{/*1.2f(x)}" plot [0:2*pi] '+' using ($1):(sin($1+.1)):(sin($1-.1)) w filledcurves


1

Have a look at filledcurves. To plot the set {sin(x-0.1) < y < sin(x+0.1)}, use: unset key set sample 1000 plot sin(x+0.1) w filledcurves y=-1 lw 0 replot sin(x-0.1) w filledcurves y=-1 lc rgbcolor "white" lw 0


1

You should edit the data in your file and insert a \n in the field where the title is parsed from. Gnuplot will recognize the \n and break the line at that point. Otherwise you need to manually enter the title and add the \n at your desired position. It is important to note, that \n is only considered by gnuplot if you have "string" instead of 'string'. ...


1

First try @Jason's solution - updating that specific port may do the trick. Do a little bit of googling to understand why the checksum is failing. The macports wiki lists common reasons for checksum failure and (in my personal experience) it is often a stealth upgrade by an upstream developer (like this one). If you have confirmed the cause of the ...


1

I don't understand why you would need to save the Gaussians into files, you can work directly using your Gauss function g. As you want to compare your data with the two Gaussians, your filtering function needs to be given max and min value at the position considered: filterData(y,m,M)=((y<m||y>M)? 1/0 : y) Then you can plot and/or fit: fit h(x) '...


1

You can filter data by creating a function something like: min_value = 1 max_value = 2 filterData(x)=(x < min_value || x > max_value) ? (1/0) : (x) plot 'data' u 1:(filterData($2)) The ternary operator: (is this true) ? it is true : it is false and 1/0 is undefined which gnuplot will silently ignore. (not tested)


1

First, a point of terminology: a contour plot is a plot showing isolines (also called isocontours) of a scalar function of two variables. So you're asking how not to make a contour plot, but rather a colour map (or heat map). Then there's the issue of how your data is presented and gridded. You are right that the matrix format of gnuplot is only appropriate ...


1

For the tics: set cbtics format "%1.1f" The maxcolor option of set palette allows you to define how many colours are used. zmax=1 zmin=0.3 zstep=0.1 set cbrange [zmin:zmax] set cbtics zstep set palette maxcolors (zmax-zmin)/zstep*2 splot [0:1][0:1] zmin+x*(zmax-zmin)


1

I'm no Gnuplot expert, but by looking at the documentation page 161 shows the set style fill command. From the documentation it says: The default fillstyle is empty. The solid option causes filling with a solid color, if the terminal supports that. The parameter specifies the intensity of the fill color. At a of 0.0, the box is empty, at of 1.0, ...


1

There are ways you can try, and check if they suit your needs set pm3d depthorder or set hidden3d ... More elaborate examples: gnuplot demo script: hidden2.dem


1

It depends on the gnuplot version you have. There are many example [1,2,...] you can start with. Take inspiration from the demos. The style of the image you shown is linepoints, and you can plot the labels with the keyword with label. You can print 2 times the same dataset, one with the linespoints, and the second with the labels. Start with plot "data....


1

I assume you want the count of entries per time unit (minutes in your example). I do not know, whether gnuplot can count lines in this manner. I would use awk (or any language convenient for you) to cumulate the data instead. Something like this would do: script = '{time = $3; gsub(/:[0-9][0-9]$/, "", time); date=sprintf("%s %s %s", $1, $2, time)} date==...



Only top voted, non community-wiki answers of a minimum length are eligible