我该 如何将图表的背景设定为多重的颜色?
主要软件:
主要软件版本: 7.0
主要软件修正版本: N/A
次要软件: N/A
问题: 我想在图表中设定多重的背景颜色,让我感兴趣的区域(ROI)可以用不同的颜色显示。例如,某个Y值以上是一种颜色,某个Y值以下是一种颜色,而中间(ROI)又是另一种。
解答: 多增加一些plot,然后用不同的颜色将这些增加的plot填满,有两种方法:
- 从人机界面 (參考附加文件)
- 展开Plot Legend,来增加plot
- 按右键,选择 Plot1 >>再选"Fill Base Line" >> 选'Infinity'. 这会使得整个图表在plot之上的区域都填滿plot1的顏色. 可以用这条plot作为上限
- 按右键选Plot2 >>选Fill Base Line >> 选'-Infinity'. 这会使得整个图表在plot2之下的区域都填滿plot2的顏色. 可以用这条plot作为下限
- 用 'Build Array' 結合这些资料, Plot0是实际的资料, Plot1作为上限, Plot2 作为下限。
- 用程序控制
可以使用下列 属性节点:
- 选Active Plot (ActPlot) -设定有效的 plot 是哪一个(第一个 plot 为 0).
- 再选 Plot Fill/Point Color (Plot.Fill/PtColor) - 设定要填滿顏色
- 选Plot Fill to (Plot.FillTo) - 填滿底线
附记: 请记得在设定 'Fill/Point Color' 和 'Fill To' properties之前,先设定 active plot。
相关链接: Knowledge Base [2NADQ10Q]: What Do All of the Properties for a Waveform Graph Do?
附件:
报告日期: 08/21/2006
最近更新: 08/23/2006
文档编号: 365I02YU
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.