Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么是';格式错误的字符';在gnuplot中是什么意思?_Gnuplot - Fatal编程技术网

什么是';格式错误的字符';在gnuplot中是什么意思?

什么是';格式错误的字符';在gnuplot中是什么意思?,gnuplot,Gnuplot,我是gnuplot的新手。我把下面的内容放在图上,试图绘制这些数据 # Timepoint Cell Number and Viability # in 1 x 10^7 1 12175000 76.59 2 30575000 93.60 3 87950000 95.84 4 133650000 97.70 5 231500000 97.68 当我在没有y2轴的情况下输入数据时,数据的绘制没有任何问题。然而,当我开始放置y2轴并在之后将其移除时,

我是gnuplot的新手。我把下面的内容放在图上,试图绘制这些数据

# Timepoint Cell Number and Viability
# in 1 x 10^7

1   12175000    76.59
2   30575000    93.60
3   87950000    95.84
4   133650000   97.70
5   231500000   97.68
当我在没有y2轴的情况下输入数据时,数据的绘制没有任何问题。然而,当我开始放置y2轴并在之后将其移除时,gnuplot停止绘制数据,并开始不断出现错误,显示消息“格式错误字符”

我曾尝试删除y2轴,但gnuplot仍不断提示“格式错误字符”。我也尝试过删除所有美学元素,只使用plot'datafile'命令,但仍然没有成功。求你了,我需要帮助。多谢各位

#Program run for plotting Drosophila cells growth curve

cd 'file location'

set style data linespoints
set title 'Drosophila cells growth curve during induction'

set xrange [0.8:5.2]
set yrange [0:260000000]
set y2range [0:100]
set xlabel 'Hours of culture'
set ylabel 'Cell number'
set y2label 'Percent Viability'
set xtics ('0 hour' 1, '72 hours' 2, '144 hours' 3, '168 hours' 4, '216 hours' 5)
set y2tics ('0%'  0, '10%' 10, '20%' 20, '30%' 30, '40%' 40, '50%' 50, '60%' 60, '70%' 70, '80%' 80, '90%' 90, '100%' 100)

plot 'datafile' using 1:2 lw 3 lc rgb 'black' pt 6 title 'Cell number', 'datafile' using 1:3 lw 3 lc rgb 'red' pt 4 title 'Viability' axis x1y2 
我希望数据以2个y轴绘制,但我得到的只是一条加载“数据文件”消息,带有第17行:错误格式字符消息。“显式”TIC可以包括使用
%
作为特殊字符的格式信息。要按字面意思包含它,请将其加倍:

set y2tics ('0%%'  0, '10%%' 10, '20%%' 20, '30%%' 30, '40%%' 40, '50%%' 50, '60%%' 60, '70%%' 70, '80%%' 80, '90%%' 90, '100%%' 100)