@@ -300,7 +300,7 @@ def close(event):
300300from distutils .version import LooseVersion
301301
302302_mpl_ge_1_5 = LooseVersion (matplotlib .__version__ ) >= LooseVersion ('1.5.0' )
303- _mpl_ge_2_0 = LooseVersion (matplotlib .__version__ ) >= LooseVersion ('2.0.0rc1 ' )
303+ _mpl_ge_2_0 = LooseVersion (matplotlib .__version__ ) >= LooseVersion ('2.0.0 ' )
304304
305305import numpy as np
306306import io
@@ -553,7 +553,7 @@ def get_graphics(self, gc, polygons, points_line, rgbFace, closed=False):
553553 mode = str ("triangle_fan" )
554554 ))
555555 instruction_group .add (Color (* gc .get_rgb ()))
556- if _mpl_ge_1_5 and not _mpl_ge_2_0 and closed :
556+ if _mpl_ge_1_5 and ( not _mpl_ge_2_0 ) and closed :
557557 points_poly_line = points_line [:- 2 ]
558558 else :
559559 points_poly_line = points_line
@@ -562,7 +562,7 @@ def get_graphics(self, gc, polygons, points_line, rgbFace, closed=False):
562562 width = int (gc .line ['width' ] / 2 ),
563563 dash_length = gc .line ['dash_length' ],
564564 dash_offset = gc .line ['dash_offset' ],
565- dash_joint = gc .line ['joint_style ' ],
565+ dash_joint = gc .line ['join_style ' ],
566566 dash_list = gc .line ['dash_list' ]))
567567 return instruction_group
568568
@@ -944,7 +944,7 @@ def __init__(self, renderer):
944944 super (GraphicsContextKivy , self ).__init__ ()
945945 self .renderer = renderer
946946 self .line ['cap_style' ] = self .get_capstyle ()
947- self .line ['joint_style ' ] = self .get_joinstyle ()
947+ self .line ['join_style ' ] = self .get_joinstyle ()
948948 self .line ['dash_offset' ] = None
949949 self .line ['dash_length' ] = None
950950 self .line ['dash_list' ] = []
0 commit comments