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
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
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))
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):
On Fri, Jan 16, 2009 at 10:34 PM, Eric Firing efir...@hawaii.edu 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
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 idea on how to extract the data there in columns for
plotting with matplotlib
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):