Comments (9)
Thanks Dr. Scott! The best way to use the model viewer is through the terminal command (Anaconda or Linux). An interactive Matplotlib window is generated by the program. You can use the mouse/click-and-hold to manually change the window size and viewing angle and save the figure in the desired orientation/zoom level.
While using Spyder (or any other IDE), change the IPython console/Graphics settings (in Preferences) to Automatic graphics backend. This will generate an interactive window instead of an inline .png image. We should mention this on the Plotting commands page.
I'll also add an option to set view angle and window size manually, just in case.
from openseespy.
from openseespy.
For Jupyter notebooks, one way to do that is to write %matplotlib qt
before starting the script. This will open an interactive plot window instead of an inline image. Use %matplotlib inline
to switch back to inline plotting.
from openseespy.
Thanks, @u-anurag, that worked! But I had to install PySide2 first, but this is probably included already in Pythong IDEs. I'm working in Linux without an IDE.
pip install PySide2
from openseespy.
I just noticed that Anaconda installs all the dependencies of Matplotlib as a package. Qt packages (PyQt and PySide) are optional dependencies as per the Matplotlib website. I have created a pull request to update the information on the Plotting commands page.
from openseespy.
Should I force Qt backend in the plot_model() and plot_modeshape() functions? I don't use Jupyter Notebook a lot so I don't know if users prefer an inline plot or an interactive dedicated window. In that case, users don't have to worry about adding %matplotlib qt
before running the script.
from openseespy.
from openseespy.
I found that %matplotlib notebook
produces an inline interactive figure on Jupyter notebook instead of a dedicated window. You should try that.
from openseespy.
from openseespy.
Related Issues (20)
- OpenSeespy-3.4.0.8 not supported Python 3.11.3 and Anaconda3-2023.03-1-Windows-x86_64
- OpenSeesPy Reliability Analysis and Parameter problem. HOT 10
- module 'openseespy.opensees' has no attribute 'getEleClassTags'
- Error on ARM architecture Macs while importing HOT 4
- Updated Opensees not compatible with old script HOT 11
- limitCurve('Axial') not available
- limitCurve('ThreePoint') HOT 6
- Linux: opensees.so: cannot open shared object file: No such file or directory HOT 5
- recorder PVD for element stress and strain HOT 4
- RuntimeError: Failed to import openseespy on Windows HOT 2
- The MPCO recorder can't work in OpenSeespy HOT 1
- Error importing compiled openseespy on Mac M2 HOT 4
- The same problem still exists in the Openseespymac version. Is it possible to solve the issue in macs? HOT 9
- libquadmath - missing dependency? HOT 2
- printModel command produces invalid json file when there's no elements in the model HOT 1
- openseespy.save command doesn't save uniaxial materials HOT 1
- Recorder command problem HOT 2
- "Remove" code snippet that prints IMKBilin material tags to console. HOT 1
- Need an explanation about plotting -> I must not use Matplotlib HOT 5
- Examples for Timber
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseespy.