File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ def _render_shapes(
149
149
# Apply the transformation to the PatchCollection's paths
150
150
trans = get_transformation (sdata_filt .shapes [element ], get_all = True )[coordinate_system ]
151
151
affine_trans = trans .to_affine_matrix (input_axes = ("x" , "y" ), output_axes = ("x" , "y" ))
152
- trans = mtransforms .Affine2D (matrix = affine_trans ) + ax . transData
152
+ trans = mtransforms .Affine2D (matrix = affine_trans )
153
153
154
154
shapes = gpd .GeoDataFrame (shapes , geometry = "geometry" )
155
155
@@ -162,6 +162,8 @@ def _render_shapes(
162
162
logger .info (f"Using { method } " )
163
163
164
164
if method == "datashader" :
165
+ trans = mtransforms .Affine2D (matrix = affine_trans ) + ax .transData
166
+
165
167
extent = get_extent (sdata .shapes [element ])
166
168
x_ext = extent ["x" ][1 ]
167
169
y_ext = extent ["y" ][1 ]
You can’t perform that action at this time.
0 commit comments