Skip to content

num::plt::heatmap

Defined in header <plot/plot.hpp>

template <typename Container>
void heatmap(const Container &u, int N, double h, double vmin = 0.0, double vmax = 1.0);  // (1)

template <class Field>
void heatmap(const Field &g, double vmin = 0.0, double vmax = 1.0);  // (2)

(1) Add an N-by-N row-major scalar array as a heatmap.

(2) Add a square field exposing as_vec(), N(), and h() as a heatmap.