Re: [Matplotlib-users] to much points

2009-07-03 Thread Markus Feldmann
Michael Droettboom schrieb: > This should now be fixed on the maintenance branch and trunk. A Numpy > array allocation was not being NULL-checked in _path.cpp:affine_transform. > > I know a MemoryError doesn't help the user much more than a segfault, > but it always makes me feel better to get

[Matplotlib-users] to much points

2009-06-30 Thread Markus Feldmann
Hi All, my program lets slow down my cpu. This only appears if i plot to much points. I am not sure how many point i need to get this, normally i plot 3*14e6 + 8e3, that is round about 50million points. My system is a dual core 2GHz cpu with 2Gbyte Ram. Here is my method to plot, def drawtra

[Matplotlib-users] changing x axis to y and y axis to x in colorbar Object

2009-06-05 Thread Markus Feldmann
Hi All, i try to get a colorbar to work with: if not hasattr(self, 'subplot3'): self.subplot3 = self.figure.add_subplot(111) self.subplot3.grid(True) x,y,z = self.computehistogramm(min,min+self.maxitems) X,Y = meshgrid(x,y) plot = self.

[Matplotlib-users] change the subplots

2009-06-04 Thread Markus Feldmann
Hi All, i want to change my subplots sometimes, but how to do this ? I am adding subplots with this command: self.subplot1 = self.figure.add_subplot(211) Deleting axes with(as i read in this mailing list): [self.figure.delaxes(a) for a in self.figure.get_axes()] but then i can not show up my gr

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,

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 hav

[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 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]

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

[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 ---

[Matplotlib-users] setting x-Axis of bar() element in wxwidget application

2009-05-20 Thread Markus Feldmann
Hi All, i am programming an application which extracts binary values from 6 files and plots this values in a bar() element and another one. The bar Elements are partial one upon the other. I think this results of my my small x values. y1 = [1 0] y2 = [1 0] y3 = [1 1] x = [ 0. 0.0002149]