Skip to content

Instantly share code, notes, and snippets.

@emmagrimaldi
Last active March 30, 2019 12:12
Show Gist options
  • Select an option

  • Save emmagrimaldi/7ad7d4b1fb38625dc511a548538f13aa to your computer and use it in GitHub Desktop.

Select an option

Save emmagrimaldi/7ad7d4b1fb38625dc511a548538f13aa to your computer and use it in GitHub Desktop.
annotations = [dict(
# text I want to display. I used <br> to break it into two lines
text = 'All US storm events that caused more than $50k of economic damage,<br> from 2000 until today',
# font and border characteristics
font = dict(color = '#FFFFFF', size = 14), borderpad = 10,
# positional arguments
x = 0.05, y = 0.05, xref = 'paper', yref = 'paper', align = 'left',
# don't show arrow and set background color
showarrow = False, bgcolor = 'black'
)]
# assigning the annotations to the layout
layout['annotations'] = annotations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment