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

 

**********

# 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

 

posted @ 2019-01-18 12:22  kaiming_ai  阅读(299)  评论(0编辑  收藏  举报