File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -262,29 +262,6 @@ def parse_dimension(spec: str) -> float:
262262class PgfutilsParser (configparser .ConfigParser ):
263263 """Custom configuration parser with Matplotlib dimension and color support."""
264264
265- # Regular expression to parse a dimension into size and (optional) unit.
266- _dimre = re .compile (r"^\s*(?P<size>\d+(?:\.\d*)?)\s*(?P<unit>.+?)?\s*$" )
267-
268- # Conversion factors (divisors) to go from the given unit to inches.
269- _dimconv = {
270- "cm" : 2.54 ,
271- "centimetre" : 2.54 ,
272- "centimeter" : 2.54 ,
273- "centimetres" : 2.54 ,
274- "centimeters" : 2.54 ,
275- "mm" : 25.4 ,
276- "millimetre" : 25.4 ,
277- "millimeter" : 25.4 ,
278- "millimetres" : 25.4 ,
279- "millimeters" : 25.4 ,
280- "in" : 1 ,
281- "inch" : 1 ,
282- "inches" : 1 ,
283- "pt" : 72.27 , # Printers points, not the 1/72 Postscript/PDF points.
284- "point" : 72.27 ,
285- "points" : 72.27 ,
286- }
287-
288265 def read (self , filename , encoding = None ):
289266 """Read configuration options from a file.
290267
You can’t perform that action at this time.
0 commit comments