首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在axe ylabel2上显示值

如何在axe ylabel2上显示值
EN

Stack Overflow用户
提问于 2012-11-28 01:04:18
回答 1查看 265关注 0票数 0

这是我的代码:

代码语言:javascript
运行
复制
set title "courbe"
set xlabel "first" 
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints tit 'first', "File.txt" using 1:3 with linespoints tit 'second', "File.txt" using 1:4 with points tit 'third'

请,第三把斧头不显示在斧头上的数字..have你一个想法好吗?

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2012-11-28 03:28:27

我怀疑这是您用来生成该图的实际脚本,因为第二个plot命令的标题不匹配。除此之外,您实际上并没有在y2轴上绘制任何内容。要将某些东西放在y2轴上,您需要显式指定(例如axes x1y2)。类似于:

代码语言:javascript
运行
复制
set title "courbe"
set xlabel "first" 
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints title 'first',\
     "File.txt" using 1:3 with linespoints title 'second', \
     "File.txt" axes x1y2 using 1:4 with points title 'third'

应该能行得通。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13589303

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档