Skip to content

Commit

Permalink
Introduce 'zOrder' to give control over drawing order
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Feb 21, 2024
1 parent 038f1a1 commit 7ae3b83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ \subsubsection{Plot Curves}\label{plot-curves}
expression x = time "X coordinate values";
expression y "Y coordinate values";
String legend "Legend";
Integer zOrder = 0 "Drawing order control";
end Curve;
\end{lstlisting}

Expand All @@ -256,6 +257,9 @@ \subsubsection{Plot Curves}\label{plot-curves}
Variable replacements, as described in \cref{variable-replacements}, can be used in \lstinline!legend!.
The order of presentation within the plot legend corresponds to order of appearance in the \lstinline!curves! of a \lstinline!Plot!.

The \lstinline!zOrder! gives control over drawing order, with higher values corresponding to closer to front.
Ties are resolved using order of appearance in the \lstinline!curves! of a \lstinline!Plot!, with later appearance corresponding to closer to front.

\subsubsection{Escape Sequences}\label{text-markup-escape-sequences}

In an attribute inside a figure where the variable replacements of \cref{variable-replacements} or the text markup of \cref{text-markup-in-captions} can be used, the following use of \firstuse[text markup escape sequence]{text markup escape sequences}\index{escape sequence!text markup} applies.
Expand Down

0 comments on commit 7ae3b83

Please sign in to comment.