> For the complete documentation index, see [llms.txt](https://help.codex.bio/codex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.codex.bio/codex/mav/user-instructions/voronoi-diagram.md).

# Voronoi Diagram

![Voronoi diagram on the region image](/files/-LYbO7YPKJDM9sbw6irA)

#### Calculating Voronoi Diagram

![Calculating Voronoi](/files/-Lo4n9rpEejmidgmCq8A)

In order to calculate the [Voronoi diagram](/codex/mav/technical-notes/algorithms.md) click 'Voronoi' item in the 'Analysis' menu.

![Choose region](/files/-LYbNMBG9kwQy5VMDtSq)

Then you will see dialog where you will be able to choose region where Voronoi overlay will be shown.

![Voronoi activity](/files/-LYbNmBK78soMVUmSzO-)

After clicking on the 'OK' button corresponding activity will appear in the [Background activities panel](/codex/mav/user-instructions/main-menu.md). When calculation completes, the overaly will be rendered to the image region.

![Export Voronoi](/files/-LYbNus_9ydfohJuqOy-)

You are able to export Voronoi overlay as PNG image. You need to click on the 'Export Voronoi' item in the 'Tools menu' and then choose a folder where images will be exported

#### Updating Voronoi

Changes on a [population](/codex/mav/user-instructions/population-table.md) that are automatically propagated to the Voronoi overlay include:

* Setting a new color
* Changing population visibility
* Adding a new population
* Removing population
