clf()
t=linspace(0,2*pi)

y=2*sin(t)
a=axes([0.1,0.1,0.8,0.8])
plot(t,y)
xlim(0,10)
ylim(-1,2)
xlabel('t')
ylabel('sin(t)')
setattr(a,'xcolor','b')

b=axes([0.8,0.8,0.2,0.2])
plot(t,y**2,'r')
setattr(b,'xcolor','g')
xlabel('t')
ylabel('(sin(t)^2')
#setattr(get(b,'xlabel'),'fontname','times')
c=axes([0.15,0.25,0.4,0.4])
polar(t,y/t)
polarch=get(gca)
plot(polarch,linewidth=3)

Kreyszig-6.14.1 (last edited 2010-12-18 10:18:40 by telugupraveenkumar)