Problem with plot GUI

  • Follow


Hi.

I'm making a simple pendulum simulation (simple harmonic motion). It works perfectly.
I've done a GUI where I can select a method of integration trough a radio button, it works fine.
The graph that shows the animation is called axes1, and all the plot and axis in my code have handles.axes1 to select the correct graph axes! However, If I add a second axes the animation doesn't run correctly, it just shows a part of the graph, the axis aren't correct, etc...

I can't find out what I'm doing wrong, but I think it only happens if I use the radio buttons.
Help would be appreciated!
0
Reply y2keyy (1) 6/2/2012 11:41:22 PM

On 6/2/2012 6:41 PM, Daniel wrote:
> Hi.
>
> I'm making a simple pendulum simulation (simple harmonic motion). It works perfectly.
> I've done a GUI where I can select a method of integration trough a radio button,
>  it works fine.
> The graph that shows the animation is called axes1, and all the plot and axis
>in my code have handles.axes1 to select the correct graph axes! However, If I add a
>second axes the animation doesn't run correctly, it just shows a
>part of the graph, the axis aren't correct, etc...
>
> I can't find out what I'm doing wrong, but I think it only happens if I
>  use the radio buttons.
> Help would be appreciated!

Since no one can see what you have there (no xray vision like
superman has) all what one can do is trust your analysis and agree
with it.

I can only suggest not to use the radio buttons becuase that is what
causing you the problems.

Another option is to use the debugger and see what the problem is.

programming is not just writing code, it also involves debugging
the code you wrote as well. (this is the annoying part in programming
that no one likes to do)

--Nasser

0
Reply Nasser 6/3/2012 12:08:38 AM


1 Replies
34 Views

(page loaded in 0.086 seconds)

Similiar Articles:













7/5/2012 10:08:06 PM


Reply: