.. _ex_groups: How to use the group object **tikzpy.grp** ****************************************** Examples of how to use the group object **tikzpy.grp**. Example 1 - Add shapes and points to a group -------------------------------------------- .. _ex_groups_ex1: **Test code:** .. literalinclude:: /_examples/tikzpy_groups/test_pto_01_add_groups.py :linenos: :language: python **This would output:** .. include:: /_examples/tikzpy_groups/test_pto_01_add_groups.testout :literal: Example 2 - Add shapes and points to a group and copy, move it or translate --------------------------------------------------------------------------- .. _ex_groups_ex2: See the following example: .. image:: test_pto_02_add_groups.tikz.png :width: 500px :align: center Drawing created with the following tikzpy code: .. literalinclude:: /_examples/tikzpy_groups/test_pto_02_add_groups.py :linenos: :language: python Example 3 - Add shapes and points to a group and copy, translate and rotate --------------------------------------------------------------------------- .. _ex_groups_ex3: See the following example: .. image:: test_pto_03_add_groups.tikz.png :width: 500px :align: center Drawing created with the following tikzpy code: .. literalinclude:: /_examples/tikzpy_groups/test_pto_03_add_groups.py :linenos: :language: python Example 4 - Creating Hypocycloids --------------------------------- .. _ex_groups_ex4: See the following example: .. image:: test_pto_04_add_groups.tikz.png :width: 500px :align: center Drawing created with the following tikzpy code: .. literalinclude:: /_examples/tikzpy_groups/test_pto_04_add_groups.py :linenos: :language: python