Merging r11186:11273 from grc branch.
[debian/gnuradio] / grc / blocks / wxgui_histosink2.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Histogram Sink
5 ###################################################
6  -->
7 <block>
8         <name>Histo Sink</name>
9         <key>wxgui_histosink2</key>
10         <import>from gnuradio.wxgui import histosink_gl</import>
11         <make>histosink_gl.histo_sink_f(
12         self.GetWin(),
13         title=$title,
14         num_bins=$num_bins,
15         frame_size=$frame_size,
16 )
17 #set $grid_pos = $grid_pos()
18 #if not grid_pos
19 self.Add(self.$(id).win)
20 #else
21 self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
22 #end if</make>
23         <callback>set_num_bins($num_bins)</callback>
24         <callback>set_frame_size($frame_size)</callback>
25         <param>
26                 <name>Title</name>
27                 <key>title</key>
28                 <value>Histogram Plot</value>
29                 <type>string</type>
30         </param>
31         <param>
32                 <name>Num Bins</name>
33                 <key>num_bins</key>
34                 <value>27</value>
35                 <type>int</type>
36         </param>
37         <param>
38                 <name>Frame Size</name>
39                 <key>frame_size</key>
40                 <value>1000</value>
41                 <type>int</type>
42         </param>
43         <param>
44                 <name>Grid Position</name>
45                 <key>grid_pos</key>
46                 <value></value>
47                 <type>grid_pos</type>
48         </param>
49         <sink>
50                 <name>in</name>
51                 <type>float</type>
52         </sink>
53         <doc>
54 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
55         </doc>
56 </block>