51f598aaedc73ef180913c670d2c20a8032aaf1e,doc/examples/edges/plot_random_shapes.py,,,#,15

Before Change


image3, _ = random_shapes((128, 128), max_shapes=10, min_pixel_intensity=50)
image4, _ = random_shapes((128, 128), max_shapes=10, min_pixel_intensity=0)

fig, axes = plt.subplots(2, 2, figsize=(10, 10))
for ax, image in zip(axes.ravel(), [image1, image2, image3, image4]):
    ax.imshow(image)
    ax.set_axis_off()

After Change


fig, axes = plt.subplots(nrows=2, ncols=3)
ax = axes.ravel()
ax[0].imshow(image, cmap="gray")
ax[0].set_title("Grayscale shape")

// The generated images can be much more complex. For example, let"s try many
// shapes of any color. If we want the colors to be particularly light, we can
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: 51f598aaedc73ef180913c670d2c20a8032aaf1e
Time: 2018-05-16
Author: egor.v.panfilov@gmail.com
File Name: doc/examples/edges/plot_random_shapes.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 5830eee2522cc9c00056f876e0e3a8debd184e7c
Time: 2017-07-30
Author: gael.varoquaux@normalesup.org
File Name: examples/03_connectivity/plot_signal_extraction.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: 77fc2272e32e6302d34b80febdc1b8fdf49de61d
Time: 2018-10-27
Author: aloctavodia@gmail.com
File Name: arviz/plots/densityplot.py
Class Name:
Method Name: plot_density