Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread Michiel de Hoon
I haven't been able to replicate this bug. With all matplotlib versions I tried (including 0.99.0, 0.99.1., 0.99.1.1, 0.99.1.2, 1.0.0, and the current source code in svn), this example works correctly with the Mac OS X backend. Garry, what is the exact code that you are using? --Michiel. --- O

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-10 Thread Benjamin Root
On Wed, Nov 10, 2010 at 3:12 PM, unij wrote: > > I'm trying to use mplot3d in a Wx based application, and most things seem > to > be working fine. The one issue that keeps tripping me up is that the axes > labels are drawn at a weird angle. If I do the same type of plot without > using wx, then

Re: [Matplotlib-users] tick formatter - floating axis

2010-11-10 Thread Jae-Joon Lee
How do you want your ticklabels formatted? If axisartist does not provide a formatter that fits your need, you can create a custom formatter. Formatter for axisartist can be any callable object with following signature. def Formatter(direction, factor, values): # ... return list_of_string

[Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-10 Thread unij
I'm trying to use mplot3d in a Wx based application, and most things seem to be working fine. The one issue that keeps tripping me up is that the axes labels are drawn at a weird angle. If I do the same type of plot without using wx, then this problem goes away. I am completely stumped as to wh

Re: [Matplotlib-users] rotating markers

2010-11-10 Thread Christian Meesters
Thanks! Alas, this raises a NotImplementedError and although I'm still running version 0.99 of mpl, it seems like this is not yet implemented in the 'errorbar'-function to handle this - or am I mistaken? I won't find the time to implement this. Anyway, thanks again for your help. It would have be

[Matplotlib-users] Update values of errorbars

2010-11-10 Thread Gianfranco Durin
Dear mpl users, I have the following problem to solve. Imagine to have the simple example reported on website plotting the errorbars of some x,y data: #!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt # example data x = np.arange(0.1, 4, 0.5) y = np.exp(-x) # example vari

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Michael Droettboom
On 11/10/2010 10:41 AM, Benjamin Root wrote: On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee > wrote: On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout mailto:jason-s...@creativetrax.com>> wrote: > Is the tip of the arrow (after the miter join) supposed to

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 9:48 AM, Michiel de Hoon wrote: > Garry, if the bug still exists in matplotlib 1.0 could you open a bug report > for it? I think Gary doesn't have easy access to 1.0. Here is the relevant example if anyone has 1.0 on macosx to test with http://matplotlib.sourceforge.

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread Michiel de Hoon
Garry, if the bug still exists in matplotlib 1.0 could you open a bug report for it? Thanks, --Michiel. --- On Wed, 11/10/10, John Hunter wrote: > From: John Hunter > Subject: Re: [Matplotlib-users] python v ipython problem in imshow() > To: "Garry Willgoose" , "Michiel de Hoon" > > Cc: mat

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Benjamin Root
On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: > > Is the tip of the arrow (after the miter join) supposed to hit (1,1), or > is > > the center of the line supposed to hit (1,1)? Or maybe the tip of the > > joinstyle='round' arrow (th

Re: [Matplotlib-users] rotating markers

2010-11-10 Thread Benjamin Root
On Wed, Nov 10, 2010 at 7:44 AM, Christian Meesters < meest...@imbie.uni-bonn.de> wrote: > Hi, > > Honestly, I neglected my mpl skills lately, so I don't know whether docs > on this topic are available, but I couldn't find them either. > > I would like to create a forest plot using horizontal erro

[Matplotlib-users] rotating markers

2010-11-10 Thread Christian Meesters
Hi, Honestly, I neglected my mpl skills lately, so I don't know whether docs on this topic are available, but I couldn't find them either. I would like to create a forest plot using horizontal errorbars. Currently my marker is simply 'kd' in pylab.errorbar, where 'd' is similar to LaTeX's \blackl

Re: [Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread Mark Bakker
That works great. Never would have looked there. Thanks! Mark On Wed, Nov 10, 2010 at 2:27 PM, John Hunter wrote: > axes.unicode_minus : False -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper Dav

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 5:43 AM, Garry Willgoose wrote: > John, > > OK by looking at matplotlib.rcParams['backend'] I've been able to diagnose > this a little more. > > When the backend is  'WXAgg' everything looks fine. The axes have (0,0) where > you would expect and the data is plotted correc

Re: [Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 6:38 AM, Mark Bakker wrote: > I have a pretty wacky problem. > I create a figure which includes negative values along the y-axis: > plot([-1,1]) for example. > I save the figure as EPS. > When I look at the figure with preview on my Mac it looks fine. > When I import the f

[Matplotlib-users] tick formatter - floating axis

2010-11-10 Thread Stefan Mauerberger
Hello everyone, I have a question regarding the formatting of ticks in a curved coordinate system. To create my plots I am useing the mpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear() function. This works quite well but I have difficulties with formatting the axis. I am working in a p

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread Garry Willgoose
John, OK by looking at matplotlib.rcParams['backend'] I've been able to diagnose this a little more. When the backend is 'WXAgg' everything looks fine. The axes have (0,0) where you would expect and the data is plotted correctly. However, when the backend is 'MacOSX' the axes again have (0,0

[Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread Mark Bakker
Hello List, I have a pretty wacky problem. I create a figure which includes negative values along the y-axis: plot([-1,1]) for example. I save the figure as EPS. When I look at the figure with preview on my Mac it looks fine. When I import the figure in my Latex document the negative values disapp