sewkokot / opsvis

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

Idea: Adding interactivity to show model insights on hover #53

Open ajayakhatri opened 4 months ago

ajayakhatri commented 4 months ago

Hi @sewkokot !

Thank you for creating and maintaining this module. It has been a tremendous help in my projects.

I have an idea to enhance the interactivity of the module. Including an option (an optional feature similar to toggling the visibility of axes) that displays insights about the model when users hover over nodes and elements would be beneficial. I have recently developed a script that achieves this and can be seamlessly integrated into opsvis; it takes Matplotlib's Axes (ax) as an argument. This script utilizes a JSON file from printModel function to obtain information on the model's geometry (nodes and elements). In addition, users can add custom texts to any nodes or elements.

What do you think about this feature? I am happy to provide the code and assist with the integration.

demo

Best regards, Ajaya Khatri

ganansuan647 commented 3 months ago

Sounds great! Looking forward for this feature