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 48747b2

Browse filesBrowse files
authored
Remove unused dicts from backend_cairo. (#24760)
They are unused since 15c39a3.
1 parent a9ba9d5 commit 48747b2
Copy full SHA for 48747b2

File tree

Expand file treeCollapse file tree

1 file changed

+0
-29
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-29
lines changed

‎lib/matplotlib/backends/backend_cairo.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_cairo.py
-29Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,35 +72,6 @@ def attr(field):
7272
return name, slant, weight
7373

7474

75-
# Mappings used for deprecated properties in RendererCairo, see below.
76-
_f_weights = {
77-
100: cairo.FONT_WEIGHT_NORMAL,
78-
200: cairo.FONT_WEIGHT_NORMAL,
79-
300: cairo.FONT_WEIGHT_NORMAL,
80-
400: cairo.FONT_WEIGHT_NORMAL,
81-
500: cairo.FONT_WEIGHT_NORMAL,
82-
600: cairo.FONT_WEIGHT_BOLD,
83-
700: cairo.FONT_WEIGHT_BOLD,
84-
800: cairo.FONT_WEIGHT_BOLD,
85-
900: cairo.FONT_WEIGHT_BOLD,
86-
'ultralight': cairo.FONT_WEIGHT_NORMAL,
87-
'light': cairo.FONT_WEIGHT_NORMAL,
88-
'normal': cairo.FONT_WEIGHT_NORMAL,
89-
'medium': cairo.FONT_WEIGHT_NORMAL,
90-
'regular': cairo.FONT_WEIGHT_NORMAL,
91-
'semibold': cairo.FONT_WEIGHT_BOLD,
92-
'bold': cairo.FONT_WEIGHT_BOLD,
93-
'heavy': cairo.FONT_WEIGHT_BOLD,
94-
'ultrabold': cairo.FONT_WEIGHT_BOLD,
95-
'black': cairo.FONT_WEIGHT_BOLD,
96-
}
97-
_f_angles = {
98-
'italic': cairo.FONT_SLANT_ITALIC,
99-
'normal': cairo.FONT_SLANT_NORMAL,
100-
'oblique': cairo.FONT_SLANT_OBLIQUE,
101-
}
102-
103-
10475
class RendererCairo(RendererBase):
10576
def __init__(self, dpi):
10677
self.dpi = dpi

0 commit comments

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