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

Skip to content

Commit e489005

Browse files
committed
Merge branch 'v2.x' into master
2 parents e24322c + 7e44d70 commit e489005

6 files changed

Lines changed: 67 additions & 25 deletions

File tree

LICENSE/LICENSE.PIL

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Software License
2+
3+
The Python Imaging Library (PIL) is
4+
5+
Copyright © 1997-2011 by Secret Labs AB
6+
Copyright © 1995-2011 by Fredrik Lundh
7+
8+
By obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read, understood, and will comply with the following terms and conditions:
9+
10+
Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.
11+
12+
SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

lib/matplotlib/axes/_axes.py

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,22 +3245,26 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
32453245
32463246
Other Parameters
32473247
----------------
3248-
The following boolean options toggle the drawing of individual
3249-
components of the boxplots:
3250-
- showcaps: the caps on the ends of whiskers
3251-
(default is True)
3252-
- showbox: the central box (default is True)
3253-
- showfliers: the outliers beyond the caps (default is True)
3254-
- showmeans: the arithmetic means (default is False)
3255-
3256-
The remaining options can accept dictionaries that specify the
3257-
style of the individual artists:
3258-
- capprops
3259-
- boxprops
3260-
- whiskerprops
3261-
- flierprops
3262-
- medianprops
3263-
- meanprops
3248+
showcaps : bool, optional (True)
3249+
Show the caps on the ends of whiskers.
3250+
showbox : bool, optional (True)
3251+
Show the central box.
3252+
showfliers : bool, optional (True)
3253+
Show the outliers beyond the caps.
3254+
showmeans : bool, optional (False)
3255+
Show the arithmetic means.
3256+
capprops : dict, optional (None)
3257+
Specifies the style of the caps.
3258+
boxprops : dict, optional (None)
3259+
Specifies the style of the box.
3260+
whiskerprops : dict, optional (None)
3261+
Specifies the style of the whiskers.
3262+
flierprops : dict, optional (None)
3263+
Specifies the style of the fliers.
3264+
medianprops : dict, optional (None)
3265+
Specifies the style of the median.
3266+
meanprops : dict, optional (None)
3267+
Specifies the style of the mean.
32643268
32653269
Returns
32663270
-------

lib/matplotlib/patches.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,8 @@ def set_linewidth(self, w):
372372
self._linewidth = float(w)
373373
# scale the dash pattern by the linewidth
374374
offset, ls = self._us_dashes
375-
self._dashes = mlines._scale_dashes(offset,
376-
ls,
377-
self._linewidth)[1]
375+
self._dashoffset, self._dashes = mlines._scale_dashes(
376+
offset, ls, self._linewidth)
378377
self.stale = True
379378

380379
def set_lw(self, lw):
@@ -417,9 +416,8 @@ def set_linestyle(self, ls):
417416
# get the unscalled dash pattern
418417
offset, ls = self._us_dashes = mlines._get_dash_pattern(ls)
419418
# scale the dash pattern by the linewidth
420-
self._dashes = mlines._scale_dashes(offset,
421-
ls,
422-
self._linewidth)[1]
419+
self._dashoffset, self._dashes = mlines._scale_dashes(
420+
offset, ls, self._linewidth)
423421
self.stale = True
424422

425423
def set_ls(self, ls):
@@ -4271,7 +4269,7 @@ def draw(self, renderer):
42714269
if self._edgecolor[3] == 0:
42724270
lw = 0
42734271
gc.set_linewidth(lw)
4274-
gc.set_linestyle(self._linestyle)
4272+
gc.set_dashes(self._dashoffset, self._dashes)
42754273

42764274
gc.set_antialiased(self._antialiased)
42774275
self._set_gc_clip(gc)
12.8 KB
Loading

lib/matplotlib/tests/test_arrow_patches.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,32 @@ def test_fancyarrow_dpi_cor_200dpi():
9797
__prepare_fancyarrow_dpi_cor_test()
9898

9999

100+
@image_comparison(baseline_images=['fancyarrow_dash'],
101+
remove_text=True, extensions=['png'],
102+
style='default')
103+
def test_fancyarrow_dash():
104+
from matplotlib.patches import FancyArrowPatch
105+
fig, ax = plt.subplots()
106+
107+
e = FancyArrowPatch((0, 0), (0.5, 0.5),
108+
arrowstyle='-|>',
109+
connectionstyle='angle3,angleA=0,angleB=90',
110+
mutation_scale=10.0,
111+
linewidth=2,
112+
linestyle='dashed',
113+
color='k')
114+
115+
e2 = FancyArrowPatch((0, 0), (0.5, 0.5),
116+
arrowstyle='-|>',
117+
connectionstyle='angle3',
118+
mutation_scale=10.0,
119+
linewidth=2,
120+
linestyle='dotted',
121+
color='k')
122+
ax.add_patch(e)
123+
ax.add_patch(e2)
124+
125+
100126
if __name__ == '__main__':
101127
import nose
102128
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

src/_tkagg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/* -*- mode: c++; c-basic-offset: 4 -*- */
22

33
/*
4-
* The Python Imaging Library.
5-
* $Id$
4+
* This code is derived from The Python Imaging Library and is covered
5+
* by the PIL license.
6+
*
7+
* See LICENSE/LICENSE.PIL for details.
68
*
79
*/
810

0 commit comments

Comments
 (0)