Re: [Matplotlib-users] plot() not using alpha value from RGBA tuple

2011-08-16 Thread Eric Firing
On 07/25/2011 08:21 AM, Ben Breslauer wrote: I think that I have found the problem here. Line2D.draw() (and I presume other Artist subclasses) calls gc.set_foreground(self._color) ... gc.set_alpha(self._alpha) self._color is defined by the color kwarg, whether it be a hex value, 3-tuple,

[Matplotlib-users] How to set the data for an existing pcolormesh image?

2011-08-16 Thread Till Stensitzki
Hello, for a interactive gui program i want to change the shown data without changing the rest of the figure. For normal plots, there is a set_xdata/set_ydata methods. For QuadMesh, there is a set_array method, which i don't get to work. Thanks, Till

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-16 Thread Damon McDougall
Hi Jeff, I am able to run the tex_demo.py with no problems and I can create output files using the Agg backend. When I try to use the PDF backend, however, I get an error which stems from dviread.py (pasted below). Any thoughts on what could be going wrong? Thanks! Jeff Hi

Re: [Matplotlib-users] plot() not using alpha value from RGBA tuple

2011-08-16 Thread Vlastimil Brom
2011/8/16 Eric Firing efir...@hawaii.edu: On 07/25/2011 08:21 AM, Ben Breslauer wrote: I think that I have found the problem here.  Line2D.draw() (and I presume other Artist subclasses) calls gc.set_foreground(self._color) ... gc.set_alpha(self._alpha) self._color is defined by the color

[Matplotlib-users] finding the y coordinate at a particular x coordinate

2011-08-16 Thread gorge
Is there some way to determine the corresponding y coordinate of a shape (the edge of a circle for example) given an x coordinate of that shape? I know that for a circle there would be to 2 coordinates for each x coordinate, but I'm not actually plotting a whole circle, only a quarter of a

[Matplotlib-users] How to get correct xtick labels with zooming and panning

2011-08-16 Thread Fiedler, Lars - 0447 - MITLL
Hi, If I create a bar graph inside a FigureCanvas, how do I get the correct x tick labels to display when someone does a zoom with the NavigationToolbar? For example, lets say I've got the below code: self.axes.set_xticks = range(len(vals))

Re: [Matplotlib-users] OS X 10.6.8 macports python2.6 64bit , Installing matplotlib fails.

2011-08-16 Thread David Just
I eventually got it to mostly work using: ³sudo port install py26-matplotlib @1.0.1 +gtk2² It doesn't match the correct egg format it seems, but it does work. On 8/10/11 11:01 AM, David Just just.da...@mayo.edu wrote: Hello, I¹ve been trying to install matplotlib correctly for the past

[Matplotlib-users] first steps with matplotlib

2011-08-16 Thread awalter1
Hello, I begin with matplotlib and I draw volume is a 3D view. It runs acoorectly but some behavior are not understood. Here is my source code: fig = plt.figure() ax = Axes3D(fig) print long =,self.onevolume['long']

[Matplotlib-users] Best way to cycle through numpy images using scroll?

2011-08-16 Thread David Just
I have an array of images stored as an array of numpy arrays. I need to be able to efficiently scroll through that set of images. My first attempt at doing this goes something like this: --init-- self.ax = pyplot.imshow(imgdta[0], interpolation='spline36', cmap=cm.gray, picker=True)

[Matplotlib-users] OS X 10.6.8 macports python2.6 64bit , Installing matplotlib fails.

2011-08-16 Thread David Just
Hello, I¹ve been trying to install matplotlib correctly for the past couple of days. I¹m using a macports python2.6 built with +universal on. If I install with the the downloadable .egg file I end up with a message that states that _path.so has problems. (built for 32bit I guess) ImportError:

Re: [Matplotlib-users] Bus error when using logarithmic scale with logaritmic bins

2011-08-16 Thread Marc Magrans de Abril
Hi Ben, I will try to do it. Once it is done I let you know. Cheers, marc On Wed, Aug 10, 2011 at 7:41 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Aug 10, 2011 at 12:32 PM, Marc Magrans de Abril marcmagransdeab...@gmail.com wrote: Dear colleagues, I'm trying to display an

Re: [Matplotlib-users] Window appears, no graph drawn Fw: Plot show() errors, Mac OS 10.6

2011-08-16 Thread Paradoxdruid
I just wanted to add that I'm getting the exact same error. On a fresh, new iMac running 10.6.8, I installed ActivePython 2.6, along with matplotlib for 2.6 on OSX. Running example code from the matplotlib website, I get the same error-- the window appears with the resizing tools but otherwise

[Matplotlib-users] Plotting arrows in a wxPython frame

2011-08-16 Thread lueck
Hello! I'm using matplotlib in my wx.Frame to draw some arrows and text at a certain position. The number and position of the arrows is based on previously created data. I do some calculations but basically it's like this: arrow = primer for each primer: draw one arrow at position y - 0.05 to

[Matplotlib-users] Bus error when using logarithmic scale with logaritmic bins

2011-08-16 Thread Marc Magrans de Abril
Dear colleagues, I'm trying to display an histogram with logarithmic bins using the logarithmic scale in the x-axis. When I execute the attached python script it crashes giving a Bus Error message (see also the attached core dump). If I remove the line plt.xscale('log') the script goes up to the

[Matplotlib-users] absolute error of curve fit parameters

2011-08-16 Thread 4ndre
Hi, I'm a little bit desperated. I googled for days to find an appropriate way to calculate the absolute errors of parameters of non-linear fits. I found different sites which suggest different, sometimes more or less similar ways. But the results don't make sense. Here is a simple example:

Re: [Matplotlib-users] How to get correct xtick labels with zooming and panning

2011-08-16 Thread Fiedler, Lars - 0447 - MITLL
I ended up creating a wrapper around the toolbar and resetting the labels and redrawing whenever something changes. Is there a cleaner way? class WrappedNavigationToolbar(NavigationToolbar): def __init__(self, viewer, canvas, parent): self.viewer = viewer

Re: [Matplotlib-users] absolute error of curve fit parameters

2011-08-16 Thread Benjamin Root
On Tue, Aug 16, 2011 at 2:15 AM, 4ndre andre.dank...@gmail.com wrote: Hi, I'm a little bit desperated. I googled for days to find an appropriate way to calculate the absolute errors of parameters of non-linear fits. I found different sites which suggest different, sometimes more or less

[Matplotlib-users] Key_press_event with Qt4Agg backend

2011-08-16 Thread Andrew Mark
I've been trying the Qt4Agg backend for matplotlib and I've encountered two problems. The following code illustrates the issues: import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt plt.ion() plt.plot([1,2,3]) canvas=plt.gcf().canvas def on_key(event): print 'you

[Matplotlib-users] adding custom legends to multicolored line

2011-08-16 Thread Ravi Kanth Vanapalli
Hi , I wish to add a custom legend to a multicolored line drawn using matplotlib as shown in the figure below http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine I tried exploring the legend but somehow couldn't figure out its usage and how to adapt it to multicolored line as in the above

Re: [Matplotlib-users] [matplotlib-devel] Calling all Mac OSX users!

2011-08-16 Thread John Hunter
On Mon, Aug 15, 2011 at 9:34 PM, Benjamin Root ben.r...@ou.edu wrote: The mpl developers are getting very close to the long-awaited v1.1.0 release of matplotlib.  Before we do so, we are doing some final checking of the documentation to make sure that all critical pieces of information iss

[Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-16 Thread Jonathan Slavin
Hi all, I've been making figures for a paper I'm writing (to be submitted to the ApJ). I'm using LaTeX and so need to use encapsulated PostScript for the figures. The problem is that when the paper is translated to pdf from PostScript, the mathtext in the figures disappears. The reason that I

Re: [Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-16 Thread Damon McDougall
Hi all, I've been making figures for a paper I'm writing (to be submitted to the ApJ). I'm using LaTeX and so need to use encapsulated PostScript for the figures. The problem is that when the paper is translated to pdf from PostScript, the mathtext in the figures disappears. The reason

[Matplotlib-users] errorbar plot with different markers

2011-08-16 Thread Andre' Walker-Loud
Hi All, A question for a possible new feature for Matplotlib. First, in case there is a way to do it currently: I often find myself plotting data with errorbars, and I would like to be able to modify the marker, or marker size of each individual point separately. A (seemingly to me) natural

Re: [Matplotlib-users] plot() not using alpha value from RGBA tuple

2011-08-16 Thread Ben Breslauer
On Tue, Aug 16, 2011 at 12:22 AM, Benjamin Root ben.r...@ou.edu wrote: On Monday, August 15, 2011, Ben Breslauer bbresla...@gmail.com wrote: Hi, Has anyone else noticed this behavior? For the devs, do you prefer a github bug to the SF list? Ben I have not personally observed

Re: [Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-16 Thread Jae-Joon Lee
Can you post an output eps file so that we can take a look? Regards, -JJ On Wed, Aug 17, 2011 at 5:52 AM, Jonathan Slavin jsla...@cfa.harvard.edu wrote: Hi all, I've been making figures for a paper I'm writing (to be submitted to the ApJ).  I'm using LaTeX and so need to use encapsulated