Skip to content

Instantly share code, notes, and snippets.

@ccerv1
Created February 23, 2019 17:34
Show Gist options
  • Select an option

  • Save ccerv1/5d18662301bc626de964806abccacedc to your computer and use it in GitHub Desktop.

Select an option

Save ccerv1/5d18662301bc626de964806abccacedc to your computer and use it in GitHub Desktop.
Pretty version of the CAGR choropleth map of coffee production
growing_map = cagr_map[cagr_map.CAGR > 0]
growing_map.plot(column='CAGR', cmap='YlGn', scheme='fisher_jenks', edgecolor='black', ax=ax)
shrinking_map = cagr_map[cagr_map.CAGR < 0]
shrinking_map.plot(column='CAGR', cmap='Reds_r', scheme='fisher_jenks', edgecolor='black', ax=ax)
ax.set_ylim([-23.5,23.5])
ax.set_xlim([-120,160])
fig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment