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

Skip to content

Commit cddb7f5

Browse files
committed
fixed inaxes event bug
svn path=/trunk/matplotlib/; revision=6517
1 parent 6f2cf43 commit cddb7f5

File tree

4 files changed

+70
-54
lines changed

4 files changed

+70
-54
lines changed

doc/_templates/gallery.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ <h3>Click on any image to see full size image and source code</h3>
5353

5454
<a href="examples/api/two_scales.html"><img src="_static/plot_directive/mpl_examples/api/thumbnails/two_scales.png" border="0" alt="two_scales"/></a>
5555

56+
<a href="examples/api/unicode_minus.html"><img src="_static/plot_directive/mpl_examples/api/thumbnails/unicode_minus.png" border="0" alt="unicode_minus"/></a>
57+
5658
<a href="examples/api/watermark_image.html"><img src="_static/plot_directive/mpl_examples/api/thumbnails/watermark_image.png" border="0" alt="watermark_image"/></a>
5759

5860
<a href="examples/api/watermark_text.html"><img src="_static/plot_directive/mpl_examples/api/thumbnails/watermark_text.png" border="0" alt="watermark_text"/></a>
@@ -217,8 +219,12 @@ <h3>Click on any image to see full size image and source code</h3>
217219

218220
<a href="examples/pylab_examples/errorbar_limits.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/errorbar_limits_01.png" border="0" alt="errorbar_limits"/></a>
219221

222+
<a href="examples/pylab_examples/fancyarrow_demo.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/fancyarrow_demo.png" border="0" alt="fancyarrow_demo"/></a>
223+
220224
<a href="examples/pylab_examples/fancybox_demo.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/fancybox_demo.png" border="0" alt="fancybox_demo"/></a>
221225

226+
<a href="examples/pylab_examples/fancybox_demo2.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/fancybox_demo2.png" border="0" alt="fancybox_demo2"/></a>
227+
222228
<a href="examples/pylab_examples/fancytextbox_demo.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/fancytextbox_demo.png" border="0" alt="fancytextbox_demo"/></a>
223229

224230
<a href="examples/pylab_examples/figimage_demo.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/figimage_demo.png" border="0" alt="figimage_demo"/></a>
@@ -333,6 +339,8 @@ <h3>Click on any image to see full size image and source code</h3>
333339

334340
<a href="examples/pylab_examples/legend_demo2.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/legend_demo2.png" border="0" alt="legend_demo2"/></a>
335341

342+
<a href="examples/pylab_examples/legend_demo3.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/legend_demo3.png" border="0" alt="legend_demo3"/></a>
343+
336344
<a href="examples/pylab_examples/legend_scatter.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/legend_scatter.png" border="0" alt="legend_scatter"/></a>
337345

338346
<a href="examples/pylab_examples/line_collection.html"><img src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/line_collection.png" border="0" alt="line_collection"/></a>

doc/users/mathtext.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ as follows::
143143
s(t) = \mathcal{A}\sin(2 \omega t)
144144
145145
Here "s" and "t" are variable in italics font (default), "sin" is in
146-
Roman font, and the amplitude "A" is in calligraphy font.
146+
Roman font, and the amplitude "A" is in calligraphy font. Note in the
147+
example above the caligraphy ``A`` is squished into the ``sin``. You
148+
can use a spacing command to add a little whitespace between them::
149+
150+
s(t) = \mathcal{A}\/\sin(2 \omega t)
151+
152+
.. math::
153+
154+
s(t) = \mathcal{A}\/\sin(2 \omega t)
147155
148156
The choices available with all fonts are:
149157

@@ -159,7 +167,7 @@ The choices available with all fonts are:
159167
.. role:: math-stix(math)
160168
:fontset: stix
161169

162-
When using the STIX fonts, you also have the choice of:
170+
When using the `STIX <http://www.aip.org/stixfonts/>`_ fonts, you also have the choice of:
163171

164172
====================================== =========================================
165173
Command Result

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def __init__(self, name, canvas, x, y,guiEvent=None):
758758

759759
if x is None or y is None:
760760
# cannot check if event was in axes if no x,y info
761-
self.inaxes = False
761+
self.inaxes = None
762762
self._update_enter_leave()
763763
return
764764

0 commit comments

Comments
 (0)