.. _py_tikz_shapes_doc: Add 2D shapes in a 3D space to tikzpy object (shapes object) ************************************************************ The shapes object allow to add 2D shapes to the tikzpy object such as: * Line between two points. See :ref:`shp.line ` * Path of multiple points. See :ref:`shp.path ` * Circle given by center and radius. See :ref:`shp.circle ` * Arc given by starting point, radius and angles. See :ref:`shp.arc ` and :ref:`shp.arc_by_center ` * Text label. See :ref:`shp.text ` * Image or bitmaps. See :ref:`shp.bitmap ` * Square grid shape (given by two corners). See :ref:`shp.grid ` Load main **tikzpy** class as follow and create and edit spatial 2D shapes and text: .. code-block:: python :linenos: import tikzpy ### Load main object tikZ = tikzpy.pytikz() ### Add point at x=0, y=0, z=0 p0 = tikZ.pto.pto(0,0,0) ### Add point at x=1, y=1, z=1 p2 = tikZ.pto.pto(1,1,1) ### Add a line for example l1 = self.tikZ.shp.line(p0, p1) l1.zorder = 1.1 ### Viewer Z-order and start bulding your drawing. More examples on how to use the shapes object can be found in :doc:`shapes examples `. Shapes functions. Class -> tikzpy.shp ------------------------------------- .. _py_tikz_shapes: .. currentmodule:: cls_shapes .. autoclass:: _shapes :members: