Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StephenFordham/a754698df8c96ea7a436ac6a58eeae04 to your computer and use it in GitHub Desktop.
Save StephenFordham/a754698df8c96ea7a436ac6a58eeae04 to your computer and use it in GitHub Desktop.
optimised_resistance_scoring_plotting
fig, ax = plt.subplots(figsize=(14, 16))
res_geo.plot(ax=ax, figsize=(14, 16), column=res_geo['resistance_scores'], cmap='cool', k=6,
missing_kwds=dict(color="lightgrey",label='No Data/<10 isolates'),
scheme='FisherJenks',
edgecolor = 'black',
legend=True,
linewidth = 0.1,
legend_kwds=dict(loc='lower left', frameon=False, title='Resistance Scores'))
ax.set(title='Global Antibiotic Resistance in the Bacterium K. pneumoniae')
ax.set_axis_off()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment