I'm experimenting with evolutionary algorithms and I have written two text files that I cannot get the plot. Based on the information on google, I think I have the format correct.

(generation-number) (tab) (best-fitness)

for example:

1 231

2 240

3 245
...

To plot this, I start gnuplot and I am greeted by the welcome screen.

If you tell gnuplot to plot those numbers as simple lines they'll continuously overlap, making hard to see quickly which is higher in each moment, or how they all add up. I find that stacked filled graphs like the one here are much easier to understand, but I couldn't find how to do them with Gnuplot. Until now that is.

Hi,

I installed gnuplot-4.6.5 on Beaglebone Black running Angstrom by compiling from source.

I've upgraded to Ubuntu 14.04 few weeks back. I 've installed 'gnuplot' in my machine. But I can get into the gnuplot prompt however can not get the plot as the our put. It neither shows any error message not any output plot. May you suggest if I need to do something more or I tried it by reinstalling it too.

In sample.dat I have:

set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
set output 'simple.2.png'

plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))

From ubuntu/terminal I execute:

gnuplot -e "filename='sample.dat'"

but the simple.2.png file is not created. How do I export a plot to e.g png using gnuplot from command line?

I have a sqlite database that contains basic weather information in the following format:

temp1 temp2 pressure humidity
22 23 1024 40
24 25 1027 45
25 26 1020 62
18 15 1019 80

how can I plot this data using gnuplot? Do I have to re-arrange the data before being able to plot it?

Hi,

I want a graph plot using gnuplot for df -h command.

like filesystem, total size and avail size.

Thanks,
Anjan

---------- Post updated at 02:35 PM ---------- Previous update was at 02:34 PM ----------

I want a graph plot using gnuplot for df -h command per hour.

I really can't help you with Rox, as I have never used it nor read the documentation.It would be simple to do as a bash script, especially if you have bash-completion installed.#!/bin/bash

xr="set xrange [-10,10]"
yr="set xrange [-10,10]"
tsize="set term wxt size 11,11"
plot1="plot \"$1\" using 1:2"
plot2="plot \"$2\" using 1:2

I am using the following Gnuplot script :

##### Definitions ####
a=0.3
s0=10.
s1=-9.999
r1u(x)=-exp(x)*(-1+a+a*exp(x))/((1+exp(x))**3)
r2u(x)=exp(x)*(1-exp(x))*(-1+a+a*exp(x))/((1+exp(x))**4)
f1(c,d)=s0*c*(1-2*a)/2. + s1*r1u(d)
f2(c,d)=1./(3.*c) - s0*c/6.