plotoption fullgrid

5 views
Skip to first unread message

Ramon

unread,
Apr 2, 2008, 11:26:50 AM4/2/08
to sysq...@googlegroups.com
Hi,

I'm interested in drawing a root locus which contains different types of locus. Looking in the Sysquake manual it is said
that I can turn on this capabilities by using the "plotoption fullgrid". 

When I use this command inside a draw function "statically" it works fine to me. I mean by that
the plotoption when  I place plotoption like this ..
....
        plotoption fullgrid
        sgrid;
....

Unfortunatelly when I try to turn on/off this property by using a variable :
if dibu_grid
        plotoption fullgrid
        sgrid;
else
        sgrid;
end
it does not work. If dibu_grid is initially placed to true the grid is always shown (independently of the value
of    dibu_grid), and if  dibu_grid is initially placed to false the grid is never shown.
Is it possible to turn on/off the grid dynamically ?


Best wishes,
Ramon

Yves Piguet

unread,
Apr 3, 2008, 10:40:36 AM4/3/08
to Sysquake
>I'm interested in drawing a root locus which contains different types of locus. Looking in the Sysquake >manual it is said
>that I can turn on this capabilities by using the "plotoption fullgrid".

"sgrid", "zgrid" and "plotoption fullgrid" set the grid behind the
root locus,
which is always drawn by rlocus. "sgrid" is for Laplace transform and
"zgrid"
for z transform. The state of the grid can be changed by the user in
the
Figure>Grids submenu. The default is Basic, for the stability region
and the
Re/Im axis. plotoption's purpose is to change the default setting; the
user
remains free to change it.

The problem is that plotoption has an effect only the first time it's
executed,
so that changes by the user are still possible. That's the same with
scale,
which can be overriden if the user zooms or shifts the figure.

I don't see any workaround. If you just want to change settings with a
menu, you can tell your users to utilize the Figure>Grids submenu.
We'll
find a way to do it in the next release.

Best regards,

Yves

Ramon

unread,
Apr 3, 2008, 11:57:13 AM4/3/08
to sysq...@googlegroups.com
Great !!
For me it is a nice solution (and easier for me ;-))

Best wishes
Ramon

Reply all
Reply to author
Forward
0 new messages