| Conditions | 2 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | # Copyright (c) 2008-2016 MetPy Developers.  | 
            ||
| 18 | def test_scattertext_patheffect_empty():  | 
            ||
| 19 | 'Test scattertext with empty strings and PathEffects (Issue #245)'  | 
            ||
| 20 | strings = ['abc', '', 'def']  | 
            ||
| 21 | x, y = np.arange(6).reshape(2, 3)  | 
            ||
| 22 | fig = make_figure()  | 
            ||
| 23 | ax = fig.add_subplot(1, 1, 1)  | 
            ||
| 24 | ax.scattertext(x, y, strings, color='white',  | 
            ||
| 25 | path_effects=[mpatheffects.withStroke(linewidth=1, foreground='black')])  | 
            ||
| 26 | |||
| 27 | # Need to trigger a render  | 
            ||
| 28 |     with TemporaryFile('wb') as fobj: | 
            ||
| 29 | fig.savefig(fobj)  | 
            ||
| 30 |