Skip to content

Commit ffa33e4

Browse files
authored
chore: graphics target (#2196)
* chore: graphics target * fix: review suggestions
1 parent f848977 commit ffa33e4

File tree

8 files changed

+24
-7
lines changed

8 files changed

+24
-7
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: "Install package wheel"
102102
shell: bash
103103
run: |
104-
pip install dist/${{ steps.wheel.outputs.wheel_name }}[plotting]
104+
pip install dist/${{ steps.wheel.outputs.wheel_name }}[graphics]
105105
106106
- name: "Install DPF"
107107
id: set-server-path

.github/workflows/examples_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: "Install package wheel"
9898
shell: bash
9999
run: |
100-
pip install dist/${{ steps.wheel.outputs.wheel_name }}[plotting]
100+
pip install dist/${{ steps.wheel.outputs.wheel_name }}[graphics]
101101
102102
- name: "Install DPF"
103103
id: set-server-path

.github/workflows/pydpf-post.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
- name: "Install ansys-dpf-core wheel"
9999
shell: bash
100100
run: |
101-
pip install dist/${{ steps.wheel.outputs.wheel_name }}[plotting]
101+
pip install dist/${{ steps.wheel.outputs.wheel_name }}[graphics]
102102
103103
- name: "Install DPF"
104104
id: set-server-path

.github/workflows/test_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: "Install package wheel"
8080
shell: bash
8181
run: |
82-
pip install dist/${{ steps.wheel.outputs.wheel_name }}[plotting]
82+
pip install dist/${{ steps.wheel.outputs.wheel_name }}[graphics]
8383
8484
- name: "Install DPF"
8585
id: set-server-path

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ PyDPF-Core plotting capabilities require `PyVista <https://pyvista.org/>`_ to be
8888
To install PyDPF-Core with its optional plotting functionalities, use this command:
8989

9090
```con
91-
pip install ansys-dpf-core[plotting]
91+
pip install ansys-dpf-core[graphics]
9292
```
9393

9494
For more information on PyDPF-Core plotting capabilities, see [Plot](https://dpf.docs.pyansys.com/version/stable/user_guide/plotting.html) in the PyDPF-Core documentation.

doc/source/getting_started/install.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ To install PyDPF-Core with its optional plotting functionalities, run this comma
2121

2222
.. code::
2323
24-
pip install ansys-dpf-core[plotting]
24+
pip install ansys-dpf-core[graphics]
25+
26+
.. warning::
27+
28+
``pip install ansys-dpf-core[plotting]`` is equivalent to the previous command, however, the "plotting" target
29+
only remains valid for legacy reasons and will soon be deprecated. Users are encouraged to use the "graphics"
30+
target instead.
2531

2632
For more information about PyDPF-Core plotting capabilities, see :ref:`user_guide_plotting`.
2733

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ dependencies = [
3838
]
3939

4040
[project.optional-dependencies]
41+
graphics = [
42+
# 2D chart plotting
43+
"matplotlib>=3.2",
44+
# 3D plotting
45+
"pyvista>=0.32.0",
46+
"vtk!=9.4.0",
47+
# Animations
48+
"imageio < 2.28.1",
49+
"imageio-ffmpeg",
50+
]
51+
4152
plotting = [
4253
# 2D chart plotting
4354
"matplotlib>=3.2",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ skip_install =
210210
clean: True
211211

212212
extras =
213-
html: plotting
213+
html: graphics
214214

215215
deps =
216216
clean:

0 commit comments

Comments
 (0)