HIPO4 C++ Library 4.4.1
Columnar I/O library for CLAS12 physics data
Loading...
Searching...
No Matches
ascii::Asciichart Class Reference

#include <ascii.h>

Public Types

enum  Type { LINE = 0 , CIRCLE }
 

Public Member Functions

 Asciichart (const std::vector< double > &series)
 
 Asciichart (const std::vector< std::vector< double > > &series)
 
 Asciichart (const std::unordered_map< std::string, std::vector< double > > &series)
 
Asciicharttype (Type type)
 Set type of chart.
 
Asciichartheight (double height)
 Set height of chart.
 
Asciichartstyles (const std::vector< Style > &styles)
 Set colors of chart.
 
Asciichartmin (double min)
 Set min of chart.
 
Asciichartmax (double max)
 Set max of chart.
 
Asciichartoffset (size_t offset)
 Set offset of label from axis.
 
Asciichartlegend_padding (size_t padding)
 Set padding between legend and label.
 
Asciichartshow_legend (bool show)
 If show legend.
 
Asciichartsymbols (const std::map< std::string, std::string > &symbols)
 Set symbols used to plot.
 
std::string Plot ()
 Generate this chart.
 

Member Enumeration Documentation

◆ Type

Enumerator
LINE 
CIRCLE 

Constructor & Destructor Documentation

◆ Asciichart() [1/3]

ascii::Asciichart::Asciichart ( const std::vector< double > &  series)
inlineexplicit

◆ Asciichart() [2/3]

ascii::Asciichart::Asciichart ( const std::vector< std::vector< double > > &  series)
inlineexplicit

◆ Asciichart() [3/3]

ascii::Asciichart::Asciichart ( const std::unordered_map< std::string, std::vector< double > > &  series)
inlineexplicit

Member Function Documentation

◆ type()

Asciichart & ascii::Asciichart::type ( Type  type)
inline

Set type of chart.

◆ height()

Asciichart & ascii::Asciichart::height ( double  height)
inline

Set height of chart.

◆ styles()

Asciichart & ascii::Asciichart::styles ( const std::vector< Style > &  styles)
inline

Set colors of chart.

◆ min()

Asciichart & ascii::Asciichart::min ( double  min)
inline

Set min of chart.

This value will be override if larger than true min value.

◆ max()

Asciichart & ascii::Asciichart::max ( double  max)
inline

Set max of chart.

This value will be override if less than true max value.

◆ offset()

Asciichart & ascii::Asciichart::offset ( size_t  offset)
inline

Set offset of label from axis.

◆ legend_padding()

Asciichart & ascii::Asciichart::legend_padding ( size_t  padding)
inline

Set padding between legend and label.

◆ show_legend()

Asciichart & ascii::Asciichart::show_legend ( bool  show)
inline

If show legend.

◆ symbols()

Asciichart & ascii::Asciichart::symbols ( const std::map< std::string, std::string > &  symbols)
inline

Set symbols used to plot.

◆ Plot()

std::string ascii::Asciichart::Plot ( )
inline

Generate this chart.


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