Gnuplot:指出线条和调色板图例

时间:2018-11-09 14:01:03

标签: gnuplot

我正在尝试绘制一段时间内蛋白质的二级结构图。 我的数据如下:

static void Main(string[] args)
{
    if (args.Length < 2)
    {
        Console.WriteLine("Usage: MyTool <InputFolder> <OutputFolder>");
        return;
    }

    ref readonly var inputFolder = ref args[0];
    ref readonly var outputFolder = ref args[1];
}

将第三列设置为颜色。

我正在使用的代码是这样:

1 0 0
2 0 0
3 0 1
4 0 1
5 0 2
etc..

并生成以下输出:

Output

问题是:

1-点离开边界。

2-调色板图例退出图像。

更改点的类型或大小似乎无法与调色板结合使用,我希望保留此调色板。

我搜索了解决方案,但仍然找不到合适的解决方案。 任何人都有解决这些问题的想法吗?

谢谢

1 个答案:

答案 0 :(得分:0)

此图不需要使用splot(3D投影)或pm3d,因为它是纯色点的2D图。

set palette <whatever>
set auto xy
set pointsize <whatever>
plot 'sec_str_tl_cMD.dat' u 2:1:3 with points pointtype 5 lc palette
相关问题