sewkokot / opsvis

OpenSeesPy postprocessing and plotting module
GNU General Public License v3.0
35 stars 21 forks source link

UnboundLocalError #51

Open ADuzandeh opened 7 months ago

ADuzandeh commented 7 months ago

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.

sewkokot commented 6 months ago

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))