gnuplot

GNUPLOT - Assign colours in pie chart

被刻印的时光 ゝ 提交于 2020-01-05 07:00:42
问题 I am trying generate a pie chart using GNUPLOT, I have already generate the plot, and I have assigned colour to the legend using an array. This is the code, I have used this question as reference script.sh #!/usr/bin/gnuplot set terminal pngcairo nocrop enhanced size 800,400 font "Siemens Sans,8" set output 'output.png' filename = 'source.dat' rowi = 1 rowf = 2 # obtain sum(column(2)) from rows `rowi` to `rowf` set datafile separator ',' stats filename u 2 every ::rowi::rowf noout prefix "A"

Smooth line on histograms in gnuplot

余生颓废 提交于 2020-01-05 04:38:10
问题 I want to make a smooth line over histograms. So far I have tried all the smooth functions but I am not able to get the result. For the histograms I am using: plot "file.scatter" u (hist($2,width)):(1.0) smooth freq w boxes notitle and the result is: But when I ask gnuplot to draw a smooth line over these: plot "file.scatter" u (hist($2,width)):(1.0) smooth freq w l notitle I get: I want the line plot to look smooth like a probability density function(of course the values will have to be

Why does _popen work here, but boost::process does not?

浪子不回头ぞ 提交于 2020-01-04 13:29:39
问题 I have the following working code using _popen, on windows, m_pGNUPlot = _popen("/gnuplot/bin/gnuplot.exe", "w"); fprintf(m_pGNUPlot, "set term win\n"); fprintf(m_pGNUPlot, "set term pngcairo\n"); fprintf(m_pGNUPlot, "plot \"\Data.txt\" using 1:2 notitle\n"); fprintf(m_pGNUPlot, "set output \"\Out.png\"\n"); fprintf(m_pGNUPlot, "replot\n"); fflush(m_pGNUPlot); But the problem with this is that cmd window keeps poping up, and there is no way to prevent that (Link) So, I write the equivalent

Why does _popen work here, but boost::process does not?

筅森魡賤 提交于 2020-01-04 13:26:24
问题 I have the following working code using _popen, on windows, m_pGNUPlot = _popen("/gnuplot/bin/gnuplot.exe", "w"); fprintf(m_pGNUPlot, "set term win\n"); fprintf(m_pGNUPlot, "set term pngcairo\n"); fprintf(m_pGNUPlot, "plot \"\Data.txt\" using 1:2 notitle\n"); fprintf(m_pGNUPlot, "set output \"\Out.png\"\n"); fprintf(m_pGNUPlot, "replot\n"); fflush(m_pGNUPlot); But the problem with this is that cmd window keeps poping up, and there is no way to prevent that (Link) So, I write the equivalent

Gnuplot y-axis value from x(dates)

五迷三道 提交于 2020-01-04 09:33:06
问题 I would like to know how the y can take value from the x (the x store the dates) i have the following dates 13/3/2014 218.11.11 12/4/2014 218.37.12 5/5/2014 218.31.34 7/5/2015 218.31.10 23/5/2014 218.32.21 4/6/2014 218.41.14 we have these dates and these ips i want store the ips in months example: 5/2014 - 3 IPS in gnuplot the graph i want to print every how much ips has every month here is what i have until now set xlabel 'Date' set title 'Gnuplot test graph' set ylabel 'IPS' set terminal

Gnuplot y-axis value from x(dates)

二次信任 提交于 2020-01-04 09:28:11
问题 I would like to know how the y can take value from the x (the x store the dates) i have the following dates 13/3/2014 218.11.11 12/4/2014 218.37.12 5/5/2014 218.31.34 7/5/2015 218.31.10 23/5/2014 218.32.21 4/6/2014 218.41.14 we have these dates and these ips i want store the ips in months example: 5/2014 - 3 IPS in gnuplot the graph i want to print every how much ips has every month here is what i have until now set xlabel 'Date' set title 'Gnuplot test graph' set ylabel 'IPS' set terminal

plot surface of cusp catastrophe (with gnuplot)

…衆ロ難τιáo~ 提交于 2020-01-04 07:03:29
问题 Is it possible to plot the surface of the Cusp Catastrophe with Gnuplot? Here's a comparable plot. The catastrophe is mathematically described by: V = x^4 + a*x^2 + b*x (Wikipedia, see above) The surface is describes by: 0 = a + b*y – y^3 I'm a gnu plot beginner, so I'd be really grateful for an example with source code. (I study psychology and I need this plot for an essay about a clinical theory: the cusp catastrophe is used to describe changes of mood, that seem to appear more sudden and

plot surface of cusp catastrophe (with gnuplot)

不羁的心 提交于 2020-01-04 07:03:04
问题 Is it possible to plot the surface of the Cusp Catastrophe with Gnuplot? Here's a comparable plot. The catastrophe is mathematically described by: V = x^4 + a*x^2 + b*x (Wikipedia, see above) The surface is describes by: 0 = a + b*y – y^3 I'm a gnu plot beginner, so I'd be really grateful for an example with source code. (I study psychology and I need this plot for an essay about a clinical theory: the cusp catastrophe is used to describe changes of mood, that seem to appear more sudden and

Lua Error: “Gnuplot terminal is not set”

∥☆過路亽.° 提交于 2020-01-04 04:14:14
问题 In LuaJIT or in the Torch REPL, I run the commands require 'gnuplot' gnuplot.figure() and I get the error "Gnuplot terminal is not set". I tried using gnuplot.setterm() with some guesses such as 'x11' and 'qt' as arguments, but get the error "gnuplot does not seem to have this term". Is there somewhere I can get a list of terminal emulators/graphics backends available to gnuplot? Or alternatively, are these errors indicative of some other problem? 回答1: It turns out that you get this error if

How to create a histogram with varying bin widths

一世执手 提交于 2020-01-04 02:47:07
问题 I have been unsuccessful with other using hist plot. A simple problem would be using the following data: age range - frequency - central band width - bin width - height (respectively) 1-4 - 30 - 2.5 - 3 - 10 5-6 - 20 - 5.5 - 1 - 20 7-17 - 30 - 12 - 10 - 3 With age along the X axis, with a linear scale, so the bin width for 1-4 would be 3, with height 10, bin width for 5-6 would be 1 with height of 20, and 7-17 would be 10 and the height would be 3. How would can I place these data into a Word