@@ -4,8 +4,8 @@ Introduction
44
55matplotlib 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
99way. Although matplotlib is written primarily in pure Python, it
1010makes heavy use of `NumPy <http://www.numpy.org>`_ and other extension
1111code 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
1616instantiate objects, call methods, set properties, and so on; it
1717should 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
2121I began working with EEG data, I found that I needed to write
2222applications 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,
2424interacting 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
2626programming language, and decided to start over in Python. Python
2727more than makes up for all of matlab's deficiencies as a programming
2828language, but I was having difficulty finding a 2D plotting package
@@ -47,9 +47,9 @@ requirements:
4747Finding no package that suited me just right, I did what any
4848self-respecting Python programmer would do: rolled up my sleeves and
4949dived 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
5353quickly get up to steam plotting in python. From a developer's
5454perspective, having a fixed user interface (the pylab interface) has
5555been very useful, because the guts of the code base can be redesigned
@@ -58,7 +58,7 @@ without affecting user code.
5858The 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
6262frontend* or *matplotlib API* is the set of classes that do the heavy
6363lifting, creating and managing figures, text, lines, plots and so on.
6464This 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
7979matplotlib 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
0 commit comments