我正在使用Gnuplot绘制图形。在图形中,我绘制了三条属于三个数据集的平滑曲线。
目前,我正在使用以下Gnuplot脚本。
使用上述脚本我得到了以下图表。
现在我想使用唯一的点样式绘制属于同一曲线的每个点。(例如,属于C#的每个点使用一个点类型,而C++数据点则使用不同的样式。)
我尝试过一些教程,但仍然没有成功。有人能帮我完成这个任务吗?
目前,我正在使用以下Gnuplot脚本。
reset
set terminal png
set xlabel "Square matrix size"
set ylabel "Time (in milliseconds)"
set yrange [0:750]
set title "Lower Triangular Matrix"
set key reverse Left outside
set grid
set output 'matrixlt.png'
set style data linespoints
plot "matrixlowertriangle.dat" using 1:2 lt 1 lw 2 smooth bezier title 'MatPro', \
"matrixlowertriangle.dat" using 1:3 lt 2 lw 2 smooth bezier title 'C#' , \
"matrixlowertriangle.dat" using 1:4 lt 3 lw 2 smooth bezier title 'C++'
使用上述脚本我得到了以下图表。
![enter image description here](https://istack.dev59.com/dnxhN.webp)
我尝试过一些教程,但仍然没有成功。有人能帮我完成这个任务吗?