Hi,
I have an array of TEllipse’s that represent my pmt’s. I’ll plan to color in the pmt’s depending on how much light they detected and want to put a color scale drawn next to just like what TH2 option “z”. How can I draw the color scale without drawing a TH2?
Surge
I figured it out. I just drawn it all by hand in a canvas.
double size = 0.5;
for (int i=51; i<=100; i++){
TBox *colorbar = new TBox(0., (i-75)*size, 1.0, (i-74)*size);
colorbar->SetFillColor(i);
colorbar->Draw();
}
TGaxis *axis = new TGaxis(1.0, -24*size,1.0, 26*size, min, max, 510,"+L");
axis->Draw();
Surge