Created
December 27, 2019 02:32
-
-
Save ekhoda/398f297512707055809f418cc5c33b27 to your computer and use it in GitHub Desktop.
This file contains 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
# Specify the layout attributes | |
title = f'{scope.upper()} Network' | |
layout = dict(title=title, | |
showlegend=False, | |
geo=dict( | |
scope='usa', | |
showland=True, | |
landcolor='rgb(243, 243, 243)', | |
countrycolor='rgb(204, 204, 204)')) | |
fig.update_layout(layout) |
You're looking at just a gist that is part of a larger blog. Check the blog here to see the full working code.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working.
Input In [6], in <cell line: 2>()
1 # Specify the layout attributes
----> 2 title = f'{scope.upper()} Network'
3 layout = dict(title=title,
4 showlegend=False,
5 geo=dict(
(...)
8 landcolor='rgb(243, 243, 243)',
9 countrycolor='rgb(204, 204, 204)'))
11 fig.update_layout(layout)
NameError: name 'scope' is not defined