Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5408064

Browse files
committed
experimenting with including api docs
svn path=/trunk/matplotlib/; revision=5236
1 parent 9ce0886 commit 5408064

4 files changed

Lines changed: 20 additions & 23 deletions

File tree

doc/users_guide/artist_api_tut.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**************
1+
***************
22
Artist tutorial
33
***************
44

doc/users_guide/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Matplotlib
1212

1313
users_guide
1414
developers_guide
15+
api

doc/users_guide/introduction.txt

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Introduction
44

55
matplotlib is a library for making 2D plots of arrays in `Python
66
<http://www.python.org>`_. Although it has its origins in emulating
7-
the `MATLAB™ <http://www.mathworks.com>`_ graphics commands, it does
8-
not require MATLAB, and can be used in a Pythonic, object oriented
7+
the `Matlab (TM) <http://www.mathworks.com>`_ graphics commands, it does
8+
not require MATLAB (TM), and can be used in a Pythonic, object oriented
99
way. Although matplotlib is written primarily in pure Python, it
1010
makes heavy use of `NumPy <http://www.numpy.org>`_ and other extension
1111
code to provide good performance even for large arrays.
@@ -16,13 +16,13 @@ want to see a histogram of your data, you shouldn't need to
1616
instantiate objects, call methods, set properties, and so on; it
1717
should just work.
1818

19-
For years, I used to use MATLAB exclusively for data analysis and
20-
visualization. MATLAB™ excels at making nice looking plots easy. When
19+
For years, I used to use MATLAB exclusively for data analysis and
20+
visualization. Matlab excels at making nice looking plots easy. When
2121
I began working with EEG data, I found that I needed to write
2222
applications to interact with my data, and developed and EEG analysis
23-
application in MATLAB™. As the application grew in complexity,
23+
application in Matlab. As the application grew in complexity,
2424
interacting with databases, http servers, manipulating complex data
25-
structures, I began to strain against the limitations of MATLAB™ as a
25+
structures, I began to strain against the limitations of Matlab as a
2626
programming language, and decided to start over in Python. Python
2727
more than makes up for all of matlab's deficiencies as a programming
2828
language, but I was having difficulty finding a 2D plotting package
@@ -47,9 +47,9 @@ requirements:
4747
Finding no package that suited me just right, I did what any
4848
self-respecting Python programmer would do: rolled up my sleeves and
4949
dived in. Not having any real experience with computer graphics, I
50-
decided to emulate MATLAB™'s plotting capabilities because that is
51-
something MATLAB™ does very well. This had the added advantage that
52-
many people have a lot of MATLAB™ experience, and thus they can
50+
decided to emulate Matlab's plotting capabilities because that is
51+
something Matlab does very well. This had the added advantage that
52+
many people have a lot of Matlab experience, and thus they can
5353
quickly get up to steam plotting in python. From a developer's
5454
perspective, having a fixed user interface (the pylab interface) has
5555
been very useful, because the guts of the code base can be redesigned
@@ -58,7 +58,7 @@ without affecting user code.
5858
The matplotlib code is conceptually divided into three parts: the
5959
*pylab interface* is the set of functions provided by
6060
:mod:`matplotlib.pylab` which allow the user to create plots with code
61-
quite similar to MATLAB™ figure generating code. The *matplotlib
61+
quite similar to Matlab figure generating code. The *matplotlib
6262
frontend* or *matplotlib API* is the set of classes that do the heavy
6363
lifting, creating and managing figures, text, lines, plots and so on.
6464
This is an abstract interface that knows nothing about output. The
@@ -77,17 +77,12 @@ and embed it a Gtk+ application, and so on for `PDF
7777
<http://docs.python.org/lib/module-Tkinter.html>`_ etc.
7878

7979
matplotlib is used by many people in many different contexts. Some
80-
people want to automatically generate PostScript® files to send to a
81-
printer or publishers. Others deploy matplotlib on a web application
82-
server to generate PNG output for inclusion in dynamically-generated
83-
web pages. Some use matplotlib interactively from the Python shell in
84-
Tkinter on Windows®. My primary use is to embed matplotlib in a Gtk+
85-
EEG application that runs on Windows, Linux and Macintosh OS X.
80+
people want to automatically generate PostScript® files to send
81+
to a printer or publishers. Others deploy matplotlib on a web
82+
application server to generate PNG output for inclusion in
83+
dynamically-generated web pages. Some use matplotlib interactively
84+
from the Python shell in Tkinter on Windows (TM) My primary use is to
85+
embed matplotlib in a Gtk+ EEG application that runs on Windows, Linux
86+
and Macintosh OS X.
8687

87-
Because there are so many ways people want to use a plotting library,
88-
there is a certain amount of complexity inherent in configuring the
89-
library so that it will work naturally the way you want it to. Before
90-
diving into these details, let's first explore matplotlib's simplicity
91-
by comparing a typical matplotlib script with its analog in MATLAB™.
9288

93-
--- JDH

doc/users_guide/users_guide.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ User's Guide
1313
customizing
1414
artist_api_tut
1515
event_handling_tut
16+

0 commit comments

Comments
 (0)