Mesh based colormap graph for plotting. More...
#include <cairo.h>
#include <vector>
#include "palette.hpp"
#include "graph.hpp"
#include "colormap.hpp"
#include "coordmapper.hpp"
#include "interpolation.hpp"
Go to the source code of this file.
Classes | |
class | MeshColormap |
Class for colormap type plots on a regular rectangular mesh. More... | |
Enumerations | |
enum | interpolation_e { INTERPOLATION_CLOSEST = 0 , INTERPOLATION_BILINEAR , INTERPOLATION_BICUBIC } |
Interpolation type enum. More... | |
enum | zscale_e { ZSCALE_LINEAR = 0 , ZSCALE_LOG , ZSCALE_RELLOG } |
Z-scale enum. More... | |
Detailed Description
Mesh based colormap graph for plotting.
Enumeration Type Documentation
◆ interpolation_e
enum interpolation_e |
Interpolation type enum.
The interpolation can be either 0th order (INTERPOLATION_CLOSEST), 1st order (INTERPOLATION_BILINEAR) or 3rd order (INTERPOLATION_BICUBIC).
Enumerator | |
---|---|
INTERPOLATION_CLOSEST | Closest point interpolation. |
INTERPOLATION_BILINEAR | Bilinear interpolation. |
INTERPOLATION_BICUBIC | Bicubic interpolation. |
◆ zscale_e
enum zscale_e |
Z-scale enum.
The zscale can be either linear scale (ZSCALE_LINEAR), logarithmic scale (ZSCALE_LOG) or relative logarithmic (ZSCALE_RELLOG). The relative logarithmic scaling follows the relation
, where x is prescaled to range [0,1]. The z-ranges completely contained on the negative side are inverted to positive and z-ranges both on negative and positive sides are scaled separately to provide magnification close to zero.
Enumerator | |
---|---|
ZSCALE_LINEAR | Linear scale. |
ZSCALE_LOG | Logarithmic scale. |
ZSCALE_RELLOG | Relative logarithmic scale. |