Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gnuplot error: Bad format character

Tags:

gnuplot

Am new to gnuplot but need o use it urgently. This is the following set of commands I used:

set  terminal  latex
set output “conflict.tex”
set xtics ("random"  2, "sharing(0%)"  3, "sharing(10%)"  4, "sharing(25%)"   5, “sharing(50%)”  6, “stat”  7)
set ylabel “Conflict Percentage”
set xrange [0:9]
set yrange [0:60]
set xlabel “Traces”
set boxwidth 0.3
set style fill
plot 'D:\Utility Softwares\conflicts.dat' with boxes

after which i get "Bad format character" and don't know why

Thanks for help

like image 330
Lipika Deka Avatar asked Mar 28 '26 21:03

Lipika Deka


1 Answers

Recently I had the same problem with escaping ("Bad format character") in xtics().

This should work:

set xtics ("random"  2, "sharing(0\%%)"  1, ...)

What helped me, was to look at the generated tex file.

like image 177
John Avatar answered Apr 02 '26 09:04

John



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!