Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff84154

Browse filesBrowse files
committed
Remove unused property tables (they are reset later).
1 parent 201d536 commit ff84154
Copy full SHA for ff84154

File tree

Expand file treeCollapse file tree

2 files changed

+6
-88
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-88
lines changed

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
-30Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,6 @@
2727
from matplotlib.bezier import make_path_regular, concatenate_paths
2828

2929

30-
# these are not available for the object inspector until after the
31-
# class is built so we define an initial set here for the init
32-
# function and they will be overridden after object definition
33-
docstring.interpd.update(Patch="""
34-
35-
================= ==============================================
36-
Property Description
37-
================= ==============================================
38-
alpha float
39-
animated [True | False]
40-
antialiased or aa [True | False]
41-
capstyle ['butt' | 'round' | 'projecting']
42-
clip_box a matplotlib.transform.Bbox instance
43-
clip_on [True | False]
44-
edgecolor or ec any matplotlib color
45-
facecolor or fc any matplotlib color
46-
figure a matplotlib.figure.Figure instance
47-
fill [True | False]
48-
hatch unknown
49-
joinstyle ['miter' | 'round' | 'bevel']
50-
label any string
51-
linewidth or lw float
52-
lod [True | False]
53-
transform a matplotlib.transform transformation instance
54-
visible [True | False]
55-
zorder any number
56-
================= ==============================================
57-
58-
""")
59-
6030
_patch_alias_map = {
6131
'antialiased': ['aa'],
6232
'edgecolor': ['ec'],

‎lib/matplotlib/text.py

Copy file name to clipboardExpand all lines: lib/matplotlib/text.py
+6-58Lines changed: 6 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def _process_text_args(override, fontdict=None, **kwargs):
4646

4747
@contextlib.contextmanager
4848
def _wrap_text(textobj):
49-
"""
50-
Temporarily inserts newlines to the text if the wrap option is enabled.
49+
"""Temporarily inserts newlines to the text if the wrap option is enabled.
5150
"""
5251
if textobj.get_wrap():
5352
old_text = textobj.get_text()
@@ -82,62 +81,6 @@ def get_rotation(rotation):
8281
"None".format(rotation))
8382

8483
return angle % 360
85-
# these are not available for the object inspector until after the
86-
# class is build so we define an initial set here for the init
87-
# function and they will be overridden after object defn
88-
docstring.interpd.update(Text="""
89-
========================== ================================================
90-
Property Value
91-
========================== ================================================
92-
alpha float or None
93-
animated [True | False]
94-
backgroundcolor any matplotlib color
95-
bbox rectangle prop dict plus key 'pad' which is a
96-
pad in points; if a boxstyle is supplied as
97-
a string, then pad is instead a fraction
98-
of the font size
99-
clip_box a matplotlib.transform.Bbox instance
100-
clip_on [True | False]
101-
color any matplotlib color
102-
family ['serif' | 'sans-serif' | 'cursive' |
103-
'fantasy' | 'monospace']
104-
figure a matplotlib.figure.Figure instance
105-
fontproperties a matplotlib.font_manager.FontProperties
106-
instance
107-
horizontalalignment or ha ['center' | 'right' | 'left']
108-
label any string
109-
linespacing float
110-
lod [True | False]
111-
multialignment ['left' | 'right' | 'center' ]
112-
name or fontname string e.g.,
113-
['Sans' | 'Courier' | 'Helvetica' ...]
114-
position (x,y)
115-
rotation [ angle in degrees 'vertical' | 'horizontal'
116-
rotation_mode [ None | 'anchor']
117-
size or fontsize [size in points | relative size e.g., 'smaller',
118-
'x-large']
119-
style or fontstyle [ 'normal' | 'italic' | 'oblique']
120-
text string
121-
transform a matplotlib.transform transformation instance
122-
usetex [True | False | None]
123-
variant ['normal' | 'small-caps']
124-
verticalalignment or va ['center' | 'top' | 'bottom' | 'baseline' |
125-
'center_baseline' ]
126-
visible [True | False]
127-
weight or fontweight ['normal' | 'bold' | 'heavy' | 'light' |
128-
'ultrabold' | 'ultralight']
129-
wrap [True | False]
130-
x float
131-
y float
132-
zorder any number
133-
========================== ===============================================
134-
""")
135-
136-
# TODO : This function may move into the Text class as a method. As a
137-
# matter of fact, The information from the _get_textbox function
138-
# should be available during the Text._get_layout() call, which is
139-
# called within the _get_textbox. So, it would better to move this
140-
# function as a method with some refactoring of _get_layout method.
14184

14285

14386
def _get_textbox(text, renderer):
@@ -146,6 +89,11 @@ def _get_textbox(text, renderer):
14689
:meth:`matplotlib.text.Text.get_extents` method, The bbox size of
14790
the text before the rotation is calculated.
14891
"""
92+
# TODO : This function may move into the Text class as a method. As a
93+
# matter of fact, The information from the _get_textbox function
94+
# should be available during the Text._get_layout() call, which is
95+
# called within the _get_textbox. So, it would better to move this
96+
# function as a method with some refactoring of _get_layout method.
14997

15098
projected_xs = []
15199
projected_ys = []

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.