风格动态值
我可以将样式应用于下面的“Labeled”输出吗?
Manipulate[\[Lambda],
Control@{{\[Lambda], 401,
Style[" \[Lambda]", Black, Bold, 24]},
Range[401, 570, 1],
ControlType -> Slider,
ControlPlacement -> Bottom,
Appearance -> "Labeled",
ImageSize -> 200}]
它位于滑块的右侧:
Can I apply Style to the output of "Labeled" in the below ?
Manipulate[\[Lambda],
Control@{{\[Lambda], 401,
Style[" \[Lambda]", Black, Bold, 24]},
Range[401, 570, 1],
ControlType -> Slider,
ControlPlacement -> Bottom,
Appearance -> "Labeled",
ImageSize -> 200}]
That is on the right part of the Slider :
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要选项
BaseStyle
(出现在Options[Slider]
中)。例如当查看此内容时,我注意到您还可以使用 几乎没有记录
ControlType -> LabeledSlider
,只是为了一些不同的东西。You want the option
BaseStyle
(which appears inOptions[Slider]
). E.g.When looking at this I noticed that you can also use the almost undocumented
ControlType -> LabeledSlider
, just for something different.它似乎至少部分受到
LabelStyle
和BaseStyle
的影响。 (由于某种原因,我在更改字体时遇到了麻烦,但大小、粗细、颜色似乎工作正常。)It seems to be at least partially affected by
LabelStyle
andBaseStyle
. (I'm having trouble changing the font, for some reason, but size, weight, color seem to work fine.)