Skip to content

line.put_start_and_end_on() #3358

@juanwinograd

Description

@juanwinograd

Description of bug / unexpected behavior

line method put_start_and_end_on(start,end) raises an excpetion when start == end

Expected behavior

I think it should just draw one point

How to reproduce the issue

Code for reproducing the problem
line = DashedLine(np.zeros(3),np.zeros(3))
line.put_start_and_end_on(np.zeros(3),np.array([1,0,0]))

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Windows 10
  • RAM: 8GB
  • Python version (python/py/python3 --version): 3.10.8
  • Installed modules (provide output from pip list):
appdirs                1.4.4
asttokens              2.1.0
attrs                  18.2.0
backcall               0.2.0
certifi                2022.9.24
charset-normalizer     2.1.1
click                  8.1.3
click-default-group    1.2.2
cloup                  0.13.1
colorama               0.4.6
colour                 0.1.5
commonmark             0.9.1
contourpy              1.0.6
cycler                 0.11.0
debugpy                1.6.3
decorator              5.1.1
entrypoints            0.4
et-xmlfile             1.1.0
executing              1.2.0
fonttools              4.38.0
glcontext              2.3.7
idna                   3.4
imageio                2.27.0
ipykernel              6.17.1
ipython                8.6.0
isosurfaces            0.1.0
jedi                   0.18.2
jupyter_client         7.4.7
jupyter_core           5.0.0
kiwisolver             1.4.4
manim                  0.17.2
manim-fonts            0.2.0
ManimPango             0.4.2
mapbox-earcut          1.0.1
matplotlib             3.6.2
matplotlib-inline      0.1.6
matplotlib-label-lines 0.6.0
moderngl               5.7.2
moderngl-window        2.4.2
more-itertools         10.0.0
multipledispatch       0.6.0
nest-asyncio           1.5.6
networkx               2.8.8
numpy                  1.23.5
openpyxl               3.0.10
ordered-set            4.1.0
packaging              21.3
pandas                 1.5.2
parso                  0.8.3
pdflatex               0.1.3
pickleshare            0.7.5
Pillow                 9.3.0
pip                    23.2.1
platformdirs           2.5.4
prompt-toolkit         3.0.33
psutil                 5.9.4
pure-eval              0.2.2
pycairo                1.22.0
pydub                  0.25.1
pyglet                 2.0.0
Pygments               2.13.0
PyLaTeX                1.4.1
pyparsing              3.0.9
pyrr                   0.10.3
python-dateutil        2.8.2
pytz                   2022.6
pywin32                305
pyzmq                  24.0.1
requests               2.28.1
rich                   12.6.0
scipy                  1.9.3
screeninfo             0.8.1
setuptools             63.2.0
six                    1.16.0
skia-pathops           0.7.4
srt                    3.5.2
stack-data             0.6.1
svgelements            1.9.0
tornado                6.2
tqdm                   4.64.1
traitlets              5.5.0
typing_extensions      4.5.0
urllib3                1.26.13
watchdog               2.1.9
wcwidth                0.2.5
wheel                  0.38.4```
</details>


Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersissue:bugSomething isn't working... For use in issues

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions