On Sat, Jan 17, 2009 at 17:19, Adam Mercer wrote:
> Hi
>
> I'm trying to track down an issue with the CocoaAgg backend on Mac OS
> X using MacPorts, when run with the CocoaAgg backend the following
> code:
Sorry, should have mentioned that this is with Matplotlib-0.98.5.2
using Mac OS X Leopard.
Hi
I'm trying to track down an issue with the CocoaAgg backend on Mac OS
X using MacPorts, when run with the CocoaAgg backend the following
code:
from pylab import *
import time
ion()
tstart = time.time()
x = arange(0,2*pi,0.01)
line, = plot(x,sin(x))
for i in arange(1,200):
line.set_ydata(
an ascii file formatted
> for
> human readability but it creates a lot of issues when I am trying to
> parse
> it. Here is a link to one of these files:
>
> ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20090117/bulls.t00z/akw.46001.bull
>
> Do you have any
On Fri, Jan 16, 2009 at 10:34 PM, Eric Firing wrote:
> antonv wrote:
>> Thanks for the quick reply John! Now it makes a lot more sense. The next dumb
>> question is what is SVN and where can I find more bout it?
>
> http://sourceforge.net/svn/?group_id=80706
> http://subversion.tigris.org/
See al
Someplace to start:
from matplotlib import cm
shade = cm.bone_r
cmstep = shade.N/len(vg_bulk) #TODO: even *more* elegant to space
colors by time elapsed
for ii in range(len(vg_bulk)):
hue = shade(ii*cmstep)
#convert to moles
for iii in (0,1,2):
Managed to solve the problem now.
David
David Trethewey wrote:
> I think I realised what I was doing wrong, I didn't have the imshow()
> call beforehand in my program:
>
> But using the code:
>
> cax = fig.add_axes([0.85, 0.1, 0.075, 0.8])
> a=outer(arange(0,1,0.01),ones(10))
> imsho
I think I realised what I was doing wrong, I didn't have the imshow()
call beforehand in my program:
But using the code:
cax = fig.add_axes([0.85, 0.1, 0.075, 0.8])
a=outer(arange(0,1,0.01),ones(10))
imshow(a,aspect='auto',cmap=cm.gray,origin='lower')
I get a set of axes from 0 to 1
I've been trying to add a colorbar to my figure and have used the
following code;
cax = axes([0.85, 0.1, 0.075, 0.8])
colorbar(cax=cax)
as a template (from
http://matplotlib.sourceforge.net/examples/pylab_examples/subplots_adjust.html)
However I get an error:
Traceback (most recent call last)