Hi
fm.py
Description: Binary data
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
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
>> 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 on
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
Eric Firing wrote:
> Xavier Gnata 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 n
uot;g")
> ax.plot(t[where(s<0)],s[where(s<0)],"r")
>
> or, shorter:
>
> ax.plot(t[s>=0],s[s>=0],"g")
> ax.plot(t[s<0],s[s<0],"r")
>
> cheers
>
> Thomas
>
>
>
> Xavier Gnata-2 wrote:
>
>> Hi,
>>
Hi,
I woud like to draw a vector field using pylab.
quivert looks nice but it sould not scale the arrows to fit my use-case.
quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the
arrow is not at (1.2,1.2).
Is there a way to plot a list of arrows *without* any scaling?
Xavier
--
les='xy', scale_units='xy', scale=1)
>
> Hope that helps :)
>
>
> Regards,
> -- Damon
>
> --
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.mcdoug...@warwick.ac.uk
>
>
ee
> the whole arrow.
>
>
> Regards,
> -- Damon
>
> ------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.mcdoug...@warwick.ac.uk
>
> On 22 Nov 2009, at 21:34, Xavier Gnata wrote:
>
>
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 ()
> 1
2
3 from matplotlib.pylab import *
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
>
> --
> Le
Hi,
I'm using the TkAgg backend. It is nice and fine except one issue:
Here is a trivial testcase:
import pylab
import numpy
M=numpy.zeros((2000,2000))
pylab.imshow(M)
The cursor position is displayed this way: x=1.23e03 y=1.72e03 (in right
corner of the window)
It should be formated as inter
John Hunter wrote:
> On Sat, Aug 30, 2008 at 4:13 PM, Xavier Gnata <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I'm using the TkAgg backend. It is nice and fine except one issue:
>>
>> Here is a trivial testcase:
>>
>> import pylab
>>
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 e
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 pix
Looks great but there are too many errors:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=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 clo
this nature on other pages, please file bugs 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%2F&charset=(detect+a
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 "
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 sho
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 an
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 hop
> 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
>
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
build/temp.linux-x86_
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
to whatever you want (the
> same 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 > An:
John Hunter wrote:
> On Fri, May 29, 2009 at 10:50 AM, Xavier Gnata 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.form
>
>>
>> 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 se
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'
John Hunter wrote:
> On Sat, May 30, 2009 at 11:52 AM, Eric Firing 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.
>>
>
> Just to
John Hunter wrote:
> On Sat, May 30, 2009 at 6:46 PM, Eric Firing 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 interactive backend
>> 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
> http://mat
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...
>>>>
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 Nor
Eric Firing wrote:
> Xavier Gnata wrote:
>> 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
>>
>>
>
On 09/21/2010 04:13 PM, Ryan May wrote:
> On Tue, Sep 21, 2010 at 8:22 AM, A. S. Budden 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 fact,
On 09/25/2010 12:02 AM, Fernando Perez wrote:
> On Fri, Sep 24, 2010 at 2:54 PM, Ryan May 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
> experimenta
which backend should we use?
It does not work with pyqt4
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
from matplotlib.pylab import *
File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
lin
On 01/03/2011 05:29 PM, Ryan May wrote:
> On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale wrote:
>> On Mon, Jan 3, 2011 at 9:45 AM, Ryan May wrote:
>>> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata
>>> wrote:
>>>> "/usr/local/lib/python3.1/dist-packages/
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 p
On 03/20/2011 07:19 PM, Darren Dale wrote:
> On Sun, Mar 20, 2011 at 2:08 PM, Xavier Gnata wrote:
>> Hi,
>>
>> It looks like the
>> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/
>> in dead.
>> The last commit was 8months ago.
>&g
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, 0.
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 matplot
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 Enterprise
On 06/13/2011 07:38 PM, Darren Dale wrote:
> On Mon, Jun 13, 2011 at 12:25 PM, Michael Droettboom 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 (which w
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
-DPYCXX
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 curve
Christopher Barker wrote:
> yardbird wrote:
>
>> On Saturday 16 December 2006 19:42, Xavier Gnata wrote:
>>
>
>
>>> Each time I'm working on C++ codes using vector or valarray, I would
>>> like to be able to plot them.
>>>
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
;
It looks like this option 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
CR
tlib uses 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
>
> 2
e 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]&
t;
>> Hi,
>>
>> Matplotlib uses 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
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 86 85
ange(128)
>
> Is it a bug or a I doing something wrong? I'm using up to date pylab svn
> with the tk backend.
>
> The prolem 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
>
>
-
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
obably a few 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 stra
to try 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é
69
haracters.
>>>
>>> Cheers,
>>> Mike
>>>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
It is a well known problem ?
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-mai
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.
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
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
d both Tk and GTKagg backends with the same result.
Xavier.
--
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4
--
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
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 mo
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':
>>
like -v or --version) on *unix to get
the version *number*?? Only the version number. Why :(
--
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint
Hi,
Using gcc-4.3 I get this error :
tconv/truetype.h:50: error: ISO C++ forbids declaration of ‘FILE’ with
no type
#include is missing.
Xavier
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't m
extensions.o -DNUMARRAY=1" failed with
exit status 1
gcc -v : gcc version 4.1.2
Am I missing something?
Xavier.
--
########
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +3
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
ibution
Where can we get 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
mbers.
--
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 PROT
72 matches
Mail list logo