|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_PLOTTING_HEATMAP_COLORIZATION_H_
2 #define GENESIS_POPULATION_PLOTTING_HEATMAP_COLORIZATION_H_
45 namespace population {
72 std::vector<std::vector<double>>
values;
99 Spectrum
const& spectrum
103 Spectrum
const& spectrum,
108 Spectrum
const& spectrum,
109 std::shared_ptr<utils::BaseOutputTarget> target
129 return diverging_scale_;
134 diverging_scale_ = value;
140 return invert_vertically_;
145 invert_vertically_ = value;
151 return max_per_column_;
156 max_per_column_ = value;
173 return use_empty_window_color_;
178 use_empty_window_color_ = value;
199 bool log_scale_ =
false;
200 bool diverging_scale_ =
false;
201 bool invert_vertically_ =
true;
202 bool max_per_column_ =
false;
204 bool use_empty_window_color_ =
true;
212 #endif // include guard
Store a list of colors and offer them as a map for values in range [ 0.0, 1.0 ].
std::pair< utils::Matrix< utils::Color >, double > spectrum_to_image(Spectrum const &spectrum) const
self_type & invert_vertically(bool value)
~HeatmapColorization()=default
self_type & use_empty_window_color(bool value)
utils::Color const & empty_window_color() const
self_type & log_scale(bool value)
double spectrum_to_bmp_file(Spectrum const &spectrum, std::shared_ptr< utils::BaseOutputTarget > target) const
std::pair< utils::SvgGroup, double > spectrum_to_svg(Spectrum const &spectrum, utils::SvgMatrixSettings settings={}) const
self_type & diverging_scale(bool value)
self_type & palette(std::vector< utils::Color > const &value)
bool invert_vertically() const
bool diverging_scale() const
std::vector< std::vector< double > > values
HeatmapColorization(std::vector< utils::Color > const &palette)
utils::ColorMap & color_map()
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
HeatmapColorization()=default
self_type & max_per_column(bool value)
bool use_empty_window_color() const
HeatmapColorization & operator=(HeatmapColorization const &)=default
self_type & empty_window_color(utils::Color const &value)
ColorMap & palette(std::vector< Color > const &value)
Color const & mask_color() const
Color that indicates values equal to ColorNormalization::mask_value() or non-finite values.
bool max_per_column() const
Spectrum(std::string const &chromosome)