background preloader

Python

Facebook Twitter

Sage - French. Sign in -- Sage. Débuter avec Python au lycée. Débuter avec matplotlib — Débuter avec matplotlib 1.0 documentation. J'apprends python. Matplotlib tutorial. Sources are available here. Figures are in the figures directory and all scripts are located in the scripts directory. Github repository is here Many thanks to Bill Wing and Christoph Deil for review and corrections. matplotlib is probably the single most used Python package for 2D-graphics. It provides both a very quick way to visualize data from Python and publication-quality figures in many formats. We are going to explore matplotlib in interactive mode covering most common cases.

IPython and the pylab mode IPython is an enhanced interactive Python shell that has lots of interesting features including named inputs and outputs, access to shell commands, improved debugging and many more. Pylab pylab provides a procedural interface to the matplotlib object-oriented plotting library. In this section, we want to draw the cosine and sine functions on the same plot. First step is to get the data for the sine and cosine functions: $ ipython --pylab This brings us to the IPython prompt: Figures Axes.