A library for working with phylogenetic and population genetic data.
v0.32.0
SvgAxisSettings Struct Reference

#include <genesis/utils/formats/svg/axis.hpp>

Detailed Description

Definition at line 49 of file axis.hpp.

Public Types

enum  Position { kLeft, kRight, kTop, kBottom }
 

Public Attributes

double axis_text_size = 10.0
 Size of the text of the axis name. More...
 
double label_text_size = 10.0
 Size of the text of the tick labels. More...
 
double length = 1.0
 Length of the axis. More...
 
double offset = 10.0
 Offset from the origin for the axis. More...
 
Position position = Position::kBottom
 Position of the axis, relative to the plot that it is describing. More...
 
double tick_size = 8.0
 Length of the tick lines drawn from the axis to mark the tick labels. More...
 

Member Enumeration Documentation

◆ Position

enum Position
strong
Enumerator
kLeft 
kRight 
kTop 
kBottom 

Definition at line 57 of file axis.hpp.

Member Data Documentation

◆ axis_text_size

double axis_text_size = 10.0

Size of the text of the axis name.

Definition at line 103 of file axis.hpp.

◆ label_text_size

double label_text_size = 10.0

Size of the text of the tick labels.

Definition at line 98 of file axis.hpp.

◆ length

double length = 1.0

Length of the axis.

We always start drawing from 0.0 into the mathematically positive axis direction (left to right, bottom to top), and draw an axis line of the specified length.

Definition at line 80 of file axis.hpp.

◆ offset

double offset = 10.0

Offset from the origin for the axis.

Always positive - for a left axis, this moves the axis towars the left, for a top axis towards the top, etc.

Definition at line 88 of file axis.hpp.

◆ position

Position of the axis, relative to the plot that it is describing.

Definition at line 72 of file axis.hpp.

◆ tick_size

double tick_size = 8.0

Length of the tick lines drawn from the axis to mark the tick labels.

Definition at line 93 of file axis.hpp.


The documentation for this struct was generated from the following file: