Closed kalok87 closed 10 years ago
That's very strange -- are you sure you followed all of the steps? I just tried it on one of our machines, and I get the picture you have at the top. Numpy.add should be ok in this case, because the surround is meant to be a grating ring, not a grating disk -- try doing matrixplot(surround()) to see. Maybe you left off the numpy.subtract operator from the surroundring? You can plot each step as you do it, and will probably see the problem, because clearly in your version the center has not successfully been subtracted out or multiplied out from the surround grating.
Dear Developers,
In the chapter 'Generating patterns' of the User Manuel, there could be a mistake in the second part of 'Composite patterns'.
If we follow the output, we are supposed to have output:
But however, what I am getting is this one:
I think the reason for this is that we use numpy.add as the operator in the last command,
pattern.Composite( generators[center,surround], operator=numpy.add, xdensity=160,ydensity=160)