Quantcast
Channel: Uncategorized - Matplotlib
Viewing all articles
Browse latest Browse all 50

Voronoi Drawings on PNG

$
0
0

I am working on a project where I display a full world map of the Foxhole game. The developers provide through their API the requirements to build a Voronoi diagram.

Through their API they provide coordinates like the following:

"x" : 0.49129963
"y" : 0.8499718

They also provide raw files like the following to draw the Voronoi diagrams on top of:

The end result would be something similar to the following with a bounding hexagon to contain the spread of the cells.

I’ve tried multiple python libraries with varying successes but unfortunately the majority of them suffer from code rot or were built for very specific implementations.

Can matplotlib achieve something like this? I am thinking that at the least I could provide the appropriate Voronoi library a hexagon combined with the coordinates and get a list of polygons to draw?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 50

Trending Articles