File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,13 @@ def _draw_paths():
306
306
for k , v in gc_vars .items ():
307
307
if k == "_linestyle" : # Deprecated, no effect.
308
308
continue
309
- try :
310
- getattr (gc , "set" + k )(v )
311
- except (AttributeError , TypeError ) as e :
312
- pass
309
+ elif k == "_dashes" :
310
+ gc .set_dashes (* v ) # Needs to be unpacked.
311
+ else :
312
+ try :
313
+ getattr (gc , "set" + k )(v )
314
+ except (AttributeError , TypeError ) as e :
315
+ pass
313
316
vars (gc ).update (gc_vars )
314
317
gc .ctx .new_path ()
315
318
paths , transforms = zip (* grouped_draw )
@@ -326,7 +329,8 @@ def _draw_paths():
326
329
transform = (Affine2D (transform .get_matrix ())
327
330
.translate (xo , yo - self .height ).scale (1 , - 1 ))
328
331
# rgb_fc could be a ndarray, for which equality is elementwise.
329
- new_key = vars (gc0 ), tuple (rgb_fc ) if rgb_fc is not None else None
332
+ new_key = (vars (gc0 ).copy (), tuple (rgb_fc ) if rgb_fc is not None
333
+ else None )
330
334
# don't do grouped draw when doing alpha blending
331
335
alpha_blending = gc0 .get_forced_alpha () and gc0 .get_alpha () < 1.0
332
336
if not alpha_blending and rgb_fc is not None :
You can’t perform that action at this time.
0 commit comments