Skip to content

Instantly share code, notes, and snippets.

@ekhoda
Created December 27, 2019 02:32
Show Gist options
  • Save ekhoda/398f297512707055809f418cc5c33b27 to your computer and use it in GitHub Desktop.
Save ekhoda/398f297512707055809f418cc5c33b27 to your computer and use it in GitHub Desktop.
# 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)
@dasarupkumar
Copy link

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

@ekhoda
Copy link
Author

ekhoda commented May 7, 2024

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