scipy, numpy and friends

13
EBI is an Outstation of the European Molecular Biology Laboratory. Scipy, Numpy and friends. Michele Mattioni - [email protected] CompNeur group. http://www.ebi.ac.uk/~mattioni/pylab_pres/ or https://github.com/mattions/pylab_pres

Upload: michele-mattioni

Post on 10-May-2015

3.226 views

Category:

Education


3 download

DESCRIPTION

Just a very quick intro to Numpy and friends. Very short.

TRANSCRIPT

Page 1: Scipy, numpy and friends

EBI is an Outstation of the European Molecular Biology Laboratory.

Scipy, Numpy and friends.

Michele Mattioni - [email protected] group.

http://www.ebi.ac.uk/~mattioni/pylab_pres/or https://github.com/mattions/pylab_pres

Page 2: Scipy, numpy and friends

Scipy, Numpy and friends by Michele Mattioni is licensed under CC BY-NC-SA 3.0.

Permissions beyond the scope of this license may be available at https://github.com/mattions.

Page 3: Scipy, numpy and friends

Go here:

http://www.ebi.ac.uk/~mattioni/pylab_pres/or

https://github.com/mattions/pylab_pres

Page 4: Scipy, numpy and friends

Scipy and Numpy - http://www.scipy.org

Collections of high level mathematical operations:- regression- interpolation- optimization- integration

Data structure for mathematical operation with speed in mind.

Page 5: Scipy, numpy and friends

Matplotlib - http://matplotlib.sourceforge.net/

- Display and plot you data quickly- Different kind of plot available

Page 6: Scipy, numpy and friends

Ipython - http://ipython.scipy.org

- Enhanced python console- Trials and errors encouraged- Quick access to the help.

Page 7: Scipy, numpy and friends

Plot of an exponential function

Page 8: Scipy, numpy and friends

Difference between Console and Script

Console

- Quick to write - Messy to maintain

Program

- Slower to write- Easier to maintain

Page 9: Scipy, numpy and friends

HELP!

Different ways to access help:

Console: name_of_the _function?Online: http://docs.scipy.org/doc/

Suggested:Tutorial http://www.scipy.org/Tentative_NumPy_Tutorial

Page 10: Scipy, numpy and friends

Numpy array

Page 11: Scipy, numpy and friends

Plotting

Page 12: Scipy, numpy and friends

Importing your data and visualize them

Page 13: Scipy, numpy and friends

Fitting the data