Re: [Matplotlib-users] Vector magnitude?

2007-09-06 Thread Norbert Nemec
Robert Dailey wrote:
> 1) Is there any way to represent vectors? Currently I'm using 'array'
> for vectors.
There is no explicit 'vector' representation. You may view vectors as
either column or row vectors and represent them as 1xN or Nx1 matrices.
In that case, the linear algebra like matrix products etc. can be used
rather elegantly. Otherwise, you just use 1D-arrays and take care of the
vector semantics yourself.

> 2) Is there a way to calculate the magnitude (length) of a vector?
numpy.linalg.norm(X)

(works for vectors as well as matrices)


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] anyone using gd and paint backends?

2007-09-06 Thread Eric Firing
If you are using the gd or paint backends, please speak up *now*, and 
tell me what the advantage is over the myriad other ways of generating 
png files with mpl.  I would like to delete these backends *soon* unless 
there is some real advantage in keeping them.

Thanks.

Eric

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users