c
! www.simula.no/˜hpl
Adding plot featu res
#Matlabstylecommands:
setp(interactive=False)
surf(xv, yv, values)
shading(’flat’)
colorbar()
colormap(hot())
axis([-6,6,-6,6,-1.5,1.5])
view(35,45)
show()
#OptionalEasyviz(Pythonic)shortcut:
surf(xv, yv, values,
shading=’flat’,
colorbar=’on’,
colormap=hot(),
axis=[-6,6,-6,6,-1.5,1.5],
view=[35,45])
Numerical Python – p. 267/728
Kommentare zu diesen Handbüchern