Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
    
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
3  
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. –  rm -rf Mar 16 '12 at 20:53
add comment

migrated from stackoverflow.com Mar 16 '12 at 20:40

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

1 Answer

This could be useful to get started:

Graphics[
 GraphicsComplex[
  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
2  
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
add comment

Your Answer

 
discard

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