gnuplot

How to plot matrix with rgb image?

心已入冬 提交于 2019-12-22 09:48:24
问题 I want to plot m*n matrix, each element of which is an rgb triple, like in the following gnuplot code snippet (rgb matrix of 3*3 ): $cross << EODcross 255 0 0 0 0 0 255 0 0 0 0 0 0 0 0 0 0 0 255 0 0 0 0 0 255 0 0 EODcross Black cross on red background. I can change delimiters between columns and color components, if needed. Can I achieve the desired avoiding set palette rgbformulae i,j,k and directly using $cross data? Something like: plot '$cross' matrix with image rgb If not, I can pass

Gnuplot vertical gradient on boxes depending of a value?

本小妞迷上赌 提交于 2019-12-22 09:37:39
问题 Is this possible in gnuplot? How more energie how harder the color, look the example. plot for [i=1:16] file u 1:($10/i):((i*2)*1048576) w boxes lc rgb variable notitle. This is what I have now, this might be a possibility? The first example was an Excel graph. 回答1: Finaly i have for me the perfect, and . . i think a very nice solution. First the plot and after that the correspondenting script. The highlights are; maks = STATS_max_y min = STATS_max_x afgenomen = gebruikt-zon set palette

Histogram bar hiding tics

我与影子孤独终老i 提交于 2019-12-22 08:52:06
问题 I'm plotting a histogram in gnuplot and the bars end up covering the tics in the x axis, like so: Is there any way to prevent this? 回答1: I don't know for sure if this will work or not, but you can try this: set grid noxtics noytics noztics front From reading the documentation, it looks like that will push the tics to the top of the stack of objects when plotting (i.e. they'll get plotted after the bars making them visible (I think) ). Another option is to use transparency in your fillstyle,

Gnuplot: store last data point as variable

二次信任 提交于 2019-12-22 06:50:43
问题 I was wondering if there is an easy way, using Gnuplot, to get the last point in a data file say data.txt and store the values in a variable. From this question, accessing the nth datapoint in a datafile using gnuplot I know that I can get the X-Value using stats and GP_VAL_DATA_X_MAX variable, but is there a simple trick to get the corresponding y-value? 回答1: If you want to use Gnuplot, you can plot 'data.txt' plot[GPVAL_DATA_X_MAX:] 'data.txt' show variable GPVAL_DATA_Y_MAX OR plot 'data

Plus/minus symbol in gnuplot?

你说的曾经没有我的故事 提交于 2019-12-22 06:08:32
问题 I'm generating .eps figures in gnuplot for inclusion into papers typeset with LaTeX, using set terminal postscript eps enhanced "Helvetica" 14 This generally works perfectly, but i'm now trying to put together a figure using a label that includes a ± symbol. If I use it directly, e.g. set label "-56±2" then it appears correctly on the default 'wxt' terminal but is prefixed by an A with a circumflex (i.e. -56±2) in the postscript output. Using set label "-56^+/-2" works but looks rubbish. In

gnuplot-like program for timeline data

风流意气都作罢 提交于 2019-12-22 06:02:45
问题 I am looking for a gnuplot-like program for charting data in a timeline. gnuplot-like == Runs on Linux command line functionality (a GUI isn't going to help me much) scriptable syntax outputs to jpg, png, svg, or gif The output should be something like this: | | | | | set5|###################### | | | | | | | set4| ###### ####### | ########| | | | | | set3|############ |############# |## | | | | | set2| ######################### | | | | | | set1| ######### |### |########## | | | | | ----+----

gnuplot candlestick red and green fill

…衆ロ難τιáo~ 提交于 2019-12-22 05:52:16
问题 Candlestick plots on the financial sites, at least the ones I have seen, fill the candlestick green if the close is higher then the open, and red if the close is lower then the open. If I set the fill style all candlesticks are filled with the fill color, is there a way in gnuplot 4.6 to use the color scheme as I described above? A sample script is: set xdata time set timefmt"%Y-%m-%d %H:%M:%S" set xrange ["2014-01-01":"2014-01-02"] set yrange [*:*] set datafile separator "," plot '201401

How to plot a function of an imported data in gnuplot?

橙三吉。 提交于 2019-12-22 05:46:29
问题 If I have a file of several data points. How can I plot a function of them? For example, suppose I have a file of to columns x and y and I want to plot sin(y) as a function of 1/x . 回答1: Try this: plot "-" u (1/$1):(sin($2)) w l 2.00000 0.16104 3.00000 0.15604 4.00000 0.40055 5.00000 0.09972 e Or when not using data files make use of the parametric mode, which is described here EDIT With this data file Data.csv : 0.00000 0.33371 1.00000 0.13034 2.00000 0.16104 3.00000 0.15604 4.00000 0.40055

GNUPLOT: dot plot with data depending dot size

烂漫一生 提交于 2019-12-22 05:13:58
问题 I am trying plot data sets consisting of 3 coordinates: X-coordinate, x-coordinate and the number of occurrences. example: 1 2 10 3 1 2 3 2 1 I would like to draw for every line a dot at x,y with a diameter which is depending on the third value. Is that possible with Gnuplot? 回答1: Create a 2D plot with variable point size. See the demo. Example: plot 'dataFile.dat' u 1:2:3 w points lt 1 pt 10 ps variable 来源: https://stackoverflow.com/questions/2689403/gnuplot-dot-plot-with-data-depending-dot

Multiple data blocks in a single file and a single plot + Markers for each block

♀尐吖头ヾ 提交于 2019-12-22 00:29:56
问题 I have a data file that looks like this : "curve 0" 0 0.7800 10 0.333 12 0.5136 24 0.2096 26 -0.066 40 -0.674 42 -1.123 "curve 1" 0 0.876 2 0.73 4 0.693 6 0.672 10 0.70 12 0.88 16 0.95 148 -0.75 "curve 2" 8 2.2305 10 2.144 12 2.13 76 1.26 78 0.39 98 -0.97 I would like to plot each block of data independently of the others using gnuplot. Here's the code I'm using for this purpose : plot 'file' i 0 u 1:2 w lines title columnheader(1),\ 'file' i 1 u 1:2 w lines title columnheader(1),\ 'file' i 2