Я использую «ipython jupyter notebook». Мой вопрос:
Как добавить линии осей на график, т.е. у = 0 и х = 0:
%matplotlib inline
from numpy import *
from matplotlib.pyplot import *
nil=seterr(divide='ignore', invalid='ignore')
t = arange(-2, 2, 0.1)
y1 = exp(t)
y2 = exp(-t)
subplot(121)
title('y=exp(t)')
ylabel('y')
xlabel('t')
grid()
plot(t, y1, '-')
subplot(122)
title('y=exp(-t)')
ylabel('y')
xlabel('t')
grid()
plot(t, y2, '-')
show()
