On Nov 17, 2007 7:59 AM, John Hunter <[EMAIL PROTECTED]> wrote:

> On Nov 17, 2007 12:26 AM, C M <[EMAIL PROTECTED]> 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
> out
> > (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
> help.
>
> JDH
>

Yeah, I believe that was what was happening.  In trying to learn to embed
plots
in wx I started from an example ("Matplotlib figure in a wx panel") found
here <http://www.scipy.org/Matplotlib_figure_in_a_wx_panel>,
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
__init__,
so it is drawn once initially and resized accordingly, and it works better
now.
No color changing, and in fact there had been a problem with the font
getting
distorted after a few resizes (no idea what that was about) that is now gone
too.
Very good.

Thanks very much on both issues.
CM
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to