Skip to content

rvodden/pysketcher

Repository files navigation

PySketcher

image

image

image

image

image

image

image

image

image

This is alpha software - the interface is likely to change with every release prior to 0.1.0.

PySketcher is a modern Python library designed to make creating geometric, mathematical and physical diagrams very easy.

This library is continues the legacy of Hans Petter Langtangen. Work done since he sadly passed in 2016 includes:

  1. The MatlibplotDraw object is no longer global and is no longer tightly coupled to the shape object. There is now a DrawingTool interface which this class implements.
  2. Code is organised into multiple files and published on pypi.
  3. Shapes are immutable. This means functions such as rotate return modified copies of the original shape, rather than altering the shape on which they are called.
  4. Angles are in radians not degrees.
  5. The Composition object is used more consistently. Previously objects such as Beam were direct children of Shape which led to code repetition.

Please see the documentation for more information.