Point map Example (Continuous data)#

Here shows how to draw the point map

import numpy as np
import milkviz as mv

First let’s create some random data#

np.random.seed(0)
x = np.random.randint(0, 100, 1000)
y = np.random.randint(0, 100, 1000)
values = np.random.randint(0, 100, 1000)

Create the cell map#

mv.point_map(x, y, values=values, cbar_kw={"title": "Value"})
Value

Out:

<AxesSubplot:>

Total running time of the script: ( 0 minutes 1.207 seconds)

Gallery generated by Sphinx-Gallery