Is it possible to draw in Mathematica a state space diagrams like these two?!

enter image description here

I tried a lot but since I am fairly new to Mathematica, I could not reproduce the desired result.

  • $\begingroup$ You can build it using graphics primitives such as Line and Arrow. Please do post what you have already tried and explain the precise difficulties you ran into. $\endgroup$
    – Szabolcs
    Mar 16 '12 at 9:24
  • 3
    $\begingroup$ Please post some background info on how these state-space diagrams are generated (conceptually) and what the role of $a$ is. I ask because it is very easy to reconstruct the above with simple graphics primitives, but perhaps a more involved answer might be one that generates this based on the state without having to manually fiddle with the arrows. Right now, this is simply an exercise in positioning arrows. $\endgroup$
    – rm -rf
    Mar 16 '12 at 20:53

This could be useful to get started:

  Tuples[{0, 1}, {2}], {Thick, Blue, Arrowheads[.1],
   Arrow[{{2, 1}, {3, 1}, {4, 2}, {4, 3}}, .1]}],
 Axes -> True, AxesOrigin -> -{0.5, 0.5}, 
 AxesStyle -> Arrowheads[.05], GridLines -> {{.5, 1.5}, {.5, 1.5}}, 
 PlotRange -> {{-.5, 1.5}, {-.5, 1.5}}, Ticks -> {{0, 1}, {0, 1}}, 
 AxesLabel -> {"b", "c"}

Mathematica graphics

  • 2
    $\begingroup$ I wouldn't use Axes for the axes for something like this; just draw them manually with Arrow. $\endgroup$ Mar 17 '12 at 2:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy