## SHOW_LEGEND_UP(alias, ?hideStereotype), SHOW_LEGEND_DOWN(...), SHOW_LEGEND_LEFT(...) or SHOW_LEGEND_RIGHT(...)
## SHOW_FLOATING_LEGEND(?alias, ?hideStereotype)
`LAYOUT_WITH_LEGEND()` and SHOW_LEGEND(?hideStereotype)` adds the legend at the bottom right of the picture like below and additional whitespace is created.


Therefore calculated legends can be defined relative to an element too that existing whitespace can be reused like below.
Therefore a floating legends can be added via SHOW_FLOATING_LEGEND() and positioned with Lay_Distance() that existing whitespace can be reused like below.
- **SHOW_LEGEND_UP(alias, ?hideStereotype)**: shows the legend above the alias element
- **SHOW_LEGEND_DOWN(alias, ?hideStereotype)**: shows the legend below the alias element
- **SHOW_LEGEND_LEFT(alias, ?hideStereotype)**: shows the legend left of the alias element
- **SHOW_LEGEND_RIGHT(alias, ?hideStereotype)**: shows the legend right of the alias element
- `SHOW_FLOATING_LEGEND(?alias, ?hideStereotype): shows the legend in the drawing area
@ -280,10 +280,10 @@ Rel_D(user, user1, "requests", "async message", "if sprite starts with &, it def
In rare cases, you can force the layout of objects which have no relationships by using:
* `Lay_U`
* `Lay_D`
* `Lay_L`
* `Lay_R`
* `Lay_U(from, to)`
* `Lay_D(from, to)`
* `Lay_L(from, to)`
* `Lay_R(from, to)`
In following sample a person uses different systems, and group of persons which have no relations
@ -318,6 +318,41 @@ Rel_L(x, s4, "uses")

(In combination with [SHOW_FLOATING_LEGEND()](LayoutOptions.md#show_floating_legend)) a greater distance between an element and the
e.g. floating legend could be required that all e.g. corners of the drawing area can be reached.
* `Lay_Distance(from, to, ?distance)`: Sets the distance between `from` and `to` with down alignment. (Lay_Distance(from,to,0) equals Lay_D(from, to))
In following sample the floating legend should be in the left bottom corner of the drawing are.
(The normal SHOW_LEGEND() call requires no extra Lay_Distance() call and the legend is automatically drawn below the diagram on the right side)