在mathematica中调整Manipulate对象中的面板位置
以 Sjoerd 解决方案为基础,为操作对象添加对齐方式 :
考虑以下事项:
Manipulate[
Panel[Style[Row1, Bold, 20],
ImageSize -> 150, Alignment -> Center]
Panel[Style[Row2, Bold, 20],
ImageSize -> 150, Alignment -> Center],
{{Row1, {1}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left},
{{Row2, {2}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left}]
有没有办法让面板位于顶部彼此与相应的 SetterBar 对齐?
Building up on Sjoerd solution to add alignment to a manipulate object :
Consider the following :
Manipulate[
Panel[Style[Row1, Bold, 20],
ImageSize -> 150, Alignment -> Center]
Panel[Style[Row2, Bold, 20],
ImageSize -> 150, Alignment -> Center],
{{Row1, {1}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left},
{{Row2, {2}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left}]
Is there a way to have the panel on top of each other aligned with the corresponding SetterBar ?