Posts

Showing posts with the label gnuplot

gnuplot print column header with stats

Image
Clash Royale CLAN TAG #URR8PPP gnuplot print column header with stats The gunplot stats command can be used to report stats for an input dataset. It creates a set of variables containing information about a specific column in the dataset. Here is an example of such use: stats set print "StatDat.dat" do for [i=2:9] { # Here you will use i for the column. stats 'data.dat' u i nooutput ; print i, STATS_median, STATS_mean , STATS_stddev # ... } set print plot "StatDat.dat" us 1:2 # or whatever column you want... It would be useful to include the reported column header, something like: print STATS_columnheader, STATS_median, STATS_mean , STATS_stddev # ... However gnuplot does not provide the required STATS_columnheader variable. STATS_columnheader Is there an alternative way to achieve this ? 1 Answer 1 You can use an external tool suc...

Plotting 1D profile in GNU PLOT

Image
Clash Royale CLAN TAG #URR8PPP Plotting 1D profile in GNU PLOT I have collected data at eight different point along a profile of 5000km long. The data consist of velocity value at different depth. I am able to plot velocity vs depth with X axis as velocity and y axis downward as depth. But I want to plot x-axis as profile distance(0 to 5ooo) on x-axis and Depth on y-axis downward, with velocity vs depth at different distance along profile. say at 2000km distance on x-axis I want to plot velocity vs depth. so far what I did given below. But output is not what I want. #!/usr/bin/gnuplot set terminal png medium set output "ave_psi.png" unset key reset set term epscairo font "Times,8" lw 0.5 set output 'AUGIRL.eps' unset key set sample 10000 set size ratio 1.5 set style data lines set xtics format "" set x2tics nomirror set ytics out nomirror set ytics 0,50 set x2label "Distance" font "Times, 12" offset -1 set ylabel 'Depth (km...