Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-04 Thread Lynn Oliver
I don't know about changing backends, but I do need to use TkAgg. I finally got it working. The instructions from the original email below are what worked, but first I had to uninstall Tcl8.6 (manually). The first time I tried it I deleted something that I shouldn't have, and ended up with a m

[Matplotlib-users] Unexpected behavior with axes.twinx + pyplot.xticks

2011-09-04 Thread Ryan Nelson
Hello all, I noticed some unusual behavior with specific combinations of axes.twinx and pyplot.xticks. It seems that under certain conditions, the pyplot.xticks command can cause an x offset of the plots. Here's a relatively short example (as written, this works fine): import numpy as np import m

Re: [Matplotlib-users] order of plotting for 'layer' of data

2011-09-04 Thread Ryan Nelson
Rob, Have you tried the zorder argument. It is an integer that controls the relative 'height' of a plotting element: higher numbers are plotted over lower numbers. For example, the following code plots the scatter points on top of the plotted line (even though scatter was called first): import nu

Re: [Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Eric Firing
On 09/04/2011 12:08 PM, Adam Davis wrote: > Eric, > > Thank you for the reply. > > Yes, eliminating sharex and sharey does solve that problem. But then my > plot axes (which are scatter plots of each orthogonal view of a vector > space) are not correspondingly scaled. > > Is there a way to: > > - f

Re: [Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Adam Davis
Eric, Thank you for the reply. Yes, eliminating sharex and sharey does solve that problem. But then my plot axes (which are scatter plots of each orthogonal view of a vector space) are not correspondingly scaled. Is there a way to: - force scaling across specified axes without using sharex/y (a

Re: [Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Eric Firing
On 09/04/2011 11:12 AM, Adam Davis wrote: > I have a figure with a number of plots that analyze a source image. I > wish to show the plots along side the image. Unfortunately whichever > method I call last clobbers (leaves blank axes) for the previously > called method. > > To illustrate: > > fig,

[Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Adam Davis
I have a figure with a number of plots that analyze a source image. I wish to show the plots along side the image. Unfortunately whichever method I call last clobbers (leaves blank axes) for the previously called method. To illustrate: fig, axs = pylab.subplots(10, 4, sharex=True, sharey=True) f

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-04 Thread Neal Becker
surfcast23 wrote: > > I am fairly new to programing and have a question regarding matplotlib. I > wrote a python script that reads in data from the outfile of another program > then prints out the data from one column. > > f = open( 'myfile.txt','r') > for line in f: > if line != ' ': > line =

Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-04 Thread Michiel de Hoon
What happens if you use the MacOSX backend instead of TkAgg? Or do you have to use TkAgg? --Michiel. --- On Sun, 9/4/11, Lynn Oliver wrote: From: Lynn Oliver Subject: Re: [Matplotlib-users] problems installing matplotlib on OS X Lion To: "Bryan K Woods" Cc: "matplotlib-users@lists.sourceforg

Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-04 Thread Michiel de Hoon
What happens if you use the MacOSX backend instead of TkAgg? Or do you have to use TkAgg? --Michiel. --- On Sun, 9/4/11, Lynn Oliver wrote: From: Lynn Oliver Subject: Re: [Matplotlib-users] problems installing matplotlib on OS X Lion To: "Bryan K Woods" Cc: "matplotlib-users@lists.sourceforg

Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-04 Thread Lynn Oliver
Bryan, thanks for the response. I installed macports and the environment settings seem to be correct, but when I try "port help selfupdate" I get: /opt/local/bin/port: line 4: /usr/bin/tclsh: No such file or directory /opt/local/bin/port: line 4: exec: /usr/bin/tclsh: cannot execute: No such file