Veusz教程之Colorbar
控件简介
Veusz
绘图,其将图像的各个部分称为widget
(控件),对于每一个控件又分为Properties
(属性)和Formatting
(格式)在左侧边栏显示。如下图所示:

在上图中,可以看到有page
、graph1
、axis
(x
和 y 轴各一个)、colorbar
、image
一共六个组件.
它就像PhotoShop
一样,将不同的组件放置于不同的层
,
当它们之前相互无遮挡时就可以从图上同时看到了。如果某一控件被遮蔽,则按住左边对应的控件,上下移动可以调整其层次,也可以通过右键来设置。
Colorbar 控件设置
- 点击工具栏中的
Colorbar
按扭添加Colorbar
控件:

- 点击左侧
Colorbar
控件→Properties
对话框,在Widget
右侧的小箭头选择image1
, 如果有多个图片则可以选择某一个image
然后此Colorbar
就对应显示该图片的Colorbar
. - 在
Properties
中选择Direction
可以设置Colorbar
方向为水平horizontal
还是垂直vertical
方向,其中Axis
设置数值标尺相对于Colorbar
的位置。其中0
对应于Colorbar
的左侧,1
对应于Colorbar
的右侧,0.5
就位于中央。 - 在
Formatting
对话框中,选中Reflect
则数值标尺变成在坚线的左侧,不选中默认在坚线的右侧。 - 在
Formatting
对话框中,可以设置Horz posn
(水平位置)和Vert posn
(垂直位置), 由于一般默认情况left
,center
,right
会覆盖于图片上,所以选择manual
手工设置,然后在对话框最下面找到Horz manual
设置为1.05
就会在图片的右侧呈现Colorbar
. - 按上述设置,配置好
Colorbar
后,最终得到下图
