[Matplotlib-users] Changing icons in navigation toolbar

2012-04-05 Thread Emmanuel Mayssat
The navigation toolbar is ugly ;-) I would like to change the icons, let's say for the 'home' position. How can I do that? -- E -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applicatio

Re: [Matplotlib-users] assigning a plot object to a figure

2012-04-04 Thread Emmanuel Mayssat
.vbox)     def getFigure(self):     return self.fig     def draw(self):     self.canvas.draw() A special thanks to the pyqtgraph maintainer http://luke.campagnola.me/code/pyqtgraph/ ____ From: Emmanuel Mayssat To: Emmanuel Mayssat ; Eric Firing ; "matplotlib-u

Re: [Matplotlib-users] assigning a plot object to a figure

2012-04-03 Thread Emmanuel Mayssat
Although this work, I lose the position of the axes. How can I reposition the axes2 which was at 221 in fig2, to 221 in fig1 ? From: Emmanuel Mayssat To: Eric Firing ; "matplotlib-users@lists.sourceforge.net" Sent: Monday, April 2, 2012 3:20 PM S

[Matplotlib-users] clear figure, ax, etc

2012-04-03 Thread Emmanuel Mayssat
e.axes)  does not do anything either How can I remove my axes from the figure? -- Emmanuel -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resol

Re: [Matplotlib-users] assigning a plot object to a figure

2012-04-02 Thread Emmanuel Mayssat
independently of fig1 PS: I want to use my axes2 as an object to sent to my Qt widget (a blank figure/canvas) -- Emmanuel From: Eric Firing To: matplotlib-users@lists.sourceforge.net Sent: Sunday, April 1, 2012 1:36 PM Subject: Re: [Matplotlib-users] assigning a plot

[Matplotlib-users] assigning a plot object to a figure

2012-03-30 Thread Emmanuel Mayssat
would like to do something like this my_ax = Axes(...) my_ax.plot(x,y) ax = my_ax or my_ax.set_figure(fig) How can I create the axes/plot object independently from the figure? Better yet, how can I assign an axe to a figure? -- Emmanuel

Re: [Matplotlib-users] Plot object

2012-03-29 Thread Emmanuel Mayssat
'Axis [0,1]') axarr[1,0].plot(x, y**2) axarr[1,0].set_title('Axis [1,0]') axarr[1,1].scatter(x, y**2) axarr[1,1].set_title('Axis [1,1]') -- Emmanuel From: Emmanuel Mayssat To: matplotlib Cc: "matplotlib-users@lists.sourceforge.n

[Matplotlib-users] Plot object

2012-03-29 Thread Emmanuel Mayssat
Hello, I am programming using POO (object programming) I cannot find a way to create a plot as an object In concept, I would like to do something like """ from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure self.figure = Figure

[Matplotlib-users] plot object?

2012-03-26 Thread Emmanuel Mayssat
Hello, I am programming using POO (object programming) I cannot find a way to create a plot as an object In concept, I would like to do something like """ from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure self.figure = Figure

[Matplotlib-users] NavigationToolbar2QT change height

2011-08-10 Thread RICHARD Georges-Emmanuel
ax.plot(x, y, 'o-', mew=0) w.show() sys.exit(app.exec_()) Any hint would be appreciate. Cheers. Joe -- RICHARD Georges-Emmanuel Electronic and Computer Engineer perspective.electro...@gmail.com

Re: [Matplotlib-users] py2exe problem

2007-12-21 Thread Emmanuel
Dear Werner, I tested your script here here with python 2.5, matplotlib 0.91.1 and wxpython 2.8.7.1 using regular installation (not enthought). If I replace : from wx import * by import wx (and make the necessary modification) The program starts well! (the button does not work but the problem is

Re: [Matplotlib-users] using strpdate2num in load

2007-12-18 Thread Emmanuel
Yes, I think strpdate2num is based on dateutil.parser.parse thast's why I tried dayfirst=True which is used with dateutil.parser.parse. It would be funny if from a list of string, it could be automatically try to decide between day/month/year, month/day/year format... (it´s a joke) --

Re: [Matplotlib-users] using strpdate2num in load

2007-12-17 Thread Emmanuel
)[1],datedayfirst.split ('/')[0]) I was lookigng for sometinh like that : datestr2num(a,dayfirst=True) or datestr2num(a,fmt="%d/%m/%Y") On Dec 11, 2007 11:16 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 11, 2007 6:00 AM, Emmanuel <[EMAIL PROTECTED]> wrote: &g

[Matplotlib-users] using strpdate2num in load

2007-12-11 Thread Emmanuel
Hi, I've a little problem with date conversion. I have a csv file which looks like : "Data","Valor" "15/01/2007"," 6,700012000" "12/01/2007"," 6,659903000" "11/01/2007"," 6,701586000" I try to get date using function strpdate2num in load doing this : from pylab import datestr2num, load def comma

[Matplotlib-users] strpdate2num in load

2007-12-09 Thread Emmanuel Favre-Nicolin
Hi, I've a little problem with date conversion. I have a csv file which looks like : "Data","Valor" "15/01/2007"," 6,700012000" "12/01/2007"," 6,659903000" "11/01/2007"," 6,701586000" I try to get date using function strpdate2num in load doing this : from pylab import datestr2num, load def comm

Re: [Matplotlib-users] py2exe with pylab

2007-09-19 Thread Emmanuel
With the setup you provided. I could get py2exe to make an exe of the simple_plot.py from simple_plot_wxagg of py2exe examples. When I tried this on another python prog, I remarked that if I comment the following line : import matplotlib.backends.backend_wxagg the exe created by py2exe crash and

[Matplotlib-users] py2exe with pylab

2007-09-18 Thread Emmanuel
Hi, I got the setup.py given by Werner in an old thread (message from april 4th 2007). I putted code thereafter. I installed matplotlib 0.90.1/ python 2.5 on windows XP When I run the setup, it make an exception when using matplotlib.get_py2exe_datafiles() : --> 13 mpdir, mpfiles = matplotlib.g

[Matplotlib-users] py2exe with pylab

2007-09-18 Thread Emmanuel
Hi, I got the setup.py given by Werner in an old thread (message from april 4th 2007). I putted code thereafter. I installed matplotlib 0.90.1/ python 2.5 on windows XP When I run the setup, it make an exception when using matplotlib.get_py2exe_datafiles() : --> 13 mpdir, mpfiles = matplotlib.g

[Matplotlib-users] matplotlib-users@lists.sourceforge.net

2007-06-27 Thread Emmanuel Favre-Nicolin
Hi, I didn't find any tip for preparation of simple black and white 2D plot, especially for nice output in eps for publication. Any suggestions are welcome. - This SF.net email is sponsored by DB2 Express Download DB2 Expres

[Matplotlib-users] can plot only one time in windows

2007-05-29 Thread Emmanuel Favre-Nicolin
Hi, I can plot only one time in windows. The second time, the window appears without the tools and when I click on the windows it become white and freezes. Here is a code : from pylab import * x=arange(5) y=x*x plot(x,y) show() plot(x,y) show() ---

[Matplotlib-users] matplolib equivalent of gnuplot's impulse

2007-05-03 Thread Emmanuel
With gnuplot one can do a plot like that : http://www.deqnotes.net/gnuplot/images/impulses.png It is using option "with impulse". Is there an equivalent in matplotlib? - This SF.net email is sponsored by DB2 Express Download

[Matplotlib-users] brocken link in tutorial.html

2007-04-30 Thread Emmanuel
In http://matplotlib.sourceforge.net/tutorial.html the following link is brocken : http://matplotlib.sourceforge.net/pylab.html#-rc (in "Customizing matplotlib" part) therefore, it is difficult to get information about rc...

Re: [Matplotlib-users] setting size of subplots

2007-04-29 Thread Emmanuel
Hi again, I'm getting some partial results with the script subplot_test.py in attachement. It has though 2 problems : - the set_aspect(0.333*Dx/Dy) seems to occupy on ly 1/3 of its allowed space. Is it a bug ? - the last 2 columns are empty but belong to the figure, this means unwanted empty spa

Re: [Matplotlib-users] live plot templete for newbie

2007-04-29 Thread Emmanuel
Maybe you could be more precise, it's difficult to guess! Maybe you just want to do something similar to the anim.py example? Maybe you want to build an bigger application, you should look at embedding in wxpython... cf wxmpl... For data acquisition on the serial, maybe http://pyserial.sourcefor

[Matplotlib-users] setting size of subplots

2007-04-29 Thread Emmanuel
Hi, I'd like to know if it is possible to control size of subplots let say control the ratio between x and y axis in length units (not in units of x and y). For example, I'd like to plot 2 graphics with one rectangular ratio y:x 1:3 and the second squared 1:1. example : import pylab x = pylab.

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-08 Thread Emmanuel
*.pyd,library.zip,wxmsw26u_vc_enthought.dll Files in lib\matplotib are *.afm,*.ppm,*.svg Files in matplotib are the same as in lib\matplotib FIles in prog are MSVCR71.dll,python24.dll,w9xpopen.exe,wx_embed.exe On 4/8/07, Emmanuel <[EMAIL PROTECTED]> wrote: Can I post also in that

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-08 Thread Emmanuel
Can I post also in that thread or should I open a new one? I'm also trying the first Werner F. Bruhin example. I saved the setup.py and the example in embedding_in_wx4.py then I run python.exe setup.py py2exe bdist When looking for dll, it fails claiming: Error: wxmsw26u_vc_enthought.dll : No

Re: [Matplotlib-users] freezing matplotlib

2007-02-02 Thread Emmanuel Favre-Nicolin
I tried directly the setup.py, it does not work with wxcursor_demo.py My first try was  modifying the following in the setup.py : #mpldata = glob.glob(r'C:\Python24\share\matplotlib\*') mpldata=[] for di in allsubdirs(r'C:\Python24\Lib\site-packages\matplotlib'):     ti=di+'*.py*'     mpldata=mp

Re: [Matplotlib-users] freezing matplotlib

2007-02-01 Thread Emmanuel Favre-Nicolin
Le lundi 25 décembre 2006 16:00, Allan Noriel Estrella a écrit : > Has anyone tried freezing matplotlib embedded in a wx app (using py2ece, > cx_freeze or pyinstaller)? The setup.py in the FAQ seems to be outdated. I > want to freeze the embedding_in_wx.py in the examples. Do you have any > suggest

Re: [Matplotlib-users] method for embedding a plot in wx

2006-11-18 Thread Emmanuel Favre-Nicolin
Le Vendredi 17 Novembre 2006 21:37, vous avez écrit : > 1) you seem to have posted this three times -- we really only need it once. Sorry, I've problem with my email, I didn't receive the mail so I thought it wasn't send! (sourceforge seems not to like gmail emails) > 2) I'd recommend wx MPL, it

[Matplotlib-users] method for embedding a plot in wx

2006-11-17 Thread Emmanuel Favre-Nicolin
Hi, I didn't get the way to embed a plot where I wish it to be, for example inside a panel or a sizer? I did the following : I create a panel panel_4 which is where I'd like to get the plot, I create a sizer sizer_8 in it and try to load the plot but the plot does not show. I don't know how to

[Matplotlib-users] method for embedding a plot in wx

2006-11-17 Thread Emmanuel Favre-Nicolin
Hi, I didn't get the way to embed a plot where I wish it to be, for example inside a panel or a sizer? I did the following : I create a panel panel_4 which is where I'd like to get the plot, I create a sizer sizer_8 in it and try to load the plot but the plot does not show. I don't know how to s

[Matplotlib-users] method for embedding a plot in wx

2006-11-17 Thread Emmanuel
Hi, I didn't get the way to embed a plot where I wish it to be, for example inside a panel or a sizer? I did the following : I create a panel panel_4 which is where I'd like to get the plot, I create a sizer sizer_8 in it and try to load the plot but the plot does not show. I don't know how to s

Re: [Matplotlib-users] x and ylabel problem when embedding in wx

2006-11-10 Thread Emmanuel Favre-Nicolin
Le Vendredi 10 Novembre 2006 00:50, vous avez écrit : > > "John" == John Hunter <[EMAIL PROTECTED]> writes: > > John> It's not about wx or wxpython, it's a matplotlib issue. > > Let me add some color to that statement -- when I took a look at your > screenshot, I realized you are using the

[Matplotlib-users] x and ylabel problem when embedding in wx

2006-11-09 Thread Emmanuel Favre-Nicolin
Hi, (I'm sending again because email was probably filtered?) I have problem with xlabel and ylabel when embedding in wx. See snapshot : http://emmanuelfavrenicolin.free.fr/Public/Divers/Snapshots1/wx_snap.png I put a test code which is based on dynamic_demo_wx.py, adding only the 3 lines :

[Matplotlib-users] x and ylabel problem when embedding in wx

2006-11-09 Thread Emmanuel Favre-Nicolin
I have problem with xlabel and ylabel when embedding in wx. See snapshot : http://emmanuelfavrenicolin.free.fr/Public/Divers/Snapshots1/wx_snap.png I put a test code which is based on dynamic_demo_wx.py, adding only the 3 lines : a.set_title('Title') a.set_xlabel('Xaxis [u.a.]')

[Matplotlib-users] matplotlib window not responding in windows

2006-10-25 Thread Emmanuel
I'm trying to run a program that plot experimental datas during measurement (to check if experiment is okay). I started doing directly measuring one point and plotting it import matplotlibmatplotlib.use('TkAgg') ...from pylab import *...ion()while cond:    measure()    plot(X[-1:],Y[-1:],"o") #plot