[Matplotlib-users] confused about behavior inside and outside ipython

2010-10-06 Thread Collin Day
I have googled around and looked through the documents, but I can't seem to find a description of the difference between running a script inside and outside ipython (using ipython --pylab). For example, I tried doing the following in a script and made it executable. #!/usr/bin/python from __futu

Re: [Matplotlib-users] Problem with set_yticklabels

2010-10-06 Thread Jae-Joon Lee
With the current svn, the code works as expected. So, I guess this is an issue that has been fixed. Can you try something like below and see if this works? for tck in ax2.get_yticklabels(): tck.set_fontsize(34) Regards, -JJ On Wed, Oct 6, 2010 at 9:50 AM, Michael Lenander wrote: >

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 7:31 PM, Michael Cracraft wrote: > You are correct about the version. I was just working with the version > installed on Fedora 13, and the recache works. Looks like a working > solution for now. > > Thanks, > Michael > > Just as a side note because 'tis the season for Li

Re: [Matplotlib-users] Scatter Plot with different colors

2010-10-06 Thread Jae-Joon Lee
On Tue, Oct 5, 2010 at 11:07 PM, Alessio Civ wrote: > > Hi, > > I'm trying to make a scatter plot of 2 variables using a thirds as filter to > have different colors. > > Let's say I have those data: > > x=1,2,3,4 > y=2,3,4,5 > z=0,1,0,1 > > Then I want the values of x and y corresponding to those

Re: [Matplotlib-users] matplotlib server side with pdf backend

2010-10-06 Thread Jae-Joon Lee
The pdf backend rely on the "tell" method of a given file object, which (I think) is not supported by stdout. As a workaround, you may use StringIO. from cStringIO import StringIO outs = StringIO() plt.savefig(outs, format='pdf') print os.getvalue() Regards, -JJ On Fri, Oct 1, 2010 at 8:59 PM,

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
You are correct about the version. I was just working with the version installed on Fedora 13, and the recache works. Looks like a working solution for now. Thanks, Michael On Wed, Oct 6, 2010 at 8:18 PM, Jae-Joon Lee wrote: > I believe that you're using older version of mpl (<1.0) and this

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
I am running python 2.6.4 and matplotlib 0.99.1.1. I was using the TkAgg backend with my original problem, but I tried GTKAgg with the same result. Here are two sample codes. One works and the other does not. This one works ... plt.ion() x = np.arange(0,2*np.pi,0.01) y = np.sin(x) line, = plt.

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Jae-Joon Lee
I believe that you're using older version of mpl (<1.0) and this is a known issues, which has been fixed. http://sourceforge.net/tracker/?func=detail&aid=2917758&group_id=80706&atid=560720 Try to add L1.recache() after set_ydata. Regards, -JJ On Thu, Oct 7, 2010 at 3:06 AM, Michael Cracraf

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 1:06 PM, Michael Cracraft wrote: > I have a code that continuously modifies a numpy.ndarray variable. Then, I > use set_ydata on the matplotlib.lines.Line2D object to the same ndarray > variable. Then, I call fig.canvas.draw() to redraw the figure, where fig is > Figure o

Re: [Matplotlib-users] New Mac binary installer for Python 2.6; do we bother with Python 2.5?

2010-10-06 Thread Christopher Barker
Russell E. Owen wrote: > For now it is available here: > > though I hope it will end up on the official site at some point. > > I have not tested the wx back end and would be grateful if somebody had > time to do so. It seems to work for me o

Re: [Matplotlib-users] Graph

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 2:36 PM, Waléria Antunes David < waleriantu...@gmail.com> wrote: > Benjamin, > > I used the 'ax.set_xscale (' log ')', but the points were even more > confused. What I need is to increase from 0.0 to 0.2 points, 0.2 to 0.4 ... > increase the size of the graph. However I do n

[Matplotlib-users] New Mac binary installer for Python 2.6; do we bother with Python 2.5?

2010-10-06 Thread Russell E. Owen
I finally got hold of a Mac that can run 10.4 and was finally able to build a new binary installer for Python 2.6 (as well as one for PIL 1.1.7) is truly compatible with Mac OS X 10.3.9. For now it is available here: though I hope it will end

[Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
I have a code that continuously modifies a numpy.ndarray variable. Then, I use set_ydata on the matplotlib.lines.Line2D object to the same ndarray variable. Then, I call fig.canvas.draw() to redraw the figure, where fig is Figure object. However, the line on the graph never changes. I print a f

Re: [Matplotlib-users] Missing Toolbar Button inside Wx Application

2010-10-06 Thread Stan West
From: Sebastian Rhode [mailto:sebrh...@googlemail.com] Sent: Wednesday, September 29, 2010 13:02 if I plot an normal figure the toolbar contains an button (looks like a checkbox), which can be used to edit the lines and axes parameters. But when I embed such a figure in an Wx application, this s

Re: [Matplotlib-users] Graph

2010-10-06 Thread Friedrich Romstedt
2010/10/6 Waléria Antunes David : > I ploted a graph and above this graph I plot another graph about data > errors. You can do this in one step by using ax.errorbar() http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.errorbar . Try using fmt=',', this will plot pixels as th

Re: [Matplotlib-users] Graph

2010-10-06 Thread Alan G Isaac
On 10/6/2010 1:13 PM, Waléria Antunes David wrote: > the x-axis scale according with data errors only goes on 1.4, but I would > like to display up to 1.5. how I do that? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlim > I also want to increase the space between 0.0

Re: [Matplotlib-users] Graph

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 12:13 PM, Waléria Antunes David < waleriantu...@gmail.com> wrote: > Hi all, > > I ploted a graph and above this graph I plot another graph about data > errors. > so, the x-axis scale according with data errors only goes on 1.4, but I > would like to display up to 1.5. how I

Re: [Matplotlib-users] bug: axes.hitlist() ?

2010-10-06 Thread Ryan May
On Tue, Oct 5, 2010 at 11:39 PM, Daniel Hyams wrote: > > I've run across a strange problem and perhaps I'm misusing something.  I was > trying to set up picking so that I can interact with plotted objects, and I > get alot of error spew that looks like this: > > while checking > Traceback (most r

Re: [Matplotlib-users] Problem with show()

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 3:21 AM, Jorge Scandaliaris wrote: > Jorge Scandaliaris writes: > > > > I was running my example with the -pylab option set in ipython, and > adding a > > call to plt.ion() doesn't change things. I also run gtkagg backend. I > guess I > > have a problem with my installation

Re: [Matplotlib-users] bug: axes.hitlist() ?

2010-10-06 Thread Benjamin Root
On Tue, Oct 5, 2010 at 11:39 PM, Daniel Hyams wrote: > > I've run across a strange problem and perhaps I'm misusing something. I > was trying to set up picking so that I can interact with plotted objects, > and I get alot of error spew that looks like this: > > while checking > Traceback (most

Re: [Matplotlib-users] subplot grids with EPD

2010-10-06 Thread Robin
On Wed, Oct 6, 2010 at 10:31 AM, Jakub Nowacki wrote: > Hi, > > Personally I've tried to install Matplotlib 1.0.0 manually in EPD on Mac and > Linux. For some reason on Linux it went totally OK from the first try (just > had to define PREFIX correctly). On Mac I've tried to do the same but for > s

Re: [Matplotlib-users] Problem with show()

2010-10-06 Thread Jorge Scandaliaris
Jorge Scandaliaris writes: > > I was running my example with the -pylab option set in ipython, and adding a > call to plt.ion() doesn't change things. I also run gtkagg backend. I guess I > have a problem with my installation of matplotlib, unless this is something > that changed after mpl-1.0.