# How to draw a gene regulatory state space diagram in Mathematica

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

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

-

## migrated from stackoverflow.comMar 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:

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"}
]

-
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