Grazie mille!
Però… come si fa?
Questo è lo script che uso:
`
# Modifiche all'asse “x”
set xlabel ” ”
set xdata time
set timefmt “%d/%m/%Y” ### formato dati input ###
set format x “%Y”
set xrange [“1/1/1987″:”1/1/2008”]
set xtics rotate #('1/1/1880', '1/1/1890', '1/1/1900', '1/1/1910', '1/1/1920', '1/1/1930', '1/1/1940', '1/1/1950', '1/1/1960', '1/1/1970', '1/1/1980', '1/1/1990', '1/1/2000', '1/1/2010')# Modifiche all'asse “y”
set ylabel “Prezzo (Dollari al barile)”
set format y “$%.2f”
set yrange [0:80]# Legenda
# unset key ### toglila ###
set key top left ### in alto a sinistra #### Griglia
set grid# Disegna!
plot “prezzo_greggio.csv” using 1:2 title 'Cushing' with lines#, \
# “prezzo_greggio.csv” using 1:3 title 'Brent' w lines# Guarda il risultato:
pause -1 ” Premereper proseguire” # Output file
# TeX
set output “greggio.tex”
set terminal latex
replot
`
Meglio sarebbe stato fornire un estratto del .csv, che dici?
Hai provato a scrivere
`set format y “\$%.2f”`
o con un doppio backslash? Non sono pratico della sintassi di GNUplot, quindi può darsi che ne servano due per ottenerne una.
Ciao
Enrico