I am studying Twitter API with Tweepy and Networkx to build a Graph network between me and my twitter followers. However, when I try to draw the graph I get: RuntimeError: In draw_glyphs_to_bitmap: Could not convert glyph to bitmap (error code 0x62). Does anyone know what I'm doing wrong?
The code I have:
api = tweepy.API(auth)
my_user = api.get_user(screen_name='eneko98')
my_followers = []
for friend in my_user.friends():
my_followers.append(friend.screen_name)
G = nx.Graph()
first_node = G.add_node(my_user)
for user in my_followers:
G.add_node(user)
nx.draw(G, with_labels=True)
plt.show()