I want to make following diagram-
Below is my code of smartdiagram
–
\begin{figure}
\centering
\smartdiagramset{back arrow disabled=true,
module minimum width=2cm,
module minimum height=2cm,
module x sep=3cm,
text width=2cm,
additions={
additional item offset=0.5cm,
additional item border color=red,
additional connections disabled=false,
additional arrow color=red,
additional arrow tip=stealth,
additional arrow line width=1pt,
additional item width=2cm
}
}
\smartdiagramadd[flow diagram:horizontal]{
Reward Function (R), Inverse Reinforcement Learning, Optimal Policy ($\pi$)
}{below of module1/R that explains expert trajectories,above of module2/Environment Model (MDP), below of module3/Expert trajectories}
\end{figure}
This is the generated diagram-
I want to changes following things in this diagram-
- The direction of arrow (From right to left and from top to bottom)
- The look and feel of
additional
modules similar to other - The arrow corresponding to
additional
modules similar to other
Best Answer
Changing
arrow style
from the default<-
to->
ensures that the arrows go in the correct direction for the main nodes:For a uniform look to the arrows remove
[I'm not sure if you want this or not.]
To support the arrows going in the different directions for the additional modules, you need to leave the automatic connections disabled and add them afterwards by hand.
To change the look of the additional modules, you can adapt their style using the keys described in the manual.
Complete code: