voronoi

Create Voronoi art with rounded region edges

Create Voronoi art with rounded region edges Question: I’m trying to create some artistic "plots" like the ones below: The color of the regions do not really matter, what I’m trying to achieve is the variable "thickness" of the edges along the Voronoi regions (espescially, how they look like a bigger rounded blob where they …

Total answers: 2

Colorize Voronoi Diagram

Colorize Voronoi Diagram Question: I’m trying to colorize a Voronoi Diagram created using scipy.spatial.Voronoi. Here’s my code: import numpy as np import matplotlib.pyplot as plt from scipy.spatial import Voronoi, voronoi_plot_2d # make up data points points = np.random.rand(15,2) # compute Voronoi tesselation vor = Voronoi(points) # plot voronoi_plot_2d(vor) # colorize for region in vor.regions: if …

Total answers: 3