fenicsx-plotly-0.2.0
توضیحات
Lightweight library for plotting FEniCS x objects using plotly
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fenicsx-plotly-0.2.0 |
| نام | fenicsx-plotly |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Henrik Finsberg <henriknf@simula.no> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fenicsx-plotly/ |
| مجوز | Copyright 2022 Henrik Finsberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
[](https://github.com/finsberg/fenicsx-plotly/blob/main/LICENSE)
[](https://pypi.org/project/fenicsx-plotly/)
[](https://github.com/finsberg/fenicsx-plotly/actions/workflows/test_package_coverage.yml)
[](https://github.com/finsberg/fenicsx-plotly/actions/workflows/pre-commit.yml)
[](https://github.com/finsberg/fenicsx-plotly/actions/workflows/build_docs.yml)
[](https://github.com/psf/black)
[](https://github.com/finsberg/fenicsx-plotly/pkgs/container/fenicsx-plotly)
# fenicsx-plotly
`fenicsx-plotly` is package for plotting FEniCSx objects using plotly. It is a successor of [`fenics-plotly`](https://github.com/finsberg/pulse).
* Documentation: https://finsberg.github.io/fenicsx-plotly/
* Source code: https://github.com/finsberg/fenicsx-plotly
## Install
To install `fenicsx-plotly` you need to first [install FEniCSx](https://github.com/FEniCS/dolfinx#installation). Next you can install `fenicsx-plotly` via pip
```
python3 -m pip install fenicsx-plotly
```
We also provide a pre-built docker image with FEniCSx and `fenicsx-plotly` installed. You pull this image using the command
```
docker pull ghcr.io/finsberg/fenicsx-plotly:v0.2.0
```
## Simple Example
```python
import dolfinx
from mpi4py import MPI
from fenicsx_plotly import plot
mesh = dolfinx.mesh.create_unit_cube(MPI.COMM_WORLD, 3, 3, 3)
plot(mesh)
```
## Supported objects (and object that will be supported in the future)
- [x] dolfinx.mesh.Mesh
- [x] dolfinx.mesh.MeshTagsMetaClass
- [x] dolfinx.fem.FunctionSpace
- [x] dolfinx.fem.Function
- [x] Scalar
- [x] Vector
- [ ] dolfinx.fem.bcs.DirichletBCMetaClass
- [x] Scalar
- [ ] Vector
## Usage with JupyterBook
If you want to embed the visualizations generated by `fenicsx-plotly` into a webpage generated by JupyterBook such as [the documentation for `fenicsx-plotly`](https://finsberg.github.io/fenicsx-plotly/) you need to add the following configuration in your `_config.yml`
```yaml
sphinx:
config:
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
```
See <https://jupyterbook.org/en/stable/interactive/interactive.html#plotly> for more information.
## Contributing
Contributions are welcomed!
See https://finsberg.github.io/fenicsx-plotly/CONTRIBUTING.html for more info.
نیازمندی
| مقدار | نام |
|---|---|
| - | fenics-dolfinx |
| - | numpy |
| - | plotly |
| ==7.7.2 | ipywidgets |
| - | fenicsx-plotly[test] |
| - | fenicsx-plotly[dev] |
| - | fenicsx-plotly[docs] |
| - | pdbpp |
| - | ipython |
| - | bump2version |
| - | pre-commit |
| - | jupyter-book |
| - | jupytext |
| <8.7.0 | ipython |
| - | pytest |
| - | pytest-cov |
نحوه نصب
نصب پکیج whl fenicsx-plotly-0.2.0:
pip install fenicsx-plotly-0.2.0.whl
نصب پکیج tar.gz fenicsx-plotly-0.2.0:
pip install fenicsx-plotly-0.2.0.tar.gz