Re: [Matplotlib-users] Problem with loglog and ls='steps'
This problem is now resolved in SVN r6054. Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Trouble with scatter and legend
Hi all, I am wondering if I can use scatter in connection with legend (attached test for details). I am using the latest svn version. Any pointer would be appreciated. Cheers, Nils from scipy.optimize import * from numpy import array, sum, linspace from pylab import plot, scatter, show, savefig, xlabel, ylabel, legend y = array((31,14,2.9,2.0)) x = array((0,6,12,18)) def mycost(c): #y_model = c[0] + c[1]**x y_model = c[0]*(c[1]**x) error_vect = y - y_model return sum(error_vect**2) c_initial_guess = [10, 0.5] c_final = fmin(mycost, c_initial_guess) xr = linspace(0,18) #yr = c_final[0] + c_final[1] ** xr yr = c_final[0] *(c_final[1] ** xr) print "***" print c_final print "***" print xr print "***" print yr print "***" scatter(x,y)# Doesn't work wrt legend #plot(x,y,'ro') # Works for me wrt legend plot(xr,yr) legend(('Messdaten','Ausgleichskurve'),shadow=True) show() - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Trouble with scatter and legend
On Thu, Aug 28, 2008 at 12:14 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > I am wondering if I can use scatter in connection with legend > (attached test for details). I am using the latest svn version. Your example works for me -- we recently added support for autolegending of scatters using a proxy rectangle of the same color as the first symbol in the scatter. This could be improved upon by using a proxy patch with the same shape as your first polygon in the collection, but there are some scaling issues that have to be worked out. Is it the fact that you get a Rectangle vs a Circle that you are posting about? Or are you not getting anything at all for your scatter in the legend? JDH - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Trouble with scatter and legend
On Thu, 28 Aug 2008 13:29:07 -0500 "John Hunter" <[EMAIL PROTECTED]> wrote: On Thu, Aug 28, 2008 at 12:14 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: Hi all, I am wondering if I can use scatter in connection with legend (attached test for details). I am using the latest svn version. Your example works for me -- we recently added support for autolegending of scatters using a proxy rectangle of the same color as the first symbol in the scatter. This could be improved upon by using a proxy patch with the same shape as your first polygon in the collection, but there are some scaling issues that have to be worked out. Is it the fact that you get a Rectangle vs a Circle that you are posting about? Or are you not getting anything at all for your scatter in the legend? JDH Please find attached the output (test.png). The order of the legend entries is wrong. Am I missing something ? Nils <>- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Trouble with scatter and legend
On Thu, Aug 28, 2008 at 1:34 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Please find attached the output (test.png). > The order of the legend entries is wrong. Am I missing > something ? OK, now I see your point. auto-legending doesn't respect the order of the plots across different artist types. I hadn't thought of this before. As a workaround, you can use the label kwarg: scatter(x,y,label='Messdaten') plot(xr,yr,label='Ausgleichskurve') legend(shadow=True) JDH - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] wxmpl incompatibility with matplotlib 0.98.x
Hi, I made some small changes to wxMpl to make it work with matplotlib 0.98, based on matplotlib's API_CHANGES. As I'm new to both matplotlib and wxMpl (and Python too), I don't know if it is working properly, but it doesn't print error messages anymore. The demos from wxMpl seemed to work OK. The modified file is attached, I hope it helps. Paulo Meira -- > On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <[EMAIL PROTECTED]> wrote: > > > I had emailed Ken and he said he intended to fix it. He didn't give me a > > time line though. > > > > Ryan > > > > > > On Wed, Aug 27, 2008 at 9:04 PM, Fernando Perez <[EMAIL PROTECTED]>wrote: > > > >> Howdy, > >> > >> On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <[EMAIL PROTECTED]> > >> wrote: > >> > I'm not aware of the problem (but I'm not a regular wxmpl user). > >> > > >> > From 0.91 to 0.98, a major refactoring was done to make it easier to > >> > add new kinds of projections. So PolarAxes is no longer a special case, > >> > it is just one of many possible non-Cartesian projections. > >> > Unfortunately to do this, the API had to change in a number of places. > >> > These are documented in the API_CHANGES file in the "TRANSFORMS > >> > REFACTORING" section. > >> > > >> > wxmpl needs to be updated based on those instructions in order to be > >> > compatible with mpl 0.98. Hopefully that process won't be too > >> > difficult, but it's hard to say without trying. basemap, a fairly large > >> > mpl toolkit, was able to handle the transition fairly smoothly. > >> > >> Are there any news on this front? Has wxmpl been updated, are there > >> plans to do so, or is it on hold for now? > >> > >> Just curious... > >> > >> Cheers, > >> > >> > >> f > >> > >> - > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > >> world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> ___ > >> Matplotlib-users mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > > wxmpl.py.gz Description: GNU Zip compressed data - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users