如何控制 Mathematica Manipulate 语句中定位器的外观?
如果我有 Manipulate 语句,例如:
Manipulate[
Graphics[Line[{{0, 0}, pt}], PlotRange -> 2], {{pt, {1, 1}},
Locator}]
如何以最简单的方式更改 Locator 对象的外观可能的?我必须诉诸动态语句吗?具体来说,我想让定位器不可见。
If I have a Manipulate statement, such as:
Manipulate[
Graphics[Line[{{0, 0}, pt}], PlotRange -> 2], {{pt, {1, 1}},
Locator}]
How do I change the appearance of the Locator object in the easiest way possible? Do I have to resort to Dynamic statements? Specifically, I would have liked to make the Locator invisible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除了WReach 的回答:在正常的
Locator
调用中,其外观可以作为参数之一给出。当在Manipulate
中使用时,这是不可能的。但是,Appearance
可用于绘制其他定位符号。我认为这没有记录。去年我尝试找出如何做到这一点,但找不到方法。我在matheca 新闻组也可以。
In addition to WReach's answer: In a normal
Locator
call its appearance can be given as one of the arguments. When used in aManipulate
this is not possible. However,Appearance
can be used to draw other locator symbols.I don't think this is documented. Last year I tried finding out how to do this, but couldn't find a way. Got no response on my question on the mathematica newsgroup either.
尝试添加
Appearance ->定位器控件无
:Try adding
Appearance -> None
to the Locator control: