码迷,mamicode.com
首页 > 其他好文 > 详细

change legend layout from 'vertical' to 'horizontal' in Paraview

时间:2019-01-18 12:57:34      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:variable   技术分享   png   prope   tco   legend   col   nta   odi   

 

**********

# get color legend/bar for ‘vLUT‘ in view ‘renderView1‘
vLUTColorBar = GetScalarBar(vLUT, renderView1)

# Properties modified on vLUTColorBar
vLUTColorBar.AutoOrient = 0
vLUTColorBar.Orientation = ‘Horizontal‘

**********

- renderView1 is name of view

- vLUT = GetColorTransferFunction(‘v‘), a variable for ‘v‘ velocity

 技术分享图片

change legend layout from 'vertical' to 'horizontal' in Paraview

标签:variable   技术分享   png   prope   tco   legend   col   nta   odi   

原文地址:https://www.cnblogs.com/code-saturne/p/10287048.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!