Sub-diagram

On PlantUML, you can mix all diagram type and make sub-diagram.

To activate this feature, the sub-diagram must:

Basic example

Here is a basic example of sub-diagram, with adding an Activty diagram on a note on a Class diagram:

[Ref. QA-6947]

By default the background color of a sub-diagram is white. This can be solved by adding skinparam Backgroundcolor transparent to the sub-diagram.

Besides being used in other elements or notes, they can also be used in messages. For this, the sub-diagram must be all on one line:

Inheritage of handwritten skinparam

Sub-diagram can only herite of the handwritten skinparam from the hosted diagram, as:

[Ref. QA-9043]

Collection of all ref. of sub-diagram: