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

 

猜你喜欢

转载自www.cnblogs.com/code-saturne/p/10287048.html