opsvis
opsvis copied to clipboard
UnboundLocalError
Please guide me with this error!!!
I face this error when using: "opsv.plot_model()"
"UnboundLocalError: local variable 'm_type' referenced before assignment"
the code line that I used:
"opsv.plot_model(node_labels=1,element_labels=0,node_supports=True,fig_wi_he=(40,15),fmt_model=
{'color': [0.5,0.5,0.5],'linestyle':'solid','linewidth':1.2,'marker':'.','markersize':5})"
Thank you for your time.
I will fix this issue. For now try the following modification:
fmt_model={'color': [0.5,0.5,0.5],'linestyle':'solid','linewidth':1.2,'marker':'.','markersize':5}
opsv.plot_model(node_labels=1,element_labels=0,node_supports=True,fig_wi_he=(40,15))