Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread Ondrej Certik
> Ok, I made a progress, it seems it's working. Script and picture Forgot to attach the script. Ondrej from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ WeakForm, Solution, ScalarView, LinSystem, DummySolver, Linearizer from hermes2d.forms import set_forms from hermes2d.ex

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread Ondrej Certik
On Fri, May 22, 2009 at 7:06 AM, John Hunter wrote: > On Thu, May 21, 2009 at 9:31 PM, Ondrej Certik wrote: >> Hi, >> >> I have a set of vertices in 2D as triples (x, y, val), where the x, y >> are 2D coordinates and "val" is the scalar value of the finite element >> solution, here is an example:

Re: [Matplotlib-users] ANN: matplotlib-0.98.5.3

2009-05-22 Thread Adam Mercer
On Fri, May 22, 2009 at 09:20, John Hunter wrote: > Is there any reason you need to check the website, vs monitoring the > announce list, or registering to be alerted from the sf site (there is > a way to register to be alerted and I click the "alert all users > monitoring this package" with each

Re: [Matplotlib-users] How to make some Spaces befor my x[0] value

2009-05-22 Thread Markus Feldmann
Markus Feldmann schrieb: > > to make some Plots, but my first Point lies on the beginning > of my Plot. How to make some spaces ? Ok i solved this by making, self.subplot1.set_xlim(d[0]-abs(d[-1]-d[0])/100,d[-1]+abs(d[-1]-d[0])/100) self.subplot2.set_xlim(d[0]-abs(d[-1]-d[0])/100,d[-1]+abs(

Re: [Matplotlib-users] ANN: matplotlib-0.98.5.3

2009-05-22 Thread Andrew Straw
Adam Mercer wrote: > On Thu, May 21, 2009 at 18:06, Andrew Straw wrote: > >> If there's a port of uscan for MacPorts ( >> http://manpages.debian.net/cgi-bin/man.cgi?query=uscan ) you could >> simply use the debian watch file. It's contents are: >> >> version=3 >> http://sf.net/matplotlib/matplotl

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread Eric Carlson
Here is an example using matplotlib.delaunay, which automatically returns the edges and triangules: import matplotlib.delaunay as delaunay import matplotlib.pyplot as pp #generate points npts=41 xpt=sp.random.random_sample(npts) ypt=sp.random.random_sample(npts) #create triangulation circumcen

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread Markus Feldmann
John Hunter schrieb: > On Fri, May 22, 2009 at 8:42 AM, Markus Feldmann > wrote: >> I tried, >> self.bars[0].set_x(x) >> self.bars[0].set_y[y] > > try self.bars[0].set_y(y) > Thanks this corrects was my error. I think you have eagle eyes. :-) Regards markus

[Matplotlib-users] How to make some Spaces befor my x[0] value

2009-05-22 Thread Markus Feldmann
Hi All, i am using, def draw(self,min,max): if not hasattr(self, 'subplot1'): self.subplot1 = self.figure.add_subplot(211) self.subplot1.grid(True) self.subplot2 = self.figure.add_subplot(212) self.subplot2.grid(True) a,b,c

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread John Hunter
On Fri, May 22, 2009 at 8:42 AM, Markus Feldmann wrote: > I tried, > self.bars[0].set_x(x) > self.bars[0].set_y[y] try self.bars[0].set_y(y) JDH -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is

Re: [Matplotlib-users] ANN: matplotlib-0.98.5.3

2009-05-22 Thread John Hunter
On Fri, May 22, 2009 at 9:08 AM, Adam Mercer wrote: > On Thu, May 21, 2009 at 18:06, Andrew Straw wrote: > >> If there's a port of uscan for MacPorts ( >> http://manpages.debian.net/cgi-bin/man.cgi?query=uscan ) you could >> simply use the debian watch file. It's contents are: >> >> version=3 >>

Re: [Matplotlib-users] ANN: matplotlib-0.98.5.3

2009-05-22 Thread Adam Mercer
On Thu, May 21, 2009 at 18:06, Andrew Straw wrote: > If there's a port of uscan for MacPorts ( > http://manpages.debian.net/cgi-bin/man.cgi?query=uscan ) you could > simply use the debian watch file. It's contents are: > > version=3 > http://sf.net/matplotlib/matplotlib-([0-9]+(?:\.[0-9]+)*)\.tar

Re: [Matplotlib-users] repeated GUI generation generates crash

2009-05-22 Thread Todd Pataky
Chris, thank you very much for your reply. I encountered a related error, and was hoping you could help me understand this one too... Using ipython -pylab I run the script below to generate a GUI, but when the GUI finishes running (after 3 button clicks), ipython crashes with the following er

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread John Hunter
On Thu, May 21, 2009 at 9:31 PM, Ondrej Certik wrote: > Hi, > > I have a set of vertices in 2D as triples (x, y, val), where the x, y > are 2D coordinates and "val" is the scalar value of the finite element > solution, here is an example: > > In [54]: l.get_vertices() > Out[54]: > array([[ 0.

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread John Hunter
On Fri, May 22, 2009 at 8:09 AM, Markus Feldmann wrote: > i want to fill new xdata and new ydata to my bar() Elements. > > in the docu there is something written of, > set_x() > set_y() > > Is this of interest for me ? Yes, there is also a set_width and set_height method. between the x, y, width

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread Markus Feldmann
Markus Feldmann schrieb: > in the docu there is something written of, > set_x() > set_y() > > Is this of interest for me ? > > My xdata and ydata are 1D Vectors like, > x = [1, 2, 4, 2, ...] > y = [1, 0, 0, 1, ...] > I tried, self.bars[0].set_x(x) self.bars[0].set_y[y] where self.bars is a List

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread Markus Feldmann
John Hunter schrieb: > > > http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Rectangle > > Those docs will show you all the properties (alpha, antialiased, > ...facecolor, etc...) Each property has a link to the setter method. > So I advise something like > > # the n

Re: [Matplotlib-users] setp for bar() Elements

2009-05-22 Thread John Hunter
On Fri, May 22, 2009 at 5:17 AM, Markus Feldmann wrote: > Hi All, > > i am in need of set the properties of my bar() Element, > by using a slider. > > For plots this looks like this: > self.plot = self.subplot1.plot(x,y) > setp(self.plot, xdata=new_x, ydata=new_y) > > How to do this with this, > s

[Matplotlib-users] setp for bar() Elements

2009-05-22 Thread Markus Feldmann
Hi All, i am in need of set the properties of my bar() Element, by using a slider. For plots this looks like this: self.plot = self.subplot1.plot(x,y) setp(self.plot, xdata=new_x, ydata=new_y) How to do this with this, self.bar = self.subplot2.bar(x,y) ??? Any Hints ? Regards Markus ---

Re: [Matplotlib-users] EMF export doesn't work

2009-05-22 Thread Sebastian Busch
Thomas Pfaff wrote: > ... ImageMagick just puts a bitmap representation of the > image into the EMF-file ... I want ... vectors, though. hey thomas! i see. perhaps xfig could then help you, it has an export to emf feature (and can import ps files, see for example http://www.thamnos.de/computer-co