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.

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?

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.

I use gnuplot to print some ascii files. In the same plot I use data from different files. I skip the first and second line using every ::3.

Can I use the first two rows as key titles?

I study the emission of particles from a component.