Comments (7)
What branch are you using?
from up4.
Just the default upppp branch I believe, I followed the instructions on there for download.
from up4.
Ah, that'll be the issue.
The plotting interface is in the middle of a major rework into a saner entity. I'm working on it currently, I've just had a lot of stuff on my plate lately, so I haven't had time to finish off the rework.
For now, please use the new-plotting-interface branch. The way to use the newer iteration of the plotting interface can be found in tests/test-interface.py
is as follows:
plotter = up4.Plotter2D(vec_field)
fig = plotter.unit_vector_plot(axis, selection="depth_average")
fig.update_layout(width=600, height=600)
fig.update_xaxes(title="x position (mm)")
fig.update_yaxes(title="y position (mm)")
The key difference is that the two plotters focus on whether the plot is 2D or 3D, introducing Plotter2D
and Plotter3D
. For Plotter2D
, you have the following arguments you can pass:
- axis (0, 1, 2)
- selection ("depth-average" or "plane")
- index (only required for "plane" selection)
- scaling_mode ("max", "min", "minmax", "half_node", "full_node")
- scaling_args (has to be a list)
I'll leave this issue open until the rework is merged into the default branch.
from up4.
I had to reinstall as I think the new plotting interface was updated recently (tried running after switching branches but it said the Plotter2D command didn't exist), but now it doesn't seem to reinstall. I get this error when building wheels for up4 " error: cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features 'python pyo3/extension-module' --crate-type cdylib --
failed with code 101". I have tried reinstalling rust to see if it was out of date but no difference.
from up4.
Interesting. What version of Rust are you using?
Can you try running cargo clean
and pip uninstall up4
to ensure that you are starting fresh. And then when installing from the new-plotting-interface
branch run:
RUST_BACKTRACE=1 python3 -m pip install . -vvv > install.txt 2>&1
and attach the created file.
from up4.
Of course, attached is the file!
install.txt
from up4.
Hi @Aran55336, once #34 is merged, hopefully your issues are all resolved!
from up4.
Related Issues (20)
- HDF5 Attributes
- Windows. HOT 2
- Nomenclature
- Colourmap interpolation
- Homogenity Index
- Volume Plots
- Slice Plots - ScalarPlotter
- Slice Plots - ComparisonPlotter
- Fix CI
- Implement distribution visualisation
- Collision modes
- Energy dissipation
- Robust arrow sizes for quiver plots in 2D
- Add Meaningful tests HOT 2
- Issue with 2D scalar field - offset HOT 5
- grid.collapse returns NaNs when granular temperature is initiated with grid containing values. HOT 1
- Velocity scalar and velocity vector fields are flipped HOT 3
- Dataset comparison HOT 1
- uPPPP name HOT 4
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 up4.