Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update image and code block #3440

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/3440.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: update image and code block
Binary file modified doc/source/images/lplot_vtk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 5 additions & 8 deletions doc/source/user_guide/plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@ You plot lines within Python using the :func:`Mapdl.lplot() <ansys.mapdl.core.Ma
.. code:: pycon

>>> from ansys.mapdl.core import launch_mapdl
>>> import numpy as np
>>> mapdl = launch_mapdl()

Create a rectangle with a few holes

# Create a rectangle with a few holes
>>> mapdl.prep7()
>>> rect_anum = mapdl.blc4(width=1, height=0.2)

Create several circles in the middle in the rectangle

# Create several circles in the middle in the rectangle
>>> for x in np.linspace(0.1, 0.9, 8):
... mapdl.cyl4(x, 0.1, 0.025)
...

Generate a line plot

# Generate a line plot
>>> mapdl.lplot(color_lines=True, cpos="xy")


Expand All @@ -60,8 +58,7 @@ extrudes it.

>>> plate_holes = mapdl.asba(rect_anum, "all")

Extrude this area

# Extrude this area
>>> mapdl.vext(plate_holes, dz=0.1)
>>> mapdl.vplot()

Expand Down
Loading