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

Skip to content

Commit a678b61

Browse files
committed
Don't disable miter limit in SVG
1 parent b063fd1 commit a678b61

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,6 @@ def print_figure_impl():
11711171
print("%s translate"%_nums_to_str(xo, yo), file=fh)
11721172
if rotation: print("%d rotate"%rotation, file=fh)
11731173
print("%s clipbox"%_nums_to_str(width*72, height*72, 0, 0), file=fh)
1174-
# Disable any sort of miter limit
1175-
print("%s setmiterlimit" % 100000, file=fh)
11761174

11771175
# write the figure
11781176
content = self._pswriter.getvalue()
@@ -1322,8 +1320,6 @@ def write(self, *kl, **kwargs):
13221320
#print >>fh, "gsave"
13231321
print("%s translate"%_nums_to_str(xo, yo), file=fh)
13241322
print("%s clipbox"%_nums_to_str(width*72, height*72, 0, 0), file=fh)
1325-
# Disable any sort of miter limit
1326-
print("%d setmiterlimit" % 100000, file=fh)
13271323

13281324
# write the figure
13291325
print(self._pswriter.getvalue(), file=fh)

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,7 @@ def _write_default_style(self):
299299
writer = self.writer
300300
default_style = generate_css({
301301
'stroke-linejoin': 'round',
302-
'stroke-linecap': 'butt',
303-
# Disable the miter limit. 100000 seems to be close to
304-
# the maximum that renderers support before breaking.
305-
'stroke-miterlimit': '100000'})
302+
'stroke-linecap': 'butt'})
306303
writer.start('defs')
307304
writer.start('style', type='text/css')
308305
writer.data('*{%s}\n' % default_style)

0 commit comments

Comments
 (0)