This ROOT 7 example shows the various marker styles.
#include "ROOT/RText.hxx"
#include "ROOT/RMarker.hxx"
#include <string>
void rmarker()
{
auto canvas = RCanvas::Create("RMarker styles");
double num = 0.3;
double dx = 1/16.0;
for (int i = 1; i < 16; i++) {
for (int row=0;row<3;++row) {
if (row == 1)
else if (row==2)
auto text = canvas->Draw<RText>(
pt, std::to_string(
style));
text->text.font = RAttrFont::kVerdana;
text->text.align = RAttrText::kCenterTop;
text->text.color = RColor::kGreen;
auto draw = canvas->Draw<RMarker>(pm);
draw->marker.color = RColor::kBlue;
draw->marker.size = 0.1;
}
}
canvas->Show();
}
Option_t Option_t TPoint TPoint const char text
A position (horizontal and vertical) in a RPad.
- Date
- 2018-03-18
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Iliana Betsou
Definition in file rmarker.cxx.