Skip to content

Instantly share code, notes, and snippets.

@databyjp
Created March 14, 2020 05:58
Show Gist options
  • Save databyjp/a3d62eef2a486a2a1dbde8705622b6dd to your computer and use it in GitHub Desktop.
Save databyjp/a3d62eef2a486a2a1dbde8705622b6dd to your computer and use it in GitHub Desktop.
fig['data'][0]['marker']['symbol'] = 'triangle-left'
fig.update_layout(
title_text="NBA Teams' degrees of separation:"
+ "<BR>Starting with the " + seed_tm + " on " + seed_date
+ ", all teams are connected within " + str(date_range.days) + " days.",
geo=dict(
scope='north america',
projection_type='azimuthal equal area',
showland=True,
fitbounds="locations",
landcolor='rgb(243, 243, 243)',
countrycolor='rgb(204, 204, 204)',
),
)
fig.update_layout(title={'font': {'size': 15}}, font={'size': 9, 'family': 'Arial, Tahoma, Helvetica'})
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment