#include <line_graph.h>
|
| LineGraph (const TimeSeries *ts, const std::string &title="", const std::string &xaxis_title="", const std::string &yaxis_title="", bool legend=true, TStyle *style=nullptr, int width=700, int height=500) |
|
| ~LineGraph () |
|
TGraph * | Add (const std::string &ts_name, const std::string &legend_name="", const char *add_mg_options="L", short line_color=1, float line_color_alpha=1.0, short line_style=1, short line_width=1, short marker_color=1, float marker_color_alpha=1.0, short marker_style=1, float marker_size=1, short fill_color=0, float fill_color_alpha=1.0, short fill_style=1000) |
|
void | SetLegendPos (real_t x1, real_t y1, real_t x2, real_t y2) |
|
void | SetLegendPosNDC (real_t x1, real_t y1, real_t x2, real_t y2) |
|
void | SetMultiGraphDrawOption (const std::string &s) |
|
void | Draw (const char *canvas_draw_option="") |
|
void | SaveAs (const std::string &filenpath_wo_extension, const std::vector< std::string > &extensions) |
|
void | Update () |
|
TCanvas * | GetTCanvas () |
|
TMultiGraph * | GetTMultiGraph () |
|
TLegend * | GetTLegend () |
|
const std::vector< TGraph * > & | GetTGraphs (const std::string &ts_name) const |
|
TStyle * | GetTStyle () |
|
This class simplifies the creation of line graphs using data from TimeSeries
.
Definition at line 36 of file line_graph.h.
◆ LineGraph()
bdm::experimental::LineGraph::LineGraph |
( |
const TimeSeries * |
ts, |
|
|
const std::string & |
title = "" , |
|
|
const std::string & |
xaxis_title = "" , |
|
|
const std::string & |
yaxis_title = "" , |
|
|
bool |
legend = true , |
|
|
TStyle * |
style = nullptr , |
|
|
int |
width = 700 , |
|
|
int |
height = 500 |
|
) |
| |
- Parameters
-
style | This class does not take ownership of style |
Definition at line 31 of file line_graph.cc.
◆ ~LineGraph()
bdm::experimental::LineGraph::~LineGraph |
( |
| ) |
|
◆ Add()
TGraph * bdm::experimental::LineGraph::Add |
( |
const std::string & |
ts_name, |
|
|
const std::string & |
legend_name = "" , |
|
|
const char * |
add_mg_options = "L" , |
|
|
short |
line_color = 1 , |
|
|
float |
line_color_alpha = 1.0 , |
|
|
short |
line_style = 1 , |
|
|
short |
line_width = 1 , |
|
|
short |
marker_color = 1 , |
|
|
float |
marker_color_alpha = 1.0 , |
|
|
short |
marker_style = 1 , |
|
|
float |
marker_size = 1 , |
|
|
short |
fill_color = 0 , |
|
|
float |
fill_color_alpha = 1.0 , |
|
|
short |
fill_style = 1000 |
|
) |
| |
◆ Draw()
void bdm::experimental::LineGraph::Draw |
( |
const char * |
canvas_draw_option = "" | ) |
|
◆ GetTCanvas()
TCanvas * bdm::experimental::LineGraph::GetTCanvas |
( |
| ) |
|
◆ GetTGraphs()
const std::vector< TGraph * > & bdm::experimental::LineGraph::GetTGraphs |
( |
const std::string & |
ts_name | ) |
const |
◆ GetTLegend()
TLegend * bdm::experimental::LineGraph::GetTLegend |
( |
| ) |
|
◆ GetTMultiGraph()
TMultiGraph * bdm::experimental::LineGraph::GetTMultiGraph |
( |
| ) |
|
◆ GetTStyle()
TStyle * bdm::experimental::LineGraph::GetTStyle |
( |
| ) |
|
◆ SaveAs()
void bdm::experimental::LineGraph::SaveAs |
( |
const std::string & |
filenpath_wo_extension, |
|
|
const std::vector< std::string > & |
extensions |
|
) |
| |
◆ SetLegendPos()
◆ SetLegendPosNDC()
◆ SetMultiGraphDrawOption()
void bdm::experimental::LineGraph::SetMultiGraphDrawOption |
( |
const std::string & |
s | ) |
|
◆ Update()
void bdm::experimental::LineGraph::Update |
( |
| ) |
|
◆ c_
TCanvas* bdm::experimental::LineGraph::c_ = nullptr |
|
private |
◆ id_tgraphs_map_
std::unordered_map<std::string, std::vector<TGraph*> > bdm::experimental::LineGraph::id_tgraphs_map_ |
|
private |
◆ l_
TLegend* bdm::experimental::LineGraph::l_ = nullptr |
|
private |
◆ mg_
TMultiGraph* bdm::experimental::LineGraph::mg_ = nullptr |
|
private |
◆ mg_draw_option_
std::string bdm::experimental::LineGraph::mg_draw_option_ = "A" |
|
private |
◆ s_
TStyle* bdm::experimental::LineGraph::s_ = nullptr |
|
private |
◆ ts_
const TimeSeries* bdm::experimental::LineGraph::ts_ = nullptr |
|
private |
The documentation for this class was generated from the following files: