如何使用非数字X轴绘制数据?

时间:2022-10-18 23:52:35

I have a series of performance tests I would like to show as a graph. I have a set of tests (about 10) which I run on a set of components (currently 3), and get throughput results.

我有一系列的性能测试,我想以图表的形式展示。我有一组测试(大约10个),我在一组组件(目前为3)上运行,并获得吞吐量结果。

The Y-axis would be the throughput result from the test, and the X-axis should have an abbreviated name of the test, with the results from the various components I'm testing. So, for each X label (eg. retrieve20Items, store20Items) there would be 3 different results above it, one for each of the three components I'm testing, each colour-coded and referenced in the legend.

Y轴将是测试的吞吐量结果,X轴应该具有测试的缩写名称,其结果来自我正在测试的各种组件。因此,对于每个X标签(例如,retrieve20Items,store20Items),在它上面将有3个不同的结果,一个用于我正在测试的三个组件中的每一个,每个组件在图例中进行颜色编码和引用。

Is this non-numeric x-axis something that I can do with gnuplot? This is being done on a linux platform, so Windows-only tools won't work for me.

这是非数字x轴,我可以用gnuplot吗?这是在Linux平台上完成的,因此仅限Windows的工具对我不起作用。

1 个解决方案

#1


14  

See this very helpful page. Essentially you create a number-label mapping using

看到这个非常有用的页面。基本上,您使用创建数字标签映射

set xtics ("lbl1" 1, "lbl2" 2, "lbl3" 3, "lbl4" 4)

Then plot as normal.

然后绘制正常。

#1


14  

See this very helpful page. Essentially you create a number-label mapping using

看到这个非常有用的页面。基本上,您使用创建数字标签映射

set xtics ("lbl1" 1, "lbl2" 2, "lbl3" 3, "lbl4" 4)

Then plot as normal.

然后绘制正常。