A library for working with phylogenetic and population genetic data.
v0.32.0
pie_chart.cpp File Reference
#include "genesis/utils/formats/svg/pie_chart.hpp"
#include "genesis/utils/formats/svg/attributes.hpp"
#include "genesis/utils/formats/svg/helper.hpp"
#include "genesis/utils/formats/svg/object.hpp"
#include "genesis/utils/formats/svg/shapes.hpp"
#include "genesis/utils/color/color.hpp"
#include <cassert>
#include <cstdlib>
#include <numeric>
#include <stdexcept>

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

SvgGroup make_svg_pie_chart (std::vector< double > const &values, std::vector< Color > const &colors, double radius=1.0, double start_angle=- PI/2.0, bool clockwise=true)
 Make a pie chart in SVG. More...