Created
April 13, 2021 12:19
-
-
Save StephenFordham/a754698df8c96ea7a436ac6a58eeae04 to your computer and use it in GitHub Desktop.
optimised_resistance_scoring_plotting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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