error when using networkx to drow a precision matrix of financial network

124 Views Asked by At

I want to draw the precision matrix (inverse covariance) of a financial networks including 200 stocks. It popped up an error

'AttributeError: module 'matplotlib.pyplot' has no attribute 'ishold''.

plus:how can I draw pic like that the size of vertex is proportionate to its variance, the width of the edges is proportionate to its correlation.

G=nx.from_pandas_dataframe(prec_filtered, 'var1', 'var2')

nx.draw(G, with_labels=True, node_color='orange', node_size=400, edge_color='black', linewidths=1, font_size=1)
0

There are 0 best solutions below