Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread B Clowers
You'll have to excuse some of the comments in the code (it's in a constant state of revision), but this is a basic PyQt4/matplotlib widget that I use quite often and can be embedded using QtDesigner as well.  You'll obviously need PyQt4, Matplotlib, and Numpy to run it.  Of course mods can be m

Re: [Matplotlib-users] Manually limiting value ranges

2008-12-30 Thread B Clowers
Christian, The answer to your second question is a little more involved and I think there are a few posts regarding custom colormaps on the mailing list that may be of interest...I'd try searching through those.  I may not be the best person to answer that question.  Also you may be intereste

[Matplotlib-users] Updated Lasso Demo

2008-12-07 Thread B Clowers
When running the initial lasso demo I found that only one lasso event was allowed and other canvas interaction events (e.g. zooming) would not work properly after the lasso event.  As such I came up with my own solution to the problem by modifying the example source.  The primary addition was a

[Matplotlib-users] Rescale colors of imshow after zoom?

2008-11-18 Thread B Clowers
While I though this would be fairly easy, I've yet to find a decent solution.  I'm interested in using the RangeSelector or standard zoom feature along with an autoscaling function.  In the example below there are two gaussian profiles created in a matrix.  I would like to have the behavior in whi

[Matplotlib-users] Rescale colors of imshow after zoom?

2008-11-18 Thread B Clowers
While I though this would be fairly easy, I've yet to find a decent solution.  I'm interested in using the RangeSelector or standard zoom feature along with an autoscaling function.  In the example below there are two gaussian profiles created in a matrix.  I would like to have the behavior in whi

[Matplotlib-users] Rescale imshow after zoom?

2008-11-17 Thread B Clowers
Matplotlibbers, While I though this would be fairly easy, I've yet to find a decent solution.  I'm interested in using the RangeSelector or standard zoom feature along with an autoscaling function.  In the example below there are two gaussian profiles created in a matrix.  I would like to

[Matplotlib-users] Set Ellipse Linestyle

2008-11-16 Thread B Clowers
I've been trying to set the linestyle of an ellipse with no success.  I keep getting an attribute error whether I try setting the property via accessing the ellipse instance directly or through the artist.  Any ideas? --if you uncomment the line containing the linestyle you should see the error

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread B Clowers
Josef, I too have been interested in such a feature for matplotlib and have made some (albeit lame) stabs at finding a solution.  I started a project on google code that has some very limited capacity to save line plots and the necessary data arrays from matplotlib into an hdf5 file for later p

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-06 Thread B Clowers
n Thu, Aug 7, 2008 at 12:39 AM, Ewald Zietsman <[EMAIL PROTECTED]> wrote: Yes! Thank you very much. I figured it out just before your email came in :-) I'm much happier now. Thank you again for teaching me this. Cheers Ewald On Thu, Aug 7, 2008 at 12:31 AM, B Clowers <[EMAIL PR

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-06 Thread B Clowers
is possible. I'm not really a programmer, but I like to tinker in order to learn as much as I can so that I can create programs to solve astrophysical  problems/analyse data more efficiently (less time/less code). Cheers Ewald   On Wed, Aug 6, 2008 at 12:46 AM, B Clowers <[EMAIL P

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-05 Thread B Clowers
Ewald, It is very much a work in progress (and poorly named) but you can check out a project of mine: http://code.google.com/p/subplot/ I created a custom matplotlib widget that you can promote from a regular widget in Designer.  I hope it helps, let me know if you have any questions.  The ui

[Matplotlib-users] Adding Error Bars to Line2D Instance

2008-06-14 Thread B Clowers
I have written a small application using PyQt4 and matplotlib.  Currently, I use the axes.add_line(Line2D Instance) to interact with the plot canvas.  I am interested in allowing the user to add or remove error bars to the plot, but am unable to find a command to do so (e.g. set_yerr(self, nump