mithi / hexapod-robot-simulator

A hexapod robot simulator built from first principles
MIT License
768 stars 110 forks source link

Most plotter instance methods should be static methods #67

Closed mithi closed 4 years ago

mithi commented 4 years ago

https://github.com/mithi/hexapod-robot-simulator/blob/5c1f8a187e7497a37e9b2b5d66ec2fe72b3cc61f/hexapod/plotter.py#L13

def _draw_hexapod(self, fig, hexapod)
def _draw_scene(self, fig, hexapod)
def change_camera_view(self, fig, camera)

See also: Introduction to Static Methods for Dummies

mithi commented 4 years ago

Fixed by https://github.com/mithi/hexapod-robot-simulator/commit/623a6653f7804d4a428046b570ceb38d9ab595a0