Article Outline
Python matplotlib example 'data'
python data
Python matplotlib example: data
WALLS = (
((-4, 4), (-4, -4)),
((-4, -4), (4, -4)),
((4, -4), (4, 4)),
((4, 4), (-2, 4)),
((0, 4), (0, 0)),
((-4, 2), (-2, 2)),
((-2, 2), (-2, -2)),
((-2, -2), (2, -2)),
((2, -2), (2, 2)),
)
TRAJECTORIES = (
(
(3.0, -3.0),
(3.0, -2.1),
(2.8, -1.4),
(3.1, -0.5),
(2.45, 0.3),
(2.3, 0.98),
(2.65, 1.8),
(2.6, 2.1),
(2.2, 2.4),
(1.9, 2.44),
(1.4, 1.7),
(1.34, 1.4),
(1.54, 1.2),
(1.6, 0.9),
(1.55, 0.3)
),
(
(3, -3),
(1.9, -2.9),
(1.3, -3.0),
(0.6, -3.0),
(-0.7, -3.0),
(-1.4, -3.2),
(-2.3, -3.1),
(-3.3, -2.9),
(-3.9, -1.4),
(-3.7, -0.4),
(-3.3, -0.2),
(-3, -0.5),
(-2.85, -1),
(-2.8, -1.55),
(-2.5, -1.89)
),
)
Python links
- Learn Python: https://pythonbasics.org/
- Python Tutorial: https://pythonprogramminglanguage.com