On Nov 17, 2007 7:59 AM, John Hunter <jdh2358@...> wrote:
> On Nov 17, 2007 12:26 AM, C M <cmpython@...> wrote:
> > The font problem turned out to be simply that I didn't realize that the
> > latest version of matplotlib comes with the matplotlibrc file commented
> > (I had not tried to change fonts before so hadn't noticed I couldn't).
> > Uncommented the fonts section solved it. Thanks for the tip.
> > Is there a way to disable color cycling?
> Well, you could explicitly provide the color to "plot" but this is
> masking a deeper problem. You do not want to e callng "plot" on every
> window redraw event. If you post a code snippet, we might be able to
Yeah, I believe that was what was happening. In trying to learn to embed
in wx I started from an example ("Matplotlib figure in a wx panel") found
and for some reason in that example the figure is calls a draw() method only
on an idle following each resize, which ultimately calls "plot". I'm not
sure why it
is done like that. I instead now put the draw() method just under the
so it is drawn once initially and resized accordingly, and it works better
No color changing, and in fact there had been a problem with the font
distorted after a few resizes (no idea what that was about) that is now gone
Thanks very much on both issues.