[Matplotlib-users] bug, or am I doing something wrong?

2011-07-01 Thread Brian Blais
cmap=cm.hot, aspect='auto', interpolation='nearest', ) draw() -- Brian Blais bbl...@bryant.edu http://web.bryant.edu/~bblais http://bblais.blogspot.com/ -- All of the data gener

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-21 Thread Brian Blais
On Sep 20, 2010, at 9:58 PM, Ryan May wrote: > On Mon, Sep 20, 2010 at 8:14 PM, Brian Blais wrote: >> sure, but that take more effort, and I don't really care about a slow down, >> because most of my time is spent in the busy loop. > It might be more effort, but what

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Brian Blais
On Sep 20, 2010, at 7:43 PM, Benjamin Root wrote: > On Mon, Sep 20, 2010 at 5:12 PM, Brian Blais wrote: > I am trying to do some simple calculations in a loop, and draw a plot > periodically within the loop, and the drawing is not updating. I'm using the > Enthought Python D

[Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Brian Blais
e set in my matplotlibrc - backend : TkAgg, but it doesn't work with WxAgg either. Am I missing something? Is this an idiom that needs to be avoided/replaced? Any help would be great! thanks, Brian Blais -- Brian Blais bbl...@bryan

Re: [Matplotlib-users] Making a data-driven colormap

2010-03-27 Thread Brian Blais
=[(0.0, 0.5, 0.5), (ratio/2, 1, 1), (ratio, 1.0, 1.0)] cdict['red'].extend(red) cdict['green'].extend(green) cdict['blue'].extend(blue) my_cmap = matplotlib.colors.LinearSegmentedColormap ('my_colormap'

Re: [Matplotlib-users] why doesn't this animation work?

2009-11-14 Thread Brian Blais
plt.show() for i in range(100): h.set_ydata(numpy.random.rand(3)*2+1) plt.draw() -- Brian Blais bbl...@bryant.edu http://web.bryant.edu/~bblais -- Let Crystal Reports handle the reporting - Free Crystal Reports 200

[Matplotlib-users] why doesn't this animation work?

2009-11-14 Thread Brian Blais
did a plot, then updated the data on the plot object, and called draw that it would actually draw it (like it does in matlab). right now it just gives me a blank figure, with a busy mouse icon, and then shows the last plot done. thanks, Brian Blais import numpy i

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-04 Thread Brian Blais
scripted to? Hadn't seen draw() before either, though I know show() .. these sort of things I am curious to learn about before I see them in code for the first time. actually, that's how I learned most of it...by seeing it in code at some point. :) hope this helps,

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Brian Blais
er plot (a sine wave).  For some reason, when you try to subplot with 2 rows and 2 columns (and probably more) the line doesn't appear on the plot.  what it should look like, and does with .91.2, is attached. bb-- Brian Blais[EMAIL PROTECTED]http

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Brian Blais
On Apr 23, 2008, at Apr 23:6:56 PM, Brian Blais wrote: On Apr 23, 2008, at Apr 23:4:33 PM, Brian Blais wrote: I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Brian Blais
On Apr 23, 2008, at Apr 23:4:33 PM, Brian Blais wrote: I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic plots with subplots. If I change the subplot line in the

[Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Brian Blais
Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100

[Matplotlib-users] half a box?

2008-02-08 Thread Brian Blais
Hello, Is there an easy way to turn the box of an axis off, but only the top and right lines, keeping the bottom and left lines of the axis visible? I'd like to make a plot that has an x and y axis, but not a complete box around the data. thanks, Brian Blais --

Re: [Matplotlib-users] pdf saving on OS X

2007-07-26 Thread Brian Blais
On Jul 26, 2007, at Jul 26:4:49 PM, Jouni K. Seppänen wrote: Brian Blais <[EMAIL PROTECTED]> writes: and it works with pylab. But, if I use matplotlib.Figure directly in an app, and then call: myfig.savefig('blah.pdf') it saves it as 'blah.pdf.jpg', a jpeg f

[Matplotlib-users] pdf saving on OS X

2007-07-26 Thread Brian Blais
: myfig.savefig('blah.pdf') it saves it as 'blah.pdf.jpg', a jpeg file. any ideas? I can try to throw together some example, in case someone needs to repeat it. thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://we

[Matplotlib-users] py2app and pytz

2007-05-31 Thread Brian Blais
atest pytz installed, and there is no pytz.zoneinfo module! There is a directory under pytz called zoneinfo, but there is no __init__.py. Is there something I am missing? Have others managed to get py2app work with an app that uses matplotlib? thanks, B

[Matplotlib-users] setting the default line style order

2007-02-22 Thread Brian Blais
Hello, I poked around a bit, and couldn't find the answer to this. Is there a way to specify the default order of line colors and styles, for plot commands given in sequence, like: plot(x1,y1) plot(x2,y2) plot(x3,y3) thanks, Brian

[Matplotlib-users] error in simple plot command

2006-12-14 Thread Brian Blais
Out[11]:'0.87.2' running linux, python 2.4. thanks, Brian Blais -- - [EMAIL PROTECTED] http://web.bryant.edu/~bblais -

[Matplotlib-users] pylab crashes simple wxPython script

2006-06-08 Thread Brian Blais
, Brian Blais #!/usr/bin/env python from wxPython.wx import * import pylab class MyFrame(wxFrame): def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title) self.CenterOnScreen() menuBar = wxMenuBar() # 1st menu from