Support material for the blog post "Two-dimensional plots on Python [Part I]", on Programming Science.
Support material: http://www.github.com/programmingscience/code
In order to cite this material, please use the reference below (this is a Chicago-like style):
de Siqueira, Alexandre Fioravante. "Two-dimensional plots on Python [Part I]". Programming Science. 2014, Dec 20. Available at
http://www.programmingscience.org/?p=19.
Access date: (please put your access date here).
Copyright (C) Alexandre Fioravante de Siqueira
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
In [1]:
from pylab import *
In [2]:
t = arange(0.0, 2.0, 0.01)
y = sin(2*pi*t)
In [3]:
plot(t, y)
Out[3]:
In [4]:
xlabel('Time (s)')
ylabel('Voltage (mV)')
title('The simplest one, buddies')
Out[4]:
In [5]:
grid(True)
In [6]:
show()
In [ ]: