Hi, I'm trying to make myself a set of widgets for the first time.
I've gotten to the point that I can draw rectangles and lines and make
them do the right things when re-drawing figures, zooming, etc., but
I'm still a little lost on some points, and I haven't found any really
good documentatio
Ryan May wrote:
> They're the same plotting interface, just different names. Pylab pulls
> in a few extra functions that aren't specific to plotting, but aid in
> providing matlab-alike functionality. To use matplotlib.pyplot instead
> of pylab for any of the examples, just replace lines of:
>
They're the same plotting interface, just different names. Pylab pulls in a
few extra functions that aren't specific to plotting, but aid in providing
matlab-alike functionality. To use matplotlib.pyplot instead of pylab for
any of the examples, just replace lines of:
import pylab
with:
Eric et al,
Very nice. However, I am running the latest Enthought EPD on Mac OS X
10.4.11 and I get this:
In [6]: clabel(cs,inline=1,fontsize=10,manual=True)
Select label locations manually using first mouse button.
End manual selection with second mouse button.
/Library/Frameworks/Python.frame
This might be something wrong with the way fink has built GTK, but the
following warnings are showing up for me:
/opt/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py:
72: GtkWarning: Unable to find default local directory monitor type
gtk.main()
/opt/lib/python2.5/site-package
On Sun, Oct 26, 2008 at 11:51:48AM -0400, Charlie Moad wrote:
> The matplotlib.pyplot is favored over the pylab module now.
Thanks! I find your comment very interesting. As I have negligible experience
with Matlab, I'd love to use matplotlib.pyplot.
The problem is all the docs use pylab right?
Pylab is just a name for a module in matplotlib that is supposed to mimic
matlab. I would say its intent it to ease the transition for matlab users.
It wouldn't really make sense to refer to matplotlib as pylab. The
matplotlib.pyplot is favored over the pylab module now.
- Charlie
On Sun, Oct 2
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] ha scritto:
> So is matplotlib the name of the low level plotting engine?
>
> And, pylab is the user-friendly wrapper?
>
> Would it be ok to call the whole system "Pylab" instead of Matplotlib then?
Personally I'd say "no" exactly
I'm answering to myself on the mailing list just in case it might help some
in the future.
As, someone pointed out the error is in the assignment operator:
I wrote in the code:
sum1 =+ (i-mx)*(j-my)
which does not add the values but puts them.
Instead I should have wrote
sum1 += (i-mx)