coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
wat
tutorials
DrawSkymapWithSkyplot.C
Go to the documentation of this file.
1
{
// This example show how to plot skymap with watplot
2
3
skymap
sm
(
int
(4));
// create skymap object
4
sm
=0;
// set skymap to 0
5
6
// fill sm
7
for
(
int
l
=0;
l
<
sm
.size();
l
++) {
8
if
(
l
%2==0)
sm
.set(
l
,0.75);
else
sm
.set(
l
,1);
9
}
10
11
watplot
pl
;
// create skyplot object
12
pl.
plot
(
sm
);
// plot skymap
13
14
return
pl.
canvas
;
// used by THtml doc
15
}
pl
watplot pl
Definition:
DrawSkymapWithSkyplot.C:11
sm
sm
Definition:
DrawSkymapWithSkyplot.C:4
watplot::plot
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
Definition:
watplot.cc:150
watplot::canvas
TCanvas * canvas
Definition:
watplot.hh:192
watplot
Definition:
watplot.hh:45
l
int l
Definition:
cwb_report_cbc.C:775
skymap
Definition:
skymap.hh:63