我是python新手,需要一些帮助来启动我的应用程序。我想为我的硕士论文写一个免费的开源应用程序,目的是解决静态结构
到目前为止,我有两个主要的python库:PyQt5
(用于用户界面)和matplotlib
(用于在解决结构后显示一些有用的图表)
我需要一些功能,让用户“画”出他们想要分析的结构。我曾想过(并尝试过)使用matplotlib
作为这个“抽屉”,但我认为我不应该遵循这条路径,因为这不是库设计的目的。我将在下面解释所需的功能
静态结构是通过“节点”和“条”定义的。我的设想是,当开始一个项目时,会出现一个带有可测量网格的画布。在这里,单击一个按钮,用户可以在画布中单击,以创建一个“节点”,该节点可以用圆或其他形式表示。此节点将保留在原来的位置,直到用户决定删除它
我附上一份image,目的是澄清解释
有没有提供此功能的软件包?或者有人知道如何实现这个功能吗
我尝试了一下,因为我很好奇要把matplotlib变成一个简单的绘图工具需要付出多大的努力
下面是一个工作(纯matplotlib!)示例,您应该能够将其作为开始点来做您想做的事情
相关问题 更多 >
编程相关推荐