I have a Jupyter Notebook I am opening in Jupyter Lab. My code is:
import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph()
mylist = ["a", "b", "c", "d"]
G.add_nodes_from(mylist)
nx.draw(G)
plt.figure(3,figsize=(100,100))
However, changing the figsize does not change the output. How can this be done in Jupyter Lab? I tried saving the Graph instead, but when I use plt.figure() just a white page is saved.
Solution:
In case anyone is wondering the same thing: When I changed it with plt.rcParams['figure.figsize'] = [10, 50] it worked.