[Matplotlib-users] how do I specify the line join and cap style?

2010-12-12 Thread gary ruben
Is it possible to control the join and cap styles of lines and patches? Is there an example for this? I'm trying to add a scale marker to a plot, but lines have rounded ends by default, so I'm currently changing these manually in Inkscape to miter join and butt cap. Here is a minimal example, based

Re: [Matplotlib-users] Taylor diagram

2010-12-12 Thread mdekauwe
Hi, thanks to Juan for the Rpy package suggestion I came up with this, which at least produces the plot. I can't quite work out R specific bits at the moment (e.g. legend), but perhaps it might help someone else. #!/usr/bin/env python import sys from rpy2.robjects.packages import importr impor

Re: [Matplotlib-users] Taylor diagram

2010-12-12 Thread mdekauwe
Hi thanks for the link thats interesting though I would perhaps rather not learn a new set of commands just for one plot. Though it seems from my searching that this might be the only route! cheers, Martin Arthur M. Greene wrote: > > On 12/09/2010 05:42 PM, mdekauwe wrote: >> >> Hi, >> >> Has

[Matplotlib-users] using plot(single_object)

2010-12-12 Thread Jose Guzman
I was wondering if there is an easy way to combine two vectors (x and y) into a single object to be ploted with the plot() method in matplotlib. Untill now, I did something like: import matplotlib.pyplot as plt x = np.nplinspace(0,5,1000) y = np.ones_like(x) plt.plot(x,y) # need an object here

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-12 Thread Russell Owen
I've boiled it down to nearly nothing as a script attached to this bug report: it simply creates an Axis and then regularly shifts the x axis limits and calls canvas.draw() to display the change. (It also reports

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-12 Thread Friedrich Romstedt
2010/12/12 Russell Owen : > Simply creating a blank Axes and calling canvas.draw() leaks memory -- even > without displaying any data or shifting the x axes. Okay, as a workaround have you tried ax.clear()? So the example script provided by you can be boiled down further? I'm using ax.clear() i