84{
85 if ( ! htVector.size() ) return true;
86
87 fViewer->plots().init_sg();
88
90 fViewer->plots().set_current_plotter(0);
91
93 G4bool isWriteNeeded =
false;
94
95 for (
G4int i=0; i<
G4int(htVector.size()); ++i ) {
100
101
102 if ( ( ! plotting ) ||
104
105 T* ht = htVector[i];
106
107
108 fViewer->plot(*ht);
109 fViewer->set_current_plotter_style(fPlotParameters.
GetStyle());
110
111
112 tools::sg::plotter& plotter = fViewer->plots().current_plotter();
113
114 plotter.bins_style(0).color = tools::colorf_blue();
115
116
118 if ( ht->annotation(tools::histo::key_axis_x_title(), title) ) {
119 plotter.x_axis().title = title;
120 }
121 if ( ht->annotation(tools::histo::key_axis_y_title(), title) ) {
122 plotter.y_axis().title = title;
123 }
124 if ( ht->annotation(tools::histo::key_axis_z_title(), title) ) {
125 plotter.z_axis().title = title;
126 }
127
128#ifndef TOOLS_USE_FREETYPE
129 plotter.set_encoding_none();
130#endif
131
132
134 plotter.x_axis().labels_style().encoding = "PAW";
135 plotter.x_axis_is_log = true;
136 }
138 plotter.y_axis().labels_style().encoding = "PAW";
139 plotter.y_axis_is_log = true;
140 }
142 plotter.z_axis().labels_style().encoding = "PAW";
143 plotter.z_axis_is_log = true;
144 }
145 isWriteNeeded = true;
146
147#ifdef G4VERBOSE
150#endif
151
152
153 if (
G4int(fViewer->plots().current_index()) == (GetNofPlotsPerPage() - 1) ) {
154 G4bool result = WritePage();
155 finalResult = result && finalResult;
156 isWriteNeeded = false;
157 }
158
159
160 fViewer->plots().next();
161 }
162
163
164 if ( isWriteNeeded ) {
165 G4bool result = WritePage();
166 finalResult = result && finalResult;
167 }
168
169
170 return finalResult;
171}
const G4AnalysisVerbose * GetVerboseL3() const
G4bool GetIsActivation() const
G4String GetStyle() const
const char * name(G4int ptype)