Re: [Matplotlib-users] draw() doesn't always force draw on qt4?

2008-04-24 Thread Matthias Michler
Hello Glen, I'm not sure, but maybe it would help to use ax = subplot(111) and ax.plot(arange(it)) instead of plot(arange(it)) or to call a second draw() after plotting. regards Matthias On Wednesday 23 April 2008 20:49:46 Glen W. Mabey wrote: > Hello, > > I'm using today's svn source and I'

Re: [Matplotlib-users] BUG: python exists when savefig(None) is called

2008-04-23 Thread Matthias Michler
[sorry for so many mails] On Wednesday 23 April 2008 15:54:42 Matthias Michler wrote: > Hello John, > > On Wednesday 23 April 2008 15:24:30 John Reid wrote: > > So I have: > > > > In [2]: import matplotlib; print matplotlib.__version__ > > 0.90.1 I jus

Re: [Matplotlib-users] BUG: python exists when savefig(None) is called

2008-04-23 Thread Matthias Michler
Hello John, On Wednesday 23 April 2008 15:24:30 John Reid wrote: > So I have: > > In [2]: import matplotlib; print matplotlib.__version__ > 0.90.1 > > Why does pylab not have __version__? I'm not an expert, but the pylab.__doc__ states This is a procedural interface to the matplotlib object-o

Re: [Matplotlib-users] BUG: python exists when savefig(None) is called

2008-04-23 Thread Matthias Michler
Hi John, On Wednesday 23 April 2008 12:28:11 John Reid wrote: > I'm on Windows with python 2.5. How do I find the version of matplotlib? > I think it is fairly recent (within last 6 months anyhow). import matplotlib print matplotlib.__version__ > Shouldn't an error be raised? On my Kubuntu 7.1

Re: [Matplotlib-users] How to remove the grey border in the plotting?

2008-04-15 Thread Matthias Michler
Hello Benjamin, I think you should use an other kind of an axes. Instead of pylba.subplot(111) (or fig.add_subplot(111)), you could use pylab.axes([0.0, 0.0, 1.0, 1.0]) with the values (left, bottom, width, height) to avoid the gray border. regards Matthias On Wednesday 09 April 2008 20:37:08

Re: [Matplotlib-users] hist() and semilogy

2008-04-15 Thread Matthias Michler
Hello Adrian, I'm not sure I understood well, but if you want a histogram with logarithmic yscale, you may want to use something like: import pylab pylab.subplot(111, yscale='log') pylab.histogram(some_nice_data) pylab.show() regrads Matthias On Monday 14 April 2008 22:28:49 Adrian Price-Whel

Re: [Matplotlib-users] discrepancy between plotted line styles and legend styles?

2008-04-09 Thread Matthias Michler
Hello Joseph, I'm not sure I understand correctly, but it seems to me that the number of plotted lines (from errorbar, len(gca().lines) ) is large compared to your 3 labels. That's why only the lines of the first errorbar are used to build the legend. It might to helpful to use the 'label' kwar

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-28 Thread Matthias Michler
On Friday 28 March 2008 13:57, Chris Withers wrote: > Matthias Michler wrote: > > I'm not sure it is the easiest way, but it works for me: > > > > for label in ax.xaxis.get_majorticklabels(): > > label.set_rotation(+90) > > Yes, that's what I was usi

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-28 Thread Matthias Michler
Hello Chris, Hello list, On Thursday 27 March 2008 18:26, Chris Withers wrote: > Matthias Michler wrote: > > I'm not sure that I understand you correctly. The code I refering is the > > one which I attached some mails ago. The following works for me: > > Ah, okay, to ge

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Matthias Michler
Hello Chris, On Thursday 27 March 2008 12:22, Chris Withers wrote: > Matthias Michler wrote: > >>> the above script leads > >>> to a different behaviour on my system. > >> > >> What is that behaviour and what version of matplotlib are you using? >

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Matthias Michler
On Wednesday 26 March 2008 19:39, Chris Withers wrote: > Matthias Michler wrote: > >> My x-axis is time, and as new points are plotted, even though I'm > >> following the above recipe pretty closely, the x-tick spacing isn't > >> getting sorted out, so

Re: [Matplotlib-users] Labels in a dynamic graph

2008-03-25 Thread Matthias Michler
Hello Amit, On Sunday 23 March 2008 09:54, Amit Finkler wrote: > Hi everyone, > > > I am using matplotlib to dynamically plot a graph with both my x and y > points taken from a measurement device. That is to say, in each > iteration of my while loop I'm reading two variables which I then want > to

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-25 Thread Matthias Michler
Hey Chris, On Saturday 22 March 2008 03:36, Chris Withers wrote: > Matthias Michler wrote: > > maybe something like the following helps you: > > - > > from pylab import * > > from ti

Re: [Matplotlib-users] default zorder for plots?

2008-03-18 Thread Matthias Michler
Hello Chris, in "examples/zorder_demo.py" I found: --- The default drawing order for axes is patches, lines, text. This order is determined by the zorder attribute. The following defaults are set Artist

Re: [Matplotlib-users] Latex in Figures

2008-03-18 Thread Matthias Michler
Hello Lorenzo, maybe you don't really use Tex to build the labels and mathtext does not support any Tex-functionality. if you use: from matplotlib import rc rc('text', usetex=True) import pylab as p it should work. Alternat

Re: [Matplotlib-users] placing legend outside of plot area

2008-03-18 Thread Matthias Michler
On Tuesday 18 March 2008 10:50, Chris Withers wrote: > Eric Firing wrote: > > It sounds like what you want it the pyplot figlegend command: > > def figlegend(handles, labels, loc, **kwargs): > > This feels like what I should be wanting except: > > - why does it need explicit parameters? why can't i

Re: [Matplotlib-users] making minor ticks into lines instead of ticks

2008-03-18 Thread Matthias Michler
Hello Chris, for only horizontal lines you can use 'ax.yaxis.grid' like: --- from pylab import * figure() ax = axes() ax.set_yticks([0.0,0.5,1.0], minor=False) ax.set_yticks(list(linspace(0.0, 1.0, 11)), minor=True) ax.yaxis.grid(which='minor') show(

Re: [Matplotlib-users] placing legend outside of plot area

2008-03-17 Thread Matthias Michler
expert but I think there's no default behaviour covering all needs (outside the axes and best located), because for example the legend width is influenced by the length of the labels. much effort and best regards Matthias On Monday 17 March 2008 17:13, Chris Withers wrote: > Hi Matthia

Re: [Matplotlib-users] how to remove an xlabel?

2008-03-17 Thread Matthias Michler
Hello Chris, you can try xlabel of an empty string: xlabel(' ') regards Matthias On Monday 17 March 2008 17:11, Chris Withers wrote: > Hi All, > > I'm using plot_date to plot some dates, but this sets an xlabel, and I > don't want the plot to have an xlabel. > > How do I remove it? > > I tried

Re: [Matplotlib-users] placing legend outside of plot area

2008-03-17 Thread Matthias Michler
Hello Chris, I'm not sure if there was an example in matplotlib, but the following works for me: - from pylab import * figure() subplot(111) subplots_adjust(right=0.7) plot(arange(10), label='linear') plot(arange(10)**2, label='q

Re: [Matplotlib-users] axis.fill()

2008-03-14 Thread Matthias Michler
Hello Michael, for me there seems to be no problem. I'm using maplotlib version 0.91.2 (you can get you version using: >>> import matplotlib >>> print matplotlib.__version__ I'm not sure if it is due to the version, but if it is possible you may want to update to 0.91.2. best regards Matthias

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-12 Thread Matthias Michler
ning the data input. but maybe you save the data to a file and read them every 15 or 20 minutes. best regards Matthias On Tuesday 11 March 2008 19:37, Chris Withers wrote: > Chris Withers wrote: > > Matthias Michler wrote: > >> plot([x1], [y1], "bo", [x2], [y2], &qu

Re: [Matplotlib-users] problem with figure toolbar

2008-03-10 Thread Matthias Michler
Hello, I'm not sure if there is a nicer way to do what you want and I understand correctly what you want to do, but as a workaround I would recommand you the following: use the mainloop-mode after show and an event to rearch a function, which includes a "raw_input" to input text from the shell

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-10 Thread Matthias Michler
Hello Chris, you may try something like plot([x1], [y1], "bo", [x2], [y2], "r+") or you have to iterate through your data. best regards Matthias On Friday 07 March 2008 10:11, Chris Withers wrote: > Hi All, > > Apologies if I'm missing anything obvious... > > How do I plot lines point-by-poin

Re: [Matplotlib-users] build matplotlib including backend wxPython

2008-01-23 Thread Matthias Michler
Hello Ken, Hello Mike, Hello all, On Tuesday 22 January 2008 19:33, Ken McIvor wrote: > On Jan 22, 2008, at 11:00 AM, Matthias Michler wrote: > > I was not up to date with my installation and I tried to use the > > latest svn > > version (trunk) on my Debian etch. I ha

[Matplotlib-users] build matplotlib including backend wxPython

2008-01-22 Thread Matthias Michler
Hello list, I was not up to date with my installation and I tried to use the latest svn version (trunk) on my Debian etch. I have a problem to build matplotlib including support for wxPython as backend. The output is attached below. Actually I cannot find a file "wxPython.h" on my system. Can

Re: [Matplotlib-users] FuncFormatter and Colorbar

2008-01-11 Thread Matthias Michler
numbers > formatted with commata. > > Greetings, > Thorsten > > 2008/1/9, Matthias Michler <[EMAIL PROTECTED]>: > > Hello list, > > Hello Thorsten, > > > > On Wednesday 09 January 2008 11:38, Thorsten Kranz wrote: > > > I have a question concern

Re: [Matplotlib-users] FuncFormatter and Colorbar

2008-01-11 Thread Matthias Michler
orbar, one can give an additional kwarg "format", so by defining the > > kwarg "format=formatter", we solved the problem. > > > > Anyway, I think an option as Matthias implemented would be very handy > > for all those users like us here in Germany who

[Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Matthias Michler
Hello list, the little example below leads to an error on my system (output is attached). I used this some time ago and it worked. Now I'm using the release 0.91.2. Is there a reason to use rectangular brackets not in mathtext? (same problem occur with '{' for me.) best regards and thanks in adva

Re: [Matplotlib-users] problem with ticker and mathtext

2008-01-10 Thread Matthias Michler
l differences. Thanks in advance for any further suggestions. best regards, Matthias > Cheers, > Mike > > Matthias Michler wrote: > > Hello list, > > > > the little example below seems to fail, can anybod

Re: [Matplotlib-users] FuncFormatter and Colorbar

2008-01-09 Thread Matthias Michler
Hello list, Hello Thorsten, On Wednesday 09 January 2008 11:38, Thorsten Kranz wrote: > I have a question concerning reformatting of axis-ticks via the > FuncFormatter-class. In german, it's common to use a comma as separator for > decimal numbers instead of a dot. To realize it in matplotlib, I d

[Matplotlib-users] problem with ticker and mathtext

2008-01-09 Thread Matthias Michler
Hello list, the little example below seems to fail, can anybody help me? I'm on Debian using the release 0.91.2. best regards and thanks in advance for any hints, Matthias --- from matplotlib.ticker import S

Re: [Matplotlib-users] axes numbers font size

2008-01-04 Thread Matthias Michler
Hello, On Tuesday 18 December 2007 23:42, G. O. Nikiforov wrote: > 1. Is there a way to change the font type and font size of the numbers on > the axes in a figure? Not the labels (xlabel and ylabel - they are easy to > change), but the actual numbers. If for example x goes from 0 to 6 in step > o

[Matplotlib-users] error in ax.bar

2007-09-21 Thread Matthias Michler
Hello list, with the latest version of svn the pylab.hist command doesn't work if I use align='center'. The error is due to a problem in the ax.bar - function as you can see in the example below. Probably width should be an array and not a list if one want to build width/2.. I'm not sure what

Re: [Matplotlib-users] activate/deactivate RectangleSelector

2007-09-20 Thread Matthias Michler
Hello developers, I'm sorry for reposting again. I really would like to have this feature in mpl. Please let me know if there is anything I can do to change my proposal to make it match with matplotlib. thanks in advance and best regards, Matthias ---

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-07-02 Thread Matthias Michler
call it after every finished typing mode. This new behaviour has the big advance that error-handling during evaluation of the text is a task for users and not to mpl. I hope I could explain my idea ... best regards, Matthias On Wednesday 27 June 2007 18:19, Matthias Michler wrote: > Hello ever

Re: [Matplotlib-users] error on different mouse events

2007-06-28 Thread Matthias Michler
Hello darkside, I tried your example and it works for me (with mpl-svn) using GTKAgg and doesn't work (like you reported) using TKAgg (Is this a bug?). Maybe you can switch to GTKAgg? Otherwise you should report the mpl-version you are using. >- import matplot

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-06-27 Thread Matthias Michler
g external values or plots). I attached this new version. best regards, Matthias On Tuesday 26 June 2007 19:46, Matthias Michler wrote: > Hello John, > Hello all, > > I thought once more about the textbox and added some of your (Johns) > features to my class 'InputButton'.

Re: [Matplotlib-users] activate/deactivate RectangleSelector

2007-06-26 Thread Matthias Michler
more my patch including these new lines. best regards, Matthias On Tuesday 26 June 2007 16:35, John Hunter wrote: > On 6/26/07, Matthias Michler <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > > > first of all: Sorry for posting to my own thread. > > But I reall

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-06-26 Thread Matthias Michler
solution and needed skills of the textbox . Could this be helpful / useful for others? best regards, Matthias On Wednesday 06 June 2007 17:25, John Hunter wrote: > On 6/6/07, Matthias Michler <[EMAIL PROTECTED]> wrote: > > By the way: What do you think about the "insert a &#

Re: [Matplotlib-users] activate/deactivate RectangleSelector

2007-06-26 Thread Matthias Michler
or a real feature? Could it be part of mpl? Thanks in advance for any comments. Matthias Michler On Thursday 03 May 2007 18:22, Matthias Michler wrote: > Hello list, > > refering to the thread 'activate/deactivate RectangleSelector' of the > developer-mailing-list I t

Re: [Matplotlib-users] mouse events, get data and disconnect

2007-06-11 Thread Matthias Michler
, because I only change the lines refering to datax, > datay. It seems that only works with lists, but I don't know if this is the > problem exactly. > > With the command close, I can close the figure window pressing right mouse > button. It works (at least something works). > &

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-06-06 Thread Matthias Michler
g' and 'f' off? best regards, Matthias On Wednesday 06 June 2007 16:19, John Hunter wrote: > On 6/6/07, Matthias Michler <[EMAIL PROTECTED]> wrote: > > Some time ago I posted a suggestion to that (subject: 'additional key > > events'), which may be got lost

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-06-06 Thread Matthias Michler
Hello everybody, first of all I want to thank John for his work on the textbox - it really looks better than mine. On Tuesday 05 June 2007 19:16, Mark Bakker wrote: > I just saw in the code: > if event.key is None: # simulate backspace > So it works properly, > Mark In my opinion it would be a

Re: [Matplotlib-users] input text and/or numbers on mpl figure

2007-06-04 Thread Matthias Michler
be unaccessible: e.g. enter and backspace. The backend_(wx|gtk|tkagg).py might have to be modified to handle this. (subject: additional key events) Now my question is: Could a prompt be a useful part of matplotlib? Best regards and thanks in advance for any comments, Matthias Michler On Fr

Re: [Matplotlib-users] mouse events, get data and disconnect

2007-06-04 Thread Matthias Michler
Hello darkside, maybe the following little examples helps you with disconnecting: > from pylab import * def event_response(event): print event.name disconnect(cid) subplot(111) cid = connect('button_press_e

[Matplotlib-users] input text and/or numbers on mpl figure

2007-05-25 Thread Matthias Michler
ld in one of the mpl modules? Best regards and thanks in advance for any hints, Matthias Michler - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of you

Re: [Matplotlib-users] skip mpl-axes-interaction during key_press_event's

2007-05-15 Thread Matthias Michler
p the events. Is this a suitable way of disabling the mpl-axes-interaction? best regards, Matthias On Friday 27 April 2007 17:42, Matthias Michler wrote: > Hi everybody, > > I use key_press_event's to handle my program. > Therefore I want to skip the matplotlib usage of some keys e.

Re: [Matplotlib-users] newline in mathtex

2007-05-15 Thread Matthias Michler
Hello Bernhard, I'm not sure if my answer really fits your question, but it may help to use >>> from matplotlib import rc >>> rc('text', usetex=True) like in the tex_demo.py (http://matplotlib.sourceforge.net/screenshots) or to change your matplotlibrc (for explanation see: http://www.scipy.org/

[Matplotlib-users] activate/deactivate RectangleSelector

2007-05-07 Thread Matthias Michler
Hello list, refering to the thread 'activate/deactivate RectangleSelector' of the developer-mailing-list I thought a bit about the problem because I found it quite irritating that the RS couldn't be stopped during zooming. I attached a patch including Martin's example and my proposal to (de)act

Re: [Matplotlib-users] From list of objects to plotting

2007-05-06 Thread Matthias Michler
Hello Tommy, I would like to do such convertings, too, but I think there is no such fast way in python. I'm using the 'for statement' to iterate over a list of objects and save their properties into a new list. best regards, Matthias On Friday 04 May 2007 17:54, Tommy Grav wrote: > I have som

Re: [Matplotlib-users] small question: svn mpl.__revision__

2007-04-27 Thread Matthias Michler
lotlib.__revison__ that I get e.g. in IPython. That's why I thought it should be the revision of the whole project. Just a remark - you can forget about it. best regards, Matthias > Matthias Michler wrote: > > Hi devolopers, > > > > one small remark about the mpl

[Matplotlib-users] small question: svn mpl.__revision__

2007-04-27 Thread Matthias Michler
Hi devolopers, one small remark about the mpl svn. I recognized, that in the file ./lib/matplotlib/__init__.py the actual revision is: __revision__ = '$Revision: 3131 $' and the svn info tells "Revision: 3257". best regards, Matthias -

[Matplotlib-users] skip mpl-axes-interaction during key_press_event's

2007-04-27 Thread Matthias Michler
Hi everybody, I use key_press_event's to handle my program. Therefore I want to skip the matplotlib usage of some keys e.g. 'f', 'g' and 'l'. I didn't find the right method to turn the usage off. Can anybody help me? Could this method be useful for buttons and sliders from widgets.py, too? Bec

[Matplotlib-users] additional key events

2007-04-26 Thread Matthias Michler
Hello everybody, sometimes I need more than the available key events - e.g. 'enter', 'backspace' or the keys from numeric keypad. That's why I tried to include more events in the backends (backend_wx.py, backend_tkagg.py, backend_gtk.py). I tested it on a debian etch (Python 2.4.4, wxpython 2.6.

[Matplotlib-users] pylab.setp - expected behaviour?

2007-04-24 Thread Matthias Michler
Hello everybody, to reset data I'm using pylab.setp instead of the methods line.set_xdata, line.set_ydata believing there would be no obvious difference in behaviour. (Maybe I not really get what is going on in matplotlib.artist.py.) The taken time is of quite big importance to me because I reall

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-24 Thread Matthias Michler
Hi, a friend gave me the little example I attached. He uses 'gca().images = []' to delete the images. I'm not sure about memory usage of that method, but I think deleting images (using clf() or the above way) is quite important, because otherwise one more image is drawn above the existing ones

Re: [Matplotlib-users] question about autoscale_view()

2007-04-23 Thread Matthias Michler
tthias On Tuesday 13 February 2007 13:21, Matthias Michler wrote: > Hello everbody, > > sometimes I need an autoscaling when my new data points in a figure have > small values compared to some deleted ones. So I thought > ax.autoscale_view() would be the solution, but it seems to remem

Re: [Matplotlib-users] problem realtime plot

2007-04-23 Thread Matthias Michler
Hi Jan, I'm not sure about the reason, but your little example runs for me using several backends (GtkAgg, TkAgg, WxAgg). I'm using Debian (kernel 2.6) and matplotlib 0.90.0 at revison 3131. Maybe it could help to add some more 'draw()' commands after plotting and reseting data - not really goo

Re: [Matplotlib-users] help with fonts in legends

2007-04-23 Thread Matthias Michler
Hi Stephen, On Sunday 22 April 2007 23:35, Stephen Boulet wrote: > I wanted to use this code to set the label font in my legends: > from pylab.font_manager import fontManager, FontProperties > ... > but I'm getting "ImportError: No module named font_manager". > > Can someone help me set legend siz

Re: [Matplotlib-users] animations with subplot

2007-03-01 Thread Matthias Michler
Hello darkside, I set up a little program hoping it offers a solution to your problem. Matthias >--- from numpy.random import uniform import pylab Nt = 20 x,y = uniform(size=(100,Nt+1)),uniform(size=(100,Nt+1)) pylab.

[Matplotlib-users] open / close or set active figures during mainloop

2007-02-19 Thread Matthias Michler
Hello everybody, I would like to open and close some figures during the mainloop or (if this is not possible) set figures to some kind of active or visible. Could anyone help me or give me a hint? Thanks in advance, Matthias

[Matplotlib-users] question about autoscale_view()

2007-02-13 Thread Matthias Michler
Hello everbody, sometimes I need an autoscaling when my new data points in a figure have small values compared to some deleted ones. So I thought ax.autoscale_view() would be the solution, but it seems to remember deleted data and so doesn't scale limits like I want. A little program showing my

Re: [Matplotlib-users] How to use logarithmic scale with histogram?

2007-02-12 Thread Matthias Michler
Hi Mika, Hi everybody, I'm not sure I really understand your problem, but I attached my proposal / solution, so you can think about it or maybe describe your problem once more. Much success, Matthias Mi

[Matplotlib-users] More than one 'draw()' needed

2007-02-12 Thread Matthias Michler
remaining graphs and the legend > before the raw_input occur raw_input(" ") P.ioff() P.show() >------ Thanks in advance, Matthias Michler

<    1   2   3