Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The origin code might be #13
The following code should be the correct one.
import random
import pylab
dt = pylab.linspace(0, 12 * pylab.pi, 10000)
xs = pylab.sin(dt) * (
pylab.exp(pylab.cos(dt)) - 2 * pylab.cos(4 * dt) + (pylab.sin(dt / 12)) ** 5
)
ys = pylab.cos(dt) * (
pylab.exp(pylab.cos(dt)) - 2 * pylab.cos(4 * dt) + (pylab.sin(dt / 12)) ** 5
)
for i in range(5):
for j in range(5):
c = [random.random() for x in range(3)]
pylab.fill(xs + j * 10, ys + i * 10, color=c)
for i in range(5):
for j in range(5):
if i == j or i + j == 4:
c = [random.random() for x in range(3)]
pylab.fill(xs + (j + 6) * 10, ys + i * 10, color=c)
pylab.axis("off")
pylab.show()