Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Mar 16 '12 at 20:40

This question came from our site for professional and enthusiast programmers.

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. – Szabolcs Mar 16 '12 at 9:24
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. – R. M. 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

share|improve this answer
I wouldn't use Axes for the axes for something like this; just draw them manually with Arrow. – Brett Champion Mar 17 '12 at 2:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.