Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
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:132
watplot::canvas
TCanvas * canvas
Definition:
watplot.hh:174
watplot
Definition:
watplot.hh:27
skymap
Definition:
skymap.hh:45
l
int l
Definition:
cbc_plots.C:434