Bueno, dejando de procrastinar un poco voy a continuar con el tema de Gnuplot.
Habíamos visto los comandos mas importantes pues ahora voy a transcribir una pequeña guía del manual que recibí en un curso de redacción científica.
********************************Guía GnuPlot**************************************
Como les dije estoy con una pereza barbara y por ende solo copié y pegué los comandos, les queda de tarea repasar uno por uno y ver que sale.
Habíamos visto los comandos mas importantes pues ahora voy a transcribir una pequeña guía del manual que recibí en un curso de redacción científica.
********************************Guía GnuPlot**************************************
Gnuplot
guide
Show
background.ppt
Comparison 600.ppt to show the size
of fonts
Pwd
Cd
‘..’ to change folders also ‘’
Plot x
Show
terminal
Plot x**2,
x, x**3 delete previous
Change
directory with button
Change
directory by copying location
Set term
wxt 1
Set term
wxt size 800,600
Replot to fill all
Set size
1,1 same as set autoscale
Set size
1,2
Se size
1,0.5
Set size
1,1
Set size
ratio 1
Set size
ratio 2
Set size
ratio 0.5
Set term
wxt background rgb “red” also hexadecimal
color
Set xrange
[min:max]
Set yrange
[min:max]
Set xtics 1
Set mxtics
2 division
Set xtics
5,1
Set xtics (“uno” 1, “dos” 2, ”cuatro” 4, “diez” 10)
Set xlabel
“ddk”
Set title
“ddjdjdj”
Reset
Clear
PLOT log
Set xrange
[0.1:1000]
Set yrange
[0.01:100000]
Set
logscale xy
Plot x**2
Set format
y “10^{%L}” same with x
Set mxtics
10
Set format
x “%g”
Set format
x “”
Set format
x “%.2f”
Set format
x “%.4e”
PLOT
Trigonometric functions
Show angles
Set xtics
pi
Set format
x “%.0P”
Set xrange
[-2*pi:2*pi]
Plot sin
(x)
Set format
x “%.1P {/Symbol p}”
PLOT TXT
files
Change
location
Plot ‘data
months.txt’ w l, w p, w lp, w boxes, w impulses, smooth csplines
Set yrange
[0:] up to max
Set xrange
[*:] from min
set object
1 rectangle from x1,y1 to x2,y2 fillstyle solid fillcolor rgb “red”
set object
1 rectangle from x1,y1 to x2,y2 fillstyle transparent solid 0.8 fillcolor rgb
“red”
unset
object 1
set arrow 1
from 4,0 to 4,17 nohead lc rgb “red” lw 2
unset arrow
1
Fill the
space between two curves: both curves should be in the same file
plot
'lineatodo.txt' w filledcurves
plot 'data
months.txt' w filledcurves y2=16 fill pattern 2
(y2,y,x,x2)
fit curves
plot
“lcdemo.dat” #experimental
l(x) =
y0+m*x
fit l(x)
‘lcdemo.dat’ via y0,m
plot
‘lcdemo.dat’, l(x)
multiple
figues
set
multiplot
set size
0.5,0.5
plot sin(x)
set size
0.5,0.5
set origin
0.5,0.5
plot cos(x)
set size
0.5,0.5
set origin
0,0.5
plot x**2
set size
0.5,0.5
set origin
0.5,0
plot x
ZOOM of a
figure
set
multiplot
plot x
set size
0.3,0.3
set origin
0.6,0.1
set xrange
[0:10]
set yrange
[0:10]
plot x
export data
from excel
save as
txtfile
set key,
label axes, \, {}
linestyle
pi point interval
*********************************************************************************Como les dije estoy con una pereza barbara y por ende solo copié y pegué los comandos, les queda de tarea repasar uno por uno y ver que sale.
Comentarios
Publicar un comentario