Skip to content

Commit

Permalink
Merge pull request #19918 from sympy/eric-wieser/show-beam-plot
Browse files Browse the repository at this point in the history
physics.continuum_mechanics: Actually show the plot in the docs
  • Loading branch information
moorepants committed Aug 7, 2020
2 parents 3217068 + 0723514 commit 8269423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sympy/physics/continuum_mechanics/beam.py
Expand Up @@ -1598,12 +1598,14 @@ def draw(self, pictorial=True):
>>> b.apply_support(50, "pin")
>>> b.apply_support(0, "fixed")
>>> b.apply_support(20, "roller")
>>> b.draw()
>>> p = b.draw()
>>> p
Plot object containing:
[0]: cartesian line: 25*SingularityFunction(x, 5, 0) - 25*SingularityFunction(x, 23, 0)
+ SingularityFunction(x, 30, 1) - 20*SingularityFunction(x, 50, 0)
- SingularityFunction(x, 50, 1) + 5 for x over (0.0, 50.0)
[1]: cartesian line: 5 for x over (0.0, 50.0)
>>> p.show()
"""
if not numpy:
Expand Down

0 comments on commit 8269423

Please sign in to comment.