Skip to content

Commit 7bcca10

Browse files
committed
Fix some antialiased parameters being ignored
Solves GitHub issue #501.
1 parent f3dc130 commit 7bcca10

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ https://semver.org/spec/v2.0.0.html
2222
- Fix flipped coastlines with pseudocylindrical projections when `lon_0`
2323
is greater than 0 deg (solves issues [#443] and [#463], thanks to
2424
@YilongWang).
25+
- Fix `antialiased` argument being ignored in `Basemap.drawcounties` and
26+
`Basemap.readshapefile` (solves issue [#501], thanks to @TheFizzWare).
2527

2628
## [1.3.8] - 2023-08-18
2729

@@ -1063,6 +1065,8 @@ https://github.com/matplotlib/basemap/issues/512
10631065
https://github.com/matplotlib/basemap/issues/510
10641066
[#505]:
10651067
https://github.com/matplotlib/basemap/pull/505
1068+
[#501]:
1069+
https://github.com/matplotlib/basemap/issues/501
10661070
[#491]:
10671071
https://github.com/matplotlib/basemap/issues/491
10681072
[#489]:

packages/basemap/src/mpl_toolkits/basemap/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ def drawcounties(self,linewidth=0.1,linestyle='solid',color='k',antialiased=1,
19901990
county_info = self.readshapefile(gis_file,'counties',\
19911991
default_encoding='latin-1',drawbounds=drawbounds)
19921992
counties = [coords for coords in self.counties]
1993-
counties = PolyCollection(counties)
1993+
counties = PolyCollection(counties, antialiaseds=(antialiased,))
19941994
counties.set_linestyle(linestyle)
19951995
counties.set_linewidth(linewidth)
19961996
counties.set_edgecolor(color)
@@ -2203,7 +2203,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None,
22032203
# get current axes instance (if none specified).
22042204
ax = ax or self._check_ax()
22052205
# make LineCollections for each polygon.
2206-
lines = LineCollection(coords,antialiaseds=(1,))
2206+
lines = LineCollection(coords,antialiaseds=(antialiased,))
22072207
lines.set_color(color)
22082208
lines.set_linewidth(linewidth)
22092209
lines.set_label('_nolabel_')

0 commit comments

Comments
 (0)