Re: Odd behavior of plot



On Dec 6, 5:07 pm, "David Doria" <daviddo...@xxxxxxxxx> wrote:
I have a function that plots some lines.

If I put a break point in the function, call it, it stops at the breakpoint, and then continue, the plot looks as expected at the end.

If I just run the function without the breakpoint the plot is the default axes ([0,1] [0,1]) and is blank!

Seems awfully strange to me! I can post the function if necessary, but I'm not sure it will help.

Dave

------------------------------
Dave:
I agree it sound weird. What happens if you liberally sprinkle
drawnow's around the code? Also, can you force the axes ranges by
calling xlim and ylim? I know sometimes MATLAB doesn't draw controls
if some property is invalid (such as the value property of a scrollbar
being outside of the min,max range). But I don't know why such a
property would have a different value depending on whether you stopped
at a breakpoint or not, unless it was some kind of weird timing thing
like you were communicating with some instrument through a cable and
port.
Regards,
ImageAnalyst

.



Relevant Pages

  • Re: Live multi-user debugging? Help!
    ... VS stops at a breakpoint. ... So I examine the personID. ... wouldn't each Client be accessing their /own/ Session data? ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Random phantom breakpoints and random bogus compile errors
    ... On random computers, it stops on random lines as if at a breakpoint, ... even did it on Excel VBA's built-in Right function, ... I'm guessing workbook corruption, but is there anything else I should ...
    (microsoft.public.excel.programming)
  • Re: switching between modes
    ... When the VBE pops up, try putting a break point on the line ... When it reopens the breakpoint is not visible but still seems to ... Now my macro stops midway, ...
    (microsoft.public.excel.programming)
  • RE: How to set breakpoints in the generated code for VS Beta2 TableAda
    ... > stops at them. ... If I set a breakpoint in my custom TableAdapter's constructor function, ... So which line of the generated code of your TableAdapter do you set the ... breakpoint at, would you please illustrate the detailed repro steps for us, ...
    (microsoft.public.vsnet.debugging)
  • Re: Errors!!!!
    ... Set a breakpoint, either by using the DBSTOP function: ... or using the Debug menu in the Editor: ... that the vectors you're trying to plot are the same length. ...
    (comp.soft-sys.matlab)