Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: How to add a Locator (Tooltip) to RootLocusPlot?
Replies: 3   Last Post: Nov 11, 2012 1:28 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Eduardo Mendes

Posts: 6
Registered: 11/4/12
Re: How to add a Locator (Tooltip) to RootLocusPlot?
Posted: Nov 11, 2012 1:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello

Many thanks.

It would be a good opportunity for me to learn a bit more of Mathematica. Many thanks again.

Regards

Ed

On Nov 10, 2012, at 5:02 PM, Bob Hanlon <hanlonr357@gmail.com> wrote:

> rlPlt = RootLocusPlot[
> k (s^2 + 2 s + 4)/
> (s (s + 4) (s + 6) (s^2 + 14/10 s + 1)),
> {k, 0, 150}];
>
> roots[s_, loc_] = Solve[
> loc (s^2 + 2 s + 4)/
> (s (s + 4) (s + 6) (s^2 + 14/10 s + 1)) == -1,
> s];
>
> Manipulate[
> Show[
> rlPlt,
> Graphics[{Gray, AbsolutePointSize[8],
> Tooltip[Point[#],
> "k==" <> ToString[loc]] & /@
> ({Re[s], Im[s]} /.
> roots[s, loc])}]],
> {{loc, 50, "Gain (k)"}, .5, 150, .5,
> Appearance -> "Labeled"}]
>
>
> Bob Hanlon
>
>
> On Sat, Nov 10, 2012 at 2:09 AM, Eduardo Mendes <emammendes@hotmail.com> wrote:

>> Hello
>>
>> I wonder whether someone out there would know how to add a Locator or
>> Tooltip or something else that allows me to see the values of the
>> parameter k (See command below) when the mouse passes over the resulting
>> curves? Unfortunately I have no idea on how to do it.
>>
>>
>> RootLocusPlot[k (s^2+2 s+4)/(s(s+4)(s+6)(s^2+1.4s+1)),{k,0,150}]
>>
>> Many thanks
>>
>> Ed
>>
>>
>>

>





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.