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:
- 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.
- Code is organised into multiple files and published on pypi.
- 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. - Angles are in radians not degrees.
- The Composition object is used more consistently. Previously objects such as Beam were direct children of Shape which led to code repetition.