[Matplotlib-users] Apply a blur on patches

2016-09-26 Thread Xavier Gnata
Hi fm.py Description: Binary data -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users

[Matplotlib-users] color gradient color_cycle ?

2011-08-04 Thread Xavier Gnata
hi, I want to overplot N curves calling the plot(X) function N times. I also would like to have a way to which curve has been drawn first and so on. If N would en small and constant, I could simply call color_cycle with a short list as parameter...but it is not quite an option with up to 50

[Matplotlib-users] compile failure with git tree

2011-07-02 Thread Xavier Gnata
Hi, I'm use to compile the mpl git tree but I get an error with the current one: running build_ext building 'matplotlib.backends._tkagg' extension C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC compile options: '-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API

[Matplotlib-users] Plan to merge the matplotlib-py3 branch?

2011-06-13 Thread Xavier Gnata
Hi, It looks like the matplotlib-py3 branch is worknig well both with python2.X and python3.X. Is there a plan to merge the changes from matplotlib-py3 into the default trunk anytime soon? Xavier -- EditLive

Re: [Matplotlib-users] Plan to merge the matplotlib-py3 branch?

2011-06-13 Thread Xavier Gnata
On 06/13/2011 07:38 PM, Darren Dale wrote: On Mon, Jun 13, 2011 at 12:25 PM, Michael Droettboommd...@stsci.edu wrote: This was recently discussed in the thread v1.0.x branch seems confused. I (believe) the consensus was to get out another v1.0.x maintenance release out in the near future

Re: [Matplotlib-users] Change a few pixels color

2011-04-25 Thread Xavier Gnata
On 04/23/2011 03:19 AM, Paul Ivanov wrote: Hi Xavier, Xavier Gnata, on 2011-04-23 02:33, wrote: Imagine you have this code: import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.25 x = y = np.arange

[Matplotlib-users] Change a few pixels color

2011-04-22 Thread Xavier Gnata
Hi, Imagine you have this code: import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.25 x = y = np.arange(-3.0, 3.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0,

[Matplotlib-users] python3 svn branch dead?

2011-03-20 Thread Xavier Gnata
Hi, It looks like the http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/ in dead. The last commit was 8months ago. Numpy is ok with python3.1, scipy is ok, nose is ok, ipython is usable. Ubuntu already provides python-tk for python3.x It would be nice to port matplotlib to

Re: [Matplotlib-users] python3 svn branch dead?

2011-03-20 Thread Xavier Gnata
On 03/20/2011 07:19 PM, Darren Dale wrote: On Sun, Mar 20, 2011 at 2:08 PM, Xavier Gnataxavier.gn...@gmail.com wrote: Hi, It looks like the http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/ in dead. The last commit was 8months ago. Numpy is ok with python3.1, scipy

Re: [Matplotlib-users] Python 3

2011-01-03 Thread Xavier Gnata
On 01/03/2011 05:29 PM, Ryan May wrote: On Mon, Jan 3, 2011 at 9:28 AM, Darren Daledsdal...@gmail.com wrote: On Mon, Jan 3, 2011 at 9:45 AM, Ryan Mayrma...@gmail.com wrote: On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnataxavier.gn...@gmail.com wrote:

Re: [Matplotlib-users] Python 3

2011-01-02 Thread Xavier Gnata
which backend should we use? It does not work with pyqt4 Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.1/dist-packages/pylab.py, line 1, in module from matplotlib.pylab import * File

Re: [Matplotlib-users] Python 3

2010-09-24 Thread Xavier Gnata
On 09/21/2010 04:13 PM, Ryan May wrote: On Tue, Sep 21, 2010 at 8:22 AM, A. S. Budden abud...@gmail.com wrote: All, Now that NumPy is available for python 3.1 and SciPy is well on its way (apparently), are there any plans for matplotlib to be ported? There are definitely plans; in

Re: [Matplotlib-users] Python 3

2010-09-24 Thread Xavier Gnata
On 09/25/2010 12:02 AM, Fernando Perez wrote: On Fri, Sep 24, 2010 at 2:54 PM, Ryan May rma...@gmail.com wrote: The one called Py3k :) http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/ In case you want to have ipython while testing, there's already an

[Matplotlib-users] _path.so: undefined symbol: PyArray_API

2009-11-25 Thread Xavier Gnata
Hi, I'm trying to compile numpy/scipy and matplotlib (I did it N times without any problem). Numpy and scipy are ok (.test() is fine). However, from pylab import * fails with way: /usr/local/lib/python2.6/dist-packages/pylab.py in module() 1 2 3 from matplotlib.pylab import

Re: [Matplotlib-users] _path.so: undefined symbol: PyArray_API

2009-11-25 Thread Xavier Gnata
Yes that was the bug. Please commit the fix. Xavier Revision 7985 contains a typo (see bug tracker). Try replace the string PY_ARRAYAUNIQUE_SYMBOL with PY_ARRAY_UNIQUE_SYMBOL in setupext.py. Christoph -- Let

Re: [Matplotlib-users] quiver without any scaling

2009-11-23 Thread Xavier Gnata
Nov 2009, at 21:34, Xavier Gnata wrote: Hi, RTFM...indeed it works. However, the axis do not scale accordingly: quiver([1],[1],[2],[2], angles='xy', scale_units='xy', scale=1) on a TkAgg backend produce a plot with: In [11]: axis() Out[11]: (0.94006, 1.0601

Re: [Matplotlib-users] quiver without any scaling

2009-11-22 Thread Xavier Gnata
that helps :) Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 22 Nov 2009, at 16:37, Xavier Gnata wrote: Hi, I woud like to draw a vector field using pylab. quivert looks nice

Re: [Matplotlib-users] plot color as a function of values?

2009-10-12 Thread Xavier Gnata
],s[s=0],g) ax.plot(t[s0],s[s0],r) cheers Thomas Xavier Gnata-2 wrote: Hi, Imagine you have something like: from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) ax = subplot(111) ax.plot(t, s) That's fine but now I would like to plot the negative parts of the curve

[Matplotlib-users] plot color as a function of values?

2009-10-11 Thread Xavier Gnata
Hi, Imagine you have something like: from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) ax = subplot(111) ax.plot(t, s) That's fine but now I would like to plot the negative parts of the curve in red and the positive one in green. Is there a nice pylab oriented way to do that? Some

Re: [Matplotlib-users] display pixels values on the backends

2009-08-26 Thread Xavier Gnata
Hi, I have already asked about that but I'm back once again :) The way I use matplotlib may be a corner case: I'm often looking at large (4k x 4k) images and I do want to see the pixels values moving the mouse over the display. imshow does a great job but all the backend only display x=

[Matplotlib-users] display pixels values on the backends

2009-08-24 Thread Xavier Gnata
Hi, I have already asked about that but I'm back once again :) The way I use matplotlib may be a corner case: I'm often looking at large (4k x 4k) images and I do want to see the pixels values moving the mouse over the display. imshow does a great job but all the backend only display x= y=. I

[Matplotlib-users] How to play with colormas/Normalize

2009-06-07 Thread Xavier Gnata
Hi, I'm trying to modify the imshow colormapping on the flight: http://matplotlib.sourceforge.net/api/colors_api.html?highlight=linearsegmentedcolormap#matplotlib.colors.Normalize Colormapping typically involves two steps: a data array is first mapped onto the range 0-1 using an instance of

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-06 Thread Xavier Gnata
ok. My bad! Sorry. I have changed the default to %1.4g so that is matches my usecases *but* I agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From the matplotlibrc file (see

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-06 Thread Xavier Gnata
Eric Firing wrote: Xavier Gnata wrote: ok. My bad! Sorry. I have changed the default to %1.4g so that is matches my usecases *but* I agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-01 Thread Xavier Gnata
John Hunter wrote: On Sat, May 30, 2009 at 6:46 PM, Eric Firing efir...@hawaii.edu wrote: Possible, but I think there is a much better solution along the lines I suggested earlier. I have it partly implemented. To really do it right will require a little bit of work on all the

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-05-30 Thread Xavier Gnata
Eric Firing wrote: Xavier Gnata wrote: Right now, the default is very simple: def format_data_short(self,value): 'return a short formatted string representation of a number' return '%1.3g'%value It looks like changing it to something like %-12g would facilitate

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-05-30 Thread Xavier Gnata
John Hunter wrote: On Sat, May 30, 2009 at 11:52 AM, Eric Firing efir...@hawaii.edu wrote: No, that applies to the axis ticks but not to the readout, and I think it is the latter that Xavier is concerned with--at least that is what I have been talking about, and want to improve.

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-05-29 Thread Xavier Gnata
for y). But it would really be great to see your proposal as a standard. Greetings, David Original-Nachricht Datum: Sun, 24 May 2009 19:15:18 +0200 Von: Xavier Gnata xavier.gn...@gmail.com An: matplotlib-users@lists.sourceforge.net Betreff: [Matplotlib-users] x= / y

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-05-29 Thread Xavier Gnata
John Hunter wrote: On Fri, May 29, 2009 at 10:50 AM, Xavier Gnata xavier.gn...@gmail.com wrote: I had the same problem and fixed it by changing just two lines of code in the axes.py (line 1812 and 1814). Just change the formatter in 'self.xaxis.major.formatter.set_scientific(sb

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-05-29 Thread Xavier Gnata
However, everyone would be happy if the default format would be consistent : As it is, *by default*, when 1000 it displays an int and after 1000 it displays 1.42e3. Why? What do you think this scientific format is a good for? I understand some users would like to see floats by

[Matplotlib-users] x= / y= labels default format is wrong

2009-05-24 Thread Xavier Gnata
Hello all, I routinely work with images sizes [1000,1000]. There is a slight annoying problem whatever the backend I use: Pixels coordinates default format is wrong. It does not make sense to display x=1.42e+03,y=1.92e+03. Pixels coordinates should be formated *by default* as integers. Would

[Matplotlib-users] revision 7064 compile bug :

2009-04-24 Thread Xavier Gnata
Hi, I'm trying to compile revision 7064 on a fresh kubuntu 9.04 I get this error: g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functionsbuild/temp.linux-x86_64-2.6/src/agg_py_transforms.o build/temp.linux-x86_64-2.6/src/_gtkagg.obuild/temp.linux-x86_64-2.6/src/mplutils.o

Re: [Matplotlib-users] PyQt integration problem with the Navigation Toolbar

2009-03-27 Thread Xavier Gnata
Hello, I have a demo application integrating a dynamic mpl plot into a PyQt GUI. The plot is dynamic in the sense that the user can manipulate it through the use of the GUI's (PyQt) widgets and controls. The code is in: http://eli.thegreenplace.net/files/prog_code/qt_mpl_bars.py.txt Now,

Re: [Matplotlib-users] How to get the coordinates (picker)

2009-03-24 Thread Xavier Gnata
Christopher Brown wrote: Hi Xavier, XG I'm trying to write a pyqt4 application including pylab plotting XG capabilities. XG Up to now, it looks like this (see in attachment). XG XG The picker works fine (I get the msg) *but* I also would like to get XG the (x,y) coordinates and the the

Re: [Matplotlib-users] How to get the coordinates (picker)

2009-03-24 Thread Xavier Gnata
http://eli.thegreenplace.net/2009/01/20/matplotlib-with-pyqt-guis/ Once you have seen this example (+the picking), you are able do whatever you want ;) You have python, you have the best toolkit I konw (qt4 with qtdesigner) and you have a very nice way to plot 2D data. What else ;) Xavier I

[Matplotlib-users] How to get the coordinates (picker)

2009-03-22 Thread Xavier Gnata
Hi, I'm trying to write a pyqt4 application including pylab plotting capabilities. Up to now, it looks like this (see in attachment). The picker works fine (I get the msg) *but* I also would like to get the (x,y) coordinates and the the corresponding value A[x,y]. Could someone tell me what I

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread Xavier Gnata
John Hunter wrote: On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem [EMAIL PROTECTED] wrote: Hi this may be a known problem (didn't find anything on this issue) but here it is: - when I start a session with ipython -pylab I often get crashes with my session. When I mean often, it means

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Xavier Gnata
with Sphinx and/or docutils. Cheers, Mike Xavier Gnata wrote: Looks great but there are too many errors: http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=0 I'm not a geek and I do not care about w3c small warnings

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-16 Thread Xavier Gnata
Looks great but there are too many errors: http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=0 I'm not a geek and I do not care about w3c small warnings but it would be so nice to have a xhtml compliant website (as close

[Matplotlib-users] imshow + pixels values

2008-10-09 Thread Xavier Gnata
Hi, I can do everything I want with pylab (and even more :) ). I'm only missing one thing: I really would like to have one more option in imshow to get the pixel value of the pixel pointed by the cursor. The backends are showing X qnd Y coordinates. It is fine but I need also to look at the

[Matplotlib-users] pickup pixels values

2008-09-02 Thread Xavier Gnata
Hi, What is the best way to get the pixels values in addition to the pixel numbers when moving the mouse on on imhow display? It could be either on the fly (would be great) or on click. best way here means that the code can be quite complex but that it should be as simple as imshow from the

[Matplotlib-users] ttconv/truetype.h compile error using gcc-4.3

2008-05-01 Thread Xavier Gnata
Hi, Using gcc-4.3 I get this error : tconv/truetype.h:50: error: ISO C++ forbids declaration of ‘FILE’ with no type #include stdio.h is missing. Xavier - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference

Re: [Matplotlib-users] matplotlib/__init__.py : gs version parsing problem

2007-11-16 Thread Xavier Gnata
Darren Dale wrote: On Friday 16 November 2007 10:28:25 am Xavier Gnata wrote: Hi, Quoting matplotlib/__init__.py : def checkdep_ghostscript(): try: if sys.platform == 'win32': command = 'gswin32c -v' else: command = 'gs -v' stdin

[Matplotlib-users] matplotlib/__init__.py : gs version parsing problem

2007-11-16 Thread Xavier Gnata
:( -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

Re: [Matplotlib-users] How to set the colorbar ticks fontsize.

2007-09-05 Thread Xavier Gnata
Eric Firing wrote: Xavier Gnata wrote: Hi all, I looking for a way to modify the colorbar ticks font size. a=rand(100,100) imshow(a) colorbar() and then?? For instance, xticks(fontsize=20) works well to modify the ticks fontsize along the X-axis but colorbar(fontsize=20) does

[Matplotlib-users] How to set the colorbar ticks fontsize.

2007-09-04 Thread Xavier Gnata
-- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

[Matplotlib-users] imshow : text.py broken?

2007-09-03 Thread Xavier Gnata
. -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

Re: [Matplotlib-users] Broken qt backend.

2007-08-14 Thread Xavier Gnata
Darren Dale wrote: On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote: OK my matplotlibrc was out of date. Now it works but I have found another but playing with the sliders of the backend: As the log is quite long, here are only the most relevant parts : [...] It looks

Re: [Matplotlib-users] Broken qt backend.

2007-08-14 Thread Xavier Gnata
Darren Dale wrote: On Tuesday 14 August 2007 09:14:54 am Xavier Gnata wrote: Darren Dale wrote: On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote: OK my matplotlibrc was out of date. Now it works but I have found another but playing with the sliders of the backend

Re: [Matplotlib-users] Broken qt backend.

2007-08-12 Thread Xavier Gnata
Darren Dale wrote: On Saturday 11 August 2007 8:15:41 am Xavier Gnata wrote: Hi, Using pylab svn, the qt backend is broken. import pylab fails : /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qtagg.py 11 12 from backend_agg import FigureCanvasAgg --- 13 from

[Matplotlib-users] Broken qt backend.

2007-08-11 Thread Xavier Gnata
? What could I do to help to debug that? Xavier -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-09 Thread Xavier Gnata
with. As an aside, if you're looking to Gtk as a way around this, the Gtk backend uses the same rendering pipeline for text when text.usetex is True, so it likely will produce the same result. Cheers, Mie Michael Droettboom wrote: Xavier Gnata wrote: With a = ué I get no error

[Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
-- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
is that only the tk backend is fully functionnal on my box. HTe gtk one never shows the buttons (debian up to date sid). Xavier -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
Jouni K. Seppänen wrote: Xavier Gnata [EMAIL PROTECTED] writes: I'm a french user and I'm trying to put an 'é' into a pylab title. Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works. But is always fails using matplotlib.rc('text',usetex=True

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
of these encoding bugs in various backends that should probably be worked through. Cheers, Mike With a = ué I get no error but also nothing as a title. No strange characters. Nothing. Xavier -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue

[Matplotlib-users] GTKbackend : nothing but gray.

2007-08-07 Thread Xavier Gnata
to fix that but if someone wants me to test something to help to fix this problem... Xavier ps : I'm using interactive True and ipython on an up to date debian sid. -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis

[Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
is automagically added by the build script in a way I fail to understand reading quickly the sources. Anyway, there should be a simple solution to avoid this warning (gcc version 4.1.3)... Any comments? Xavier -- Xavier Gnata CRAL - Observatoire de

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
the distutils facilities to build the extension code. Unfortunately, it is not possible to add or remove compiler flags, distutils uses the same flags as Python when it was built. So this should probably be sent to the Python users ML. Matthieu 2007/7/23, Xavier Gnata [EMAIL PROTECTED

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
. So this should probably be sent to the Python users ML. Matthieu 2007/7/23, Xavier Gnata [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hi, It would be great to be able to compile matplotlib without a warning :) Unfortunately, I was not able to fix this warning

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
. Unfortunately, it is not possible to add or remove compiler flags, distutils uses the same flags as Python when it was built. So this should probably be sent to the Python users ML. Matthieu 2007/7/23, Xavier Gnata [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hi, It would be great

[Matplotlib-users] Warnings in Extensions.hxx

2007-05-18 Thread Xavier Gnata
20070514 (prerelease) (Debian 4.1.2-7) Any comments? Xavier -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

[Matplotlib-users] Calling matplotlib from C++ ?

2006-12-16 Thread Xavier Gnata
. -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

[Matplotlib-users] New matplotlibrc format?

2006-10-18 Thread Xavier Gnata
the new one? Thanks for your work on matplotlib, Xavier. -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED

Re: [Matplotlib-users] svn revision 2814 does not compile

2006-10-16 Thread Xavier Gnata
please apply this path? Xavier. Xavier == Xavier Gnata [EMAIL PROTECTED] writes: Xavier Hi, Matplotlib svn tree does not compile anymore since a Xavier few days : Have you upgraded your compiler recently? It compiles fine for me with an older version gcc --version