Update ips_to_maps.py

leg.draggable() needs to now be leg.set_draggable(state=True) due to update with matplotlib
This commit is contained in:
Palshee 2021-03-10 10:57:55 -08:00 committed by GitHub
parent 96831b5990
commit f1ed5fb174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ def draw_map(map_type, geo_dict, filename, headless, leg_choice):
leg.legendHandles[i]._legmarker.set_markersize(10)
leg.legendHandles[i]._legmarker.set_alpha(1)
leg.get_title().set_color('#7B777C')
leg.draggable()
leg.set_draggable(state=True)
leg.get_frame().set_facecolor('#2C2C2C')
for text in leg.get_texts():
plt.setp(text, color='#A5A5A7')