@@ -76,6 +76,7 @@ def pointmap(ax, points, bounding_box,
7676 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
7777 cx .add_basemap (ax , ** extra_contextily_params )
7878 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
79+ ax .axis ('off' )
7980
8081# pylint: disable=too-many-arguments
8182# pylint: disable=dangerous-default-value
@@ -124,6 +125,7 @@ def weighted_pointmap(ax, points, color_weights=None,
124125 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
125126 cx .add_basemap (ax , ** extra_contextily_params )
126127 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
128+ ax .axis ('off' )
127129
128130# pylint: disable=protected-access
129131
@@ -169,6 +171,7 @@ def heatmap(ax, points, weights, bounding_box,
169171 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
170172 cx .add_basemap (ax , ** extra_contextily_params )
171173 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
174+ ax .axis ('off' )
172175
173176
174177def choroplethmap (ax , region_boundaries , weights , bounding_box ,
@@ -204,6 +207,7 @@ def choroplethmap(ax, region_boundaries, weights, bounding_box,
204207 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
205208 cx .add_basemap (ax , ** extra_contextily_params )
206209 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
210+ ax .axis ('off' )
207211
208212
209213def iconviz (ax , points , bounding_box , icon_path ,
@@ -236,6 +240,7 @@ def iconviz(ax, points, bounding_box, icon_path,
236240 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
237241 cx .add_basemap (ax , ** extra_contextily_params )
238242 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
243+ ax .axis ('off' )
239244
240245# pylint: disable=too-many-arguments
241246# pylint: disable=dangerous-default-value
@@ -261,3 +266,4 @@ def fishnetmap(ax, points, weights, bounding_box,
261266 ax .set (xlim = (bbox [0 ], bbox [2 ]), ylim = (bbox [1 ], bbox [3 ]))
262267 cx .add_basemap (ax , ** extra_contextily_params )
263268 ax .imshow (img , alpha = img [:, :, 3 ], extent = (bbox [0 ], bbox [2 ], bbox [1 ], bbox [3 ]))
269+ ax .axis ('off' )
0 commit comments