87 const std::vector<std::pair<HT*, G4HnInformation*>>& hnVector)
89 if ( ! hnVector.size() )
return true;
91 fViewer->plots().init_sg();
94 fViewer->plots().set_current_plotter(0);
97 auto isWriteNeeded =
false;
99 for (
const auto& [ht, info] : hnVector) {
100 G4bool plotting = info->GetPlotting();
101 G4bool activation = info->GetActivation();
106 if ( ( ! plotting ) ||
108 ( info->GetDeleted() ) )
continue;
112 fViewer->set_current_plotter_style(fPlotParameters.
GetStyle());
115 tools::sg::plotter& plotter = fViewer->plots().current_plotter();
117 plotter.bins_style(0).color = tools::colorf_blue();
121 if ( ht->annotation(tools::histo::key_axis_x_title(), title) ) {
122 plotter.x_axis().title = title;
124 if ( ht->annotation(tools::histo::key_axis_y_title(), title) ) {
125 plotter.y_axis().title = title;
127 if ( ht->annotation(tools::histo::key_axis_z_title(), title) ) {
128 plotter.z_axis().title = title;
131#ifndef TOOLS_USE_FREETYPE
132 plotter.set_encoding_none();
137 plotter.x_axis().labels_style().encoding =
"PAW";
138 plotter.x_axis_is_log =
true;
141 plotter.y_axis().labels_style().encoding =
"PAW";
142 plotter.y_axis_is_log =
true;
145 plotter.z_axis().labels_style().encoding =
"PAW";
146 plotter.z_axis_is_log =
true;
148 isWriteNeeded =
true;
153 if (
G4int(fViewer->plots().current_index()) == (GetNofPlotsPerPage() - 1) ) {
154 result &= WritePage();
155 isWriteNeeded =
false;
159 fViewer->plots().next();
163 if ( isWriteNeeded ) {
164 result &= WritePage();