gnuplot error: Bad format character

前端 未结 3 1509
时光取名叫无心
时光取名叫无心 2021-01-15 12:54

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 (\"rando         


        
相关标签:
3条回答
  • 2021-01-15 13:09

    One obvious problem are the non-ASCII quotation marks. Replace them with ".

    The next problem might be the % characters, since those are comment characters for LaTeX. It might be necessary to escape them with a backslash: \%.

    Finally, your data file could have a non-standard separator. You might need to set the datafile separator.

    0 讨论(0)
  • 2021-01-15 13:13

    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.

    0 讨论(0)
  • 2021-01-15 13:14

    You have used two types of quotation mark:

    “...” and "..."
    

    I guess it's a problem.

    0 讨论(0)
提交回复
热议问题