Subplot(xyz)

plotting
#1

Dear All,

how can I use subplot in the following way?

In matlab:

nn =2;
subplot(2,2,nn);

In Julia

using PyPlot
 nn = 2
subplot(12nn)

ValueError('Integer subplot specification must be a three-digit number, not 36',)

Is this a bug in PyPlot?

0 Likes

#2

With PyPlot, you can do
subplot(2,2,nn)

1 Like

#3

Okay, It is solved! thanks very much!!!

0 Likes