# QT GUI Time Sink text scale bug

**URL:** <https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191>\
**Category:** GNU Radio\
**Created:** [November 23, 2014, 4:25am UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191 "2014-11-23T04:25:57Z")\
**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:** [November 23, 2014, 4:25am UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/1 "2014-11-23T04:25:57Z")

</div>

Can anyone confirm the QT GUI Time Sink has a time scale text bug when  
working at low sample rates in 3.7.6git-188-gf60cd24f﻿? Please see  
below:

[https://dl.dropboxusercontent.com/u/49570443/qt\_time\_scale\_grc.png](https://dl.dropboxusercontent.com/u/49570443/qt_time_scale_grc.png)  
[https://dl.dropboxusercontent.com/u/49570443/qt\_time\_scale\_plot.png](https://dl.dropboxusercontent.com/u/49570443/qt_time_scale_plot.png)  
[https://dl.dropboxusercontent.com/u/49570443/qt\_time\_scale.grc](https://dl.dropboxusercontent.com/u/49570443/qt_time_scale.grc)

Plot text should be “ms” instead of “sec”. No show stopper; just  
confused me when working with very low rates.

Thanks,  
Lou

---

<div class="post-metadata">

**Author:** ![madengr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@madengr](https://www.ruby-forum.com/u/madengr)\
**Post date:** [November 23, 2014, 6:50pm UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/2 "2014-11-23T18:50:36Z")

</div>

Hi Lou,  
yep, it looks exactly the same for me.  
I think the text is statically set as “Time (sec)”, but QWT _should_  
annotate the axis with a factor like 10^-3 automagically;  
I’ll have a look at this, but most probably you’ll be faster than me  
figuring things out (since you’re already at this 😉 ).

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![madengr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@madengr](https://www.ruby-forum.com/u/madengr)\
**Post date:** [November 23, 2014, 8:18pm UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/3 "2014-11-23T20:18:26Z")

</div>

Nope, not a QWT bug, as increasing the sample rate from 1k to 1.002k  
achieves the desirable result.  
Am experimenting with floating point rounding in  
gr-qtgui/lib/timedisplayform.cc 🙂

---

<div class="post-metadata">

**Author:** ![madengr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@madengr](https://www.ruby-forum.com/u/madengr)\
**Post date:** [November 23, 2014, 9:50pm UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/4 "2014-11-23T21:50:07Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Under certain circumstances the axis label was not updated  
(essentially it seems to be: iff you set the sampling rate to 1k);  
patched this away.

Lou, you can find the minimal changeset attached; it should work  
against current maint and master.

Greetings,  
Marcus

On 11/23/2014 08:16 PM, Marcus M. wrote:

> > out (since you’re already at this 😉 ).
> > 
> > >

[https://dl.dropboxusercontent.com/u/49570443/qt\_time\_scale\_plot.png](https://dl.dropboxusercontent.com/u/49570443/qt_time_scale_plot.png)

> > >

[https://dl.dropboxusercontent.com/u/49570443/qt\_time\_scale.grc](https://dl.dropboxusercontent.com/u/49570443/qt_time_scale.grc)

> > > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1

iQEcBAEBAgAGBQJUckgxAAoJEAFxB7BbsDrLMMoIAIPR3ahpApMvrh6w6v7umdZ8  
6wOECxIEPW5ATrGhJkWfbBa7yGGvU0xd1qJWZd2StqMLgzTq0hPo1rljgPXi09JF  
J26MCSqMePmh1moP+dD5Lh38962h5YiM+/DZ8zkKE2ZkyvqBCktKkQ/GIBiCWIct  
+XM2jTtjtS4nI5F4cV+R+Dp2VjmENpSuCsD0/tFlzkCaq8nwlN/dxYXe8CZC1ImT  
qXmXcc2C6SwU7BBjCMEqr67o1IUzgtvQomygFjhRWSZ20f1uTKJMaB/iAi+Bglpn  
MXjdoo7aGtZ+4Zue72WB/YhsDK9tlS9L4GD6Ia11Z+jRXUvYg4vNV2KHlcNs8SA=  
=qGu3  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![madengr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@madengr](https://www.ruby-forum.com/u/madengr)\
**Post date:** [November 25, 2014, 4:17am UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/5 "2014-11-25T04:17:56Z")

</div>

Marcus,

OK; dumb question. How do I apply that, other an editing the source  
manually? I tried the following, but it didn’t like it:

cd /usr/local/src/gnuradio/  
patch \< 0001-qtgui-fixed-non-changing-from-sec-to-ms.patch

Thanks,  
Lou

Marcus Müller wrote

> Greetings,  
> Marcus

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/QT-GUI-Time-Sink-text-scale-bug-tp51400p51421.html](http://gnuradio.4.n7.nabble.com/QT-GUI-Time-Sink-text-scale-bug-tp51400p51421.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![madengr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@madengr](https://www.ruby-forum.com/u/madengr)\
**Post date:** [November 25, 2014, 9:50am UTC](https://www.ruby-forum.com/t/qt-gui-time-sink-text-scale-bug/233191/6 "2014-11-25T09:50:28Z")

</div>

On 11/25/2014 04:08 AM, madengr wrote:

> Marcus,
> 
> OK; dumb question. How do I apply that, other an editing the source  
> manually? I tried the following, but it didn’t like it:
> 
> cd /usr/local/src/gnuradio/  
> patch \< 0001-qtgui-fixed-non-changing-from-sec-to-ms.patch

$ git apply foo.patch

M
