# Change the x-axis min and max values for QT GUI time sink block

**URL:** <https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872>\
**Category:** GNU Radio\
**Created:** [July 9, 2014, 8:46pm UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872 "2014-07-09T20:46:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 9, 2014, 8:46pm UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/1 "2014-07-09T20:46:27Z")

</div>

Hi all,  
In WX GUI time sink when we roll the mouse over the plot we can change  
the range of y-axis and x-axis but in QT GUI time sink it is not  
changing in this way.We can set the range for y-axis in block  
parameters but how can I change the x-axis min and max values for QT  
GUI time sink block during run time??  
regards,  
Ali

---

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [July 10, 2014, 11:21am UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/2 "2014-07-10T11:21:13Z")

</div>

On 07/09/2014 06:30 AM, jason sam wrote:

> Hi all,  
> In WX GUI time sink when we roll the mouse over the plot we can change  
> the range of y-axis and x-axis but in QT GUI time sink it is not  
> changing in this way.We can set the range for y-axis in block  
> parameters but how can I change the x-axis min and max values for QT  
> GUI time sink block during run time??  
> regards,  
> Ali

Hey Ali,

you can just select the portion you want to see with the mouse.

M

---

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [July 10, 2014, 11:43am UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/3 "2014-07-10T11:43:53Z")

</div>

Yes i know that but it is used for zooming…actually my sink is not  
showing the complete waveform as the time period of waveform is  
greater than the max value on time axis,so i want to know how can i  
expand my time axis??  
Regards,  
Ali

---

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [July 10, 2014, 12:29pm UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/4 "2014-07-10T12:29:44Z")

</div>

On 07/10/2014 11:42 AM, jason sam wrote:

> Yes i know that but it is used for zooming..actually my sink is not  
> showing the complete waveform as the time period of waveform is  
> greater than the max value on time axis,so i want to know how can i  
> expand my time axis??

You can set the number of points to show in the setup dialog.

M

---

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [July 10, 2014, 3:24pm UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/5 "2014-07-10T15:24:22Z")

</div>

On Wed, Jul 9, 2014 at 12:30 AM, jason sam [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,  
> In WX GUI time sink when we roll the mouse over the plot we can change  
> the range of y-axis and x-axis but in QT GUI time sink it is not  
> changing in this way.We can set the range for y-axis in block  
> parameters but how can I change the x-axis min and max values for QT  
> GUI time sink block during run time??  
> regards,  
> Ali

Use the menu. Middle-click (or whatever the equivalent of a middle mouse  
click, “Button3”, is on your machine) to get access to the menu options.  
Then you can set the “Number of Points” to display.

Tom

---

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [July 11, 2014, 6:39am UTC](https://www.ruby-forum.com/t/change-the-x-axis-min-and-max-values-for-qt-gui-time-sink-block/230872/6 "2014-07-11T06:39:39Z")

</div>

Thanx got it!
