Adrian said:
Thank you for your considerations. As to the annoying problem I was facing,
namely that my graph disappeared as soon as plotting had completed: ... it
was curable by doing a " " text print to a label on the same form in between
plots to intervals. Might you have an explanation for that?
Not off the top of my head, no. I'm not even entirely sure what you
mean by "doing a " " text print to a label". Do you mean simply
assigning a string containing a single space to a Label instance's Text
property? Or something else?
I would say that the other replies seem likely to be on the right track.
That is, you appear to have some sort of conflicting drawing going on.
But what that might, I can't say.
As is always the case, you can get the best assistance by creating a
concise-but-complete example of code that reliably reproduces the problem.
You can do that either top-down (start with the code you have, remove
all non-essential items) or bottom-up (start with nothing, create a new
program based on your original, adding in identical features until the
new program has the same behavior as the original, but without anything
extraneous). Either way, in this case I think it's very likely that
you'll find the act of reducing the code to the bare minimum will reveal
what it is about your code that is causing the problem.
But, if it doesn't, at the end of the process you'll have a short,
simple program you can post here that illustrates the problem and which
other people can look at. Without that, any speculation is unlikely to
produce useful results.
Pete