libpath = matplotlib.__path__[0]
backend_pdf = libpath + '/backends/backend_pdf.py'
with open(backend_pdf, 'r') as r:
    code = r.read()
code = re.sub('self\\.output\\((\\d+\\.\\d+|\\d+)\\,\\ Op\\.setlinewidth\\)',
    'self.output(%s, Op.setlinewidth)' % str(value), code)
with open('/tmp/hatch.tmp', 'w') as w:
    w.write(code)
print(backend_pdf)
os.system('sudo mv /tmp/hatch.tmp %s' % backend_pdf)
setHatchThickness(1.0)
Как изменить ширину линии штриховки в matplotlib?