Skip to content

Commit 8738c1c

Browse files
committed
Add what's new section
1 parent 88e299b commit 8738c1c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎doc/users/whats_new.rst‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ Features that depend on the Python Imaging Library, such as JPEG
3838
handling, do not work, since the version of PIL for Python 3.x is not
3939
sufficiently mature.
4040

41+
Object-oriented interface
42+
-------------------------
43+
44+
Damon McDougall has reduced some of the boilerplate code needed to interact
45+
with the object-oriented interface. Now a figure canvas is set up by default::
46+
47+
>>> from matplotlib.figure import Figure
48+
>>> fig = Figure()
49+
>>> ax = fig.add_subplot(1, 1, 1)
50+
>>> fig.savefig('figure.pdf')
51+
4152
PGF/TikZ backend
4253
----------------
4354
Peter Würtz wrote a backend that allows matplotlib to export figures as

0 commit comments

Comments
 (0)