@@ -126,18 +126,18 @@ def draw_panel(
126126 params = self .params
127127 data .loc [data ["color" ].isna (), "color" ] = "none"
128128 data .loc [data ["fill" ].isna (), "fill" ] = "none"
129- data ["fill" ] = to_rgba (data ["fill" ], data ["alpha" ])
130129
131130 geom_type = data .geometry .iloc [0 ].geom_type
132131 if geom_type in ("Polygon" , "MultiPolygon" ):
133132 from matplotlib .collections import PatchCollection
134133
135134 linewidth = data ["size" ] * SIZE_FACTOR
135+ fill = to_rgba (data ["fill" ], data ["alpha" ])
136136 patches = [PolygonPatch (g ) for g in data ["geometry" ]]
137137 coll = PatchCollection (
138138 patches ,
139139 edgecolor = data ["color" ],
140- facecolor = data [ " fill" ] ,
140+ facecolor = fill ,
141141 linestyle = data ["linetype" ],
142142 linewidth = linewidth ,
143143 zorder = params ["zorder" ],
@@ -152,7 +152,6 @@ def draw_panel(
152152 data ["y" ] = arr [:, 1 ]
153153 for _ , gdata in data .groupby ("group" ):
154154 gdata .reset_index (inplace = True , drop = True )
155- gdata .is_copy = None
156155 geom_point .draw_group (gdata , panel_params , coord , ax , params )
157156 elif geom_type == "MultiPoint" :
158157 # Where n is the length of the dataframe (no. of multipoints),
@@ -173,7 +172,7 @@ def draw_panel(
173172 from matplotlib .collections import LineCollection
174173
175174 linewidth = data ["size" ] * SIZE_FACTOR
176- data [ " color" ] = to_rgba (data ["color" ], data ["alpha" ])
175+ color = to_rgba (data ["color" ], data ["alpha" ])
177176 segments = []
178177 for g in data ["geometry" ]:
179178 if g .geom_type == "LineString" :
@@ -183,7 +182,7 @@ def draw_panel(
183182
184183 coll = LineCollection (
185184 segments ,
186- edgecolor = data [ " color" ] ,
185+ edgecolor = color ,
187186 linewidth = linewidth ,
188187 linestyle = data ["linetype" ],
189188 zorder = params ["zorder" ],
0 commit comments