File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
<
10BC0
svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-open-fill" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom">
lib/matplotlib
baseline_images/test_backend_svg Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,9 @@ def _write_default_style(self):
317317 writer = self .writer
318318 default_style = generate_css ({
319319 'stroke-linejoin' : 'round' ,
320- 'stroke-linecap' : 'butt' })
320+ 'stroke-linecap' : 'butt' ,
321+ 'white-space' : 'pre' ,
322+ })
321323 writer .start ('defs' )
322324 writer .start ('style' , type = 'text/css' )
323325 writer .data ('*{%s}\n ' % default_style )
Original file line number Diff line number Diff line change @@ -76,6 +76,13 @@ def test_text_urls():
7676 assert expected in buf
7777
7878
79+ @image_comparison (baseline_images = ['white_space_pre' ], extensions = ['svg' ])
80+ def test_white_space_pre ():
81+ plt .rcParams ["svg.fonttype" ] = "none"
82+ fig = plt .figure ()
83+ fig .text (.5 , .5 , "a b c" )
84+
85+
7986@image_comparison (baseline_images = ['bold_font_output' ], extensions = ['svg' ])
8087def test_bold_font_output ():
8188 fig = plt .figure ()
You can’t perform that action at this time.
0 commit comments