This ROOT 7 example shows the various marker styles.
#include "ROOT/RText.hxx"
#include "ROOT/RMarker.hxx"
#include <string>
void rmarker()
{
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));
auto draw = canvas->Draw<RMarker>(pm);
draw->marker.size = 0.1;
}
}
canvas->Show();
}
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
static R__DLLEXPORT constexpr RGB_t kGreen
static R__DLLEXPORT constexpr RGB_t kBlue
A position (horizontal and vertical) in a RPad.
Namespace for ROOT features in testing.
- 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.