I'm using subplot to evaluate some conditions, with that I create two arrays with my test conditions for example:
A=[ -2, -.1, .1, 2 ]
B=[ -4, -.2, .2, 4 ]
Then I evaluate it in a loop:
for i,a in enumerate(A):
for j,b in enumerate(B):
U_E[i][j]=u(t,b,a)
And to finish I plot it:
f, axarr = plt.subplots(len(A),len(B), sharex=True, sharey='row')
for i in range(len(A)):
for j in range(len(B)):
axarr[i, j].plot(t, U_E[i][j])
It's nice and I'm almost happy with that. :-) It's something like:
But I would love to add the values of A
and B
as a "superaxis" to quickly see that B
and A
are for each plot.
Something like: