> 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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.codex.bio/codex/mav/user-instructions/voronoi-diagram.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
