GNUPLOT - Can't display values over the bar

百般思念 提交于 2019-12-02 01:17:10

Use the offset parameter for the with labels plotting styles. With this you can add a vertical offset which you specify e.g. in character or graph units:

plot fuente using 0:2:xtic(1) with boxes, '' using 0:2:2 with labels offset 0, char 1

Sidenote: Adding the constant value of 0.5 to the y-value (like $2 + 0.5) doesn't work for you, because the 0.5 is in units of the y-axis, and very small compared to your yrange.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!