[Matplotlib-users] Marker positioning accuracy

2009-07-30 Thread João Luís Silva
The positioning of markers seems a bit off, especially when a line is moved around with the pan and zoom tool. They don't follow the line they are in, and seem to follow a much lower resolution line. Try the following example, and use the pan and zoom tool to move the lines around. mpl svn rev

Re: [Matplotlib-users] ImportError: No module named _backend_gdk

2009-07-30 Thread Dong, Hanwu
I also use matplotlib-0.98.5.3.win32-py2.6.exe. It was built without gtk. You have to build your own binaries with gtk support. Or find compiled package (by Christoph Gohlke) with gtk support here: http://www.lfd.uci.edu/~gohlke/#pythonlibs and original information is here: http://www.nabble.com

Re: [Matplotlib-users] Design questions

2009-07-30 Thread Gewton Jhames
Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: > Guys, there is the code. > On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames wrote: > >> Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. >> >> On Mon, Jul 27, 2009 at 7:00 PM, Jae-Joon Lee wrote: >> >>> On Mon

Re: [Matplotlib-users] Include icon in plot

2009-07-30 Thread Bas van Leeuwen
Hi JJ, Thank you for your kind and speedy reply, I completely glanced over the extent parameter. Datacoords are actually what I need so this is perfect for me. To clarify what I want, I want to mark certain parts of a graph with an icon representing the reason it's interesting. Icons are for peak

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Eric Firing
Jae-Joon Lee wrote: > I don't think there is any user-visible support for registering a > custom colormap. Now there is: svn r7309. Its use is illustrated via a modification of examples/pylab_examples/custom_cmap.py. With just a little more work, we could make it so that anything taking a "cma

[Matplotlib-users] ImportError: No module named _backend_gdk

2009-07-30 Thread Sebastian Pająk
Hello I don't know why, but after switching from python2.5 to python2.6 I cannot even launch matplotlib (matplotlib-0.98.5.3.win32-py2.6.exe). This is what I get: Traceback (most recent call last): File "", line 1, in File "D:\msys\opt\python\lib\site-packages\pylab.py", line 1, in from

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Eric Firing
Jae-Joon Lee wrote: > I don't think there is any user-visible support for registering a > custom colormap. I have it almost done; I will commit it shortly. Eric > However, it seems to me that adding the colormap to > matplotlib.cm.datad distionary is enough. > Note that the value need to be a di

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Jae-Joon Lee
I don't think there is any user-visible support for registering a custom colormap. However, it seems to me that adding the colormap to matplotlib.cm.datad distionary is enough. Note that the value need to be a dictionary of RGB specification, not the actual colormap instance. for example, mycolor

Re: [Matplotlib-users] Include icon in plot

2009-07-30 Thread Jae-Joon Lee
The location of the image can be set by specifying the "extent" keyword, however, this is set in data coordinate. figimage may be close to what you want. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.figimage As far as I know, there is no direct support in matplotlib to

[Matplotlib-users] Include icon in plot

2009-07-30 Thread Bas van Leeuwen
Hi all, Is there any way to annotate a plot with icons? The only way to include an image that I've found is using imshow, but imshow does not accept (x,y) coordinates. There probably is an easy solution, but I have not been able to find any. Please be patient :-) Thank you in advance for your re

Re: [Matplotlib-users] Can't find the module axes_grid in mpl_toolkits

2009-07-30 Thread Michael Droettboom
axes_grid is only available in the SVN version. It has not been released yet, so therefore is not part of packages like Python(X, Y). Mike Sahar wrote: > Hi all, > > I try to run an example with the line: /from mpl_toolkits.axes_grid > import Divider/ > and I get the massage:

[Matplotlib-users] Can't find the module axes_grid in mpl_toolkits

2009-07-30 Thread Sahar
Hi all, I try to run an example with the line: from mpl_toolkits.axes_grid import Divider and I get the massage: No module named axes_grid It is possible to import mpl_toolkits but this module and others are missing. I work with Python(X,Y) so maybe it is some versions\insta

[Matplotlib-users] Fwd: Annotate with icon

2009-07-30 Thread Bas van Leeuwen
Hi all, Is there any way to annotate a plot with icons? The only way to include an image that I've found is using imshow, but imshow does not accept (x,y) coordinates. There probably is an easy solution, but I have not been able to find any. Please be patient :-) Thank you in advance for your re

[Matplotlib-users] Annotate with icon

2009-07-30 Thread Bas van Leeuwen
Hi all, Is there any way to annotate a plot with icons? The only way to include an image that I've found is using imshow, but imshow does not accept (x,y) coordinates. There probably is an easy solution, but I have not been able to find any. Please be patient :-) Thank you in advance for your re

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Philipp Lies
Does no one have an idea? If not, this is a severe usability bug! Philipp Lies wrote: > > Hi, > > I just created a hsv-like color map with gray levels only, now I'd like to > use this as default color map. But how? Calling it like hsv() does not > work and I did not find a hint in the documenta