<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Plotting using Qwt with time values in the x-axis]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have two QVectors where the y-axis has double values, but the x-axis has time values which are specified in HH::MM::SS.xxxxx, where xxxxx is in milliseconds.</p>
<p dir="auto">QVector&lt;QString&gt; timeData;  //x-axis<br />
QVector&lt;double&gt; attributeData;  //y-axis</p>
<p dir="auto">To setup a plot I have the following:<br />
QwtPlotCurve *curve1 = new QwtPlotCurve( "Curve 1" );</p>
<p dir="auto">When assigning setSamples since time is not a double value, any ideas on how to plot by time on the x axis?  Of course qwt needs to be able to interpret the time so it can move along the x-axis properly.  There must be a way to do it, just kind find any info on it.<br />
curve1-&gt;setSamples(timeData, y-data);  //time data is not a double what else can I use?</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.qt.io/topic/117015/plotting-using-qwt-with-time-values-in-the-x-axis</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 12:33:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/117015.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jul 2020 19:52:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Plotting using Qwt with time values in the x-axis on Wed, 15 Jul 2020 12:19:51 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thanks.  I'll repost the question so the author can answer it with an example if possible.</p>
]]></description><link>https://forum.qt.io/post/606972</link><guid isPermaLink="true">https://forum.qt.io/post/606972</guid><dc:creator><![CDATA[leinad]]></dc:creator><pubDate>Wed, 15 Jul 2020 12:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to Plotting using Qwt with time values in the x-axis on Wed, 15 Jul 2020 07:07:20 GMT]]></title><description><![CDATA[<p dir="auto">As I remember, you need to set the 'date-time' axis class on the X-asis, or to create an own axis-class and then set to X-axis. Please read the Qwt documentation at first. Also you can ask this question on the <a href="https://www.qtcentre.org/" target="_blank" rel="noopener noreferrer nofollow ugc">qtcentre</a> forum, where the author himself answering the questions.</p>
]]></description><link>https://forum.qt.io/post/606830</link><guid isPermaLink="true">https://forum.qt.io/post/606830</guid><dc:creator><![CDATA[kuzulis]]></dc:creator><pubDate>Wed, 15 Jul 2020 07:07:20 GMT</pubDate></item></channel></rss>