A toolkit for working with phylogenetic data.
v0.24.0
color_bar.cpp File Reference

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::pair< SvgGradientLinear, SvgGroup > make_svg_color_bar (SvgColorBarSettings const &settings, ColorMap const &map, ColorNormalization const &norm, std::string const &id)
 
static std::pair< SvgGradientLinear, SvgGroup > make_svg_color_bar_discrete_ (SvgColorBarSettings const &settings, std::map< double, Color > const &stops)
 
static std::pair< SvgGradientLinear, SvgGroup > make_svg_color_bar_gradient_ (SvgColorBarSettings const &settings, ColorMap const &map, ColorNormalization const &norm, std::string const &id)
 
static void make_svg_color_bar_tickmarks_ (SvgColorBarSettings const &settings, ColorMap const &map, ColorNormalization const &norm, SvgGroup &group)
 
SvgGroup make_svg_color_list (ColorMap const &map, std::vector< std::string > const &labels)
 
SvgGroup make_svg_color_list (std::vector< Color > const &colors, std::vector< std::string > const &labels)
 
void make_svg_color_list_entry_ (size_t i, Color const &color, std::string const &label, SvgGroup &group)