[Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-11 Thread Justin R
operating system Windows 7 matplotlib version : 1.1.0 obtained from sourceforge the class seems to generate the same Wt matrix for every input. The every element of the weight matrix is either +sqrt(1/2) or -sqrt(1/2). dat1 = 4*np.random.randn(200,1) + 2 dat2 = dat1*.25 + 1*np.random.randn(200,1)

Re: [Matplotlib-users] What is your matplotlib workflow?

2012-06-11 Thread Fernando Perez
On Mon, Jun 11, 2012 at 2:05 PM, wiswit wrote: > While in emacs or vim, you cannot simple select lines and execute them, so > you have to frequently copy and code and use %cpaste or %paste to paste the > code. In emacs you can activate ipython in your emacs.el file and then you can send arbitrary

Re: [Matplotlib-users] What is your matplotlib workflow?

2012-06-11 Thread wiswit
I think this is worth discussing. But I have only 1.3 years experience with matplotlib and python. Basically, I do the same as you. But I think there are few tips I would like to follow: 1. I would agree to make one major theme plot one script file. Avoid make very long scripts with many plots. I

Re: [Matplotlib-users] y-axis misbehavior

2012-06-11 Thread Jerzy Karczmarczuk
Le 11/06/2012 22:30, magurling a écrit : > I just wanted the axis line to end at the last y tick > I've never used an explicit axis. What will axis('tight') actually do? In your case plt.axis('tight') will constrain the axes to your plotted object, no space above, below, or at the right. The "go

Re: [Matplotlib-users] y-axis misbehavior

2012-06-11 Thread magurling
Jerzy Karczmarczuk-2 wrote: > > What do you really want? > I just wanted the axis line to end at the last y tick > I would suggest using an explicit axis, e.g. > > plt.axis([0,0.10,-25,80]) > > (or between -30 and 100, or 'tight', etc.) > I've never used an explicit axis. What will axis

Re: [Matplotlib-users] y-axis misbehavior

2012-06-11 Thread magurling
Tony Yu-3 wrote: > > `yticks()` just sets the ticks, which shows up correctly in both plots. It > sounds like what you want to specify is the axis limit. You can add the > following (e.g. after the call to `yticks`): > >plt.ylim(ymin=-30) > Thanks Tony for clearing up my misunderstanding

Re: [Matplotlib-users] path contains_point IndexError: Unexpected SeqBase length

2012-06-11 Thread Benjamin Root
On Mon, Jun 11, 2012 at 12:23 PM, Gustavo Goretkin < gustavo.goret...@gmail.com> wrote: > The problem is that the function in _path.cpp expects a path radius > argument, r. > > Here is the signature: > point_in_path(double x, double y, double r, PathIterator& path, > const agg::trans

Re: [Matplotlib-users] path contains_point IndexError: Unexpected SeqBase length

2012-06-11 Thread Phil Elson
I can't reproduce this on version >= 1.1.0. What version of matplotlib are you using? On 11 June 2012 17:23, Gustavo Goretkin wrote: > The problem is that the function in _path.cpp expects a path radius > argument, r. > > Here is the signature: > point_in_path(double x, double y, double r, PathI

Re: [Matplotlib-users] path contains_point IndexError: Unexpected SeqBase length

2012-06-11 Thread Gustavo Goretkin
The problem is that the function in _path.cpp expects a path radius argument, r. Here is the signature: point_in_path(double x, double y, double r, PathIterator& path, const agg::trans_affine& trans) but the invocation in python looks like this: point_in_path(point[0], point[1], se

[Matplotlib-users] Plot points in a 3D Scatter Plot

2012-06-11 Thread surfcast23
to matplotlib-use. Hi, I have a data set that is composed of x,y,z coordinates of the center of cells and counts of objects in each contained in cell. I am using the following code to do a scatter plot of the counts per cell. ax = fig.add_subplot(111, projection='3d') ax.scatter(Xa, Ya, Za, z

[Matplotlib-users] (no subject)

2012-06-11 Thread Arek Kedzior
http://reyesmagospamplona.com/tuluqmzrpc/780688.html-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discus

Re: [Matplotlib-users] pdf/eps export; dotted line plot shows random markers on the line

2012-06-11 Thread Benjamin Jonen
Hey guys, thanks for the quick replies. You are right, the problem appears to be related to my pdf viewer (okular). More concretely, pdf viewers based on the poppler library (e.g. xpdf, qpdfview) show the same problem in ubuntu 12.04. Everything works fine with evince or acroread. Thanks, Benjami