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

Skip to content

Commit 362d5f5

Browse files
committed
fixed install doc bug 2184682
svn path=/trunk/matplotlib/; revision=6290
1 parent 2695af5 commit 362d5f5

5 files changed

Lines changed: 16 additions & 12 deletions

File tree

doc/examples/gen_rst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def out_of_date(original, derived):
150150
contents = '\n'.join([' %s'%row.rstrip() for row in contents.split('\n')])
151151
fh.write(contents)
152152

153-
fh.write('\n\nKeywords: codex (see :ref:`how-to-search-examples`), python, matplotlib, pylab')
153+
fh.write('\n\nKeywords: python, matplotlib, pylab, example, codex (see :ref:`how-to-search-examples`)')
154154
fh.close()
155155

156156
fhsubdirIndex.close()

doc/faq/howto_faq.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pyplot::
431431

432432
.. _howto-show
433433
434-
Use :func:`~matplotlib.pyplot.show`
434+
Use :func:`~matplotlib.pyplot.show`
435435
------------------------------------------
436436

437437
The user interface backends need to start the GUI mainloop, and this
@@ -655,13 +655,13 @@ Search examples
655655
The nearly 300 code :ref:`examples-index` included with the matplotlib
656656
source distribution are full-text searchable from the :ref:`search`
657657
page, but sometimes when you search, you get a lot of results from the
658-
:ref:`api-index` or other documentation that you may not be interested in if
659-
you just want to find a complete, free-standing, working piece of
660-
example code. To facilitate example searches, we have tagged every
661-
page with the keyword ``codex`` for *code example* which shouldn't
662-
appear anywhere else on this site except in the FAQ and in every
663-
example. So if you want to search for an example that uses an ellipse,
664-
:ref:`search` for ``codex ellipse``.
658+
:ref:`api-index` or other documentation that you may not be interested
659+
in if you just want to find a complete, free-standing, working piece
660+
of example code. To facilitate example searches, we have tagged every
661+
code example page with the keyword ``codex`` for *code example* which
662+
shouldn't appear anywhere else on this site except in the FAQ and in
663+
every example. So if you want to search for an example that uses an
664+
ellipse, :ref:`search` for ``codex ellipse``.
665665

666666

667667

doc/users/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ functions, and is a requirement for matplotlib. You can test your
3939
progress::
4040

4141
>>> import numpy
42-
>>> print numpy.__versions__
42+
>>> print numpy.__version__
4343

4444
matplotlib requires numpy version 1.1 or later. Although it is not a
4545
requirement to use matplotlib, we strongly encourage you to install

examples/pylab_examples/date_demo1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ def price(x): return '$%1.2f'%x
4949
ax.fmt_ydata = price
5050
ax.grid(True)
5151

52+
fig.autofmt_xdate()
5253
show()

examples/pylab_examples/date_demo2.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
date1 = datetime.date( 2002, 1, 5 )
1515
date2 = datetime.date( 2003, 12, 1 )
1616

17-
mondays = WeekdayLocator(MONDAY) # every monday
18-
months = MonthLocator(range(1,13), bymonthday=1) # every month
17+
# every monday
18+
mondays = WeekdayLocator(MONDAY)
19+
20+
# every 3rd month
21+
months = MonthLocator(range(1,13), bymonthday=1, interval=3)
1922
monthsFmt = DateFormatter("%b '%y")
2023

2124

0 commit comments

Comments
 (0)