<?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[QLogValueAxis doesn&#x27;t show up help]]></title><description><![CDATA[<p dir="auto">I have some Problems with the log axis.<br />
The axis doesn't show up<br />
Anyone any idea ?</p>
<pre><code>// Here i set up the charts -&gt; 2 Charts
    QChart *Buger = new QChart();
    Buger-&gt;legend()-&gt;setVisible(true);
    QChart *BugerFlux = new QChart();
    BugerFlux-&gt;legend()-&gt;setVisible(true);

//Here i set up the X Axis which with a DateTimes
    QDateTimeAxis *axisX = new QDateTimeAxis;
    axisX-&gt;setFormat("dd MMM yyyy - hh:mm");
    axisX-&gt;setTitleText("Time Step");
    Buger-&gt;addAxis(axisX, Qt::AlignBottom);

// This is the same Axis for the second chart
    QDateTimeAxis *axisXflux = new QDateTimeAxis;
    axisXflux-&gt;setFormat("dd MMM yyyy - hh:mm");
    axisXflux-&gt;setTitleText("Time Step");
    BugerFlux-&gt;addAxis(axisXflux, Qt::AlignBottom);

// Here i set up a normal value axis as Y axis for the first Chart which works fine (the second chart is the Problem)
    QValueAxis *axisY = new QValueAxis;
    axisY-&gt;setTitleText("Mean Speed [&lt;html&gt;kms&lt;sup&gt;-1&lt;/sup&gt;&lt;/html&gt;]");
    Buger-&gt;addAxis(axisY, Qt::AlignLeft);

//Here i want to set up the Log Axis 
    QLogValueAxis *axisYflux = new QLogValueAxis;
    axisYflux-&gt;setLabelFormat("%g");
    axisYflux-&gt;setTitleText("Values");
    axisYflux-&gt;setBase(10.0);
    BugerFlux-&gt;addAxis(axisYflux, Qt::AlignLeft); // Here i add it to the QChart

// Here i set up the Series in a (It depends how many the user has selected) MicronStatus is a vector with true or 
// False  

 for(int m =0;m&lt;MicronStatus.size();m++)
            {
                    QLineSeries *bugerseries1 = new QLineSeries();
                    QLineSeries *bugerseriesFlux = new QLineSeries();

                    if(MicronStatus[m]==true) //If the Status is True 
                    {

                    for(int i = 0 ; i&lt;value[m].size();i++)
                        {
                              bugerseries1-&gt;append(AllStepDatesAsQDatetime[i].toMSecsSinceEpoch(), value[m][i])
                        }

                    for(int i = 0 ; i&lt;value2[m].size();i++)
                        {
                          bugerseriesFlux-&gt;append(AllStepDatesAsQDatetime[i].toMSecsSinceEpoch(), value2[m][i])
                        }
                             bugerseries1-&gt;setColor(Qt::red);
                             bugerseries1-&gt;setName("1");
                             bugerseriesFlux-&gt;setColor(Qt::red);
                             bugerseriesFlux-&gt;setName("1");

                    }
                   
// This is maybe the Problem :/
                    BugerFlux-&gt;addSeries(bugerseriesFlux);
                    bugerseriesFlux-&gt;attachAxis(axisXflux);
                    bugerseriesFlux-&gt;attachAxis(axisYflux);

                        Buger-&gt;addSeries(bugerseries1);
                        bugerseries1-&gt;attachAxis(axisX);
                        bugerseries1-&gt;attachAxis(axisY);

                }
                    
            }

            axisY-&gt;setRange(0,maxplotvalue+maxplotvalue/4);
            Buger-&gt;addAxis(axisY, Qt::AlignLeft);

           BugerFlux-&gt;addAxis(axisYflux, Qt::AlignLeft); // Or this could be the Problem 

            QChartView *BugerView = new QChartView(Buger);
            BugerView-&gt;setRenderHint(QPainter::Antialiasing);
            QChartView *BugerViewFlux = new QChartView(BugerFlux);
            BugerView-&gt;setRenderHint(QPainter::Antialiasing);
</code></pre>
]]></description><link>https://forum.qt.io/topic/85975/qlogvalueaxis-doesn-t-show-up-help</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 12:49:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/85975.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Dec 2017 17:29:19 GMT</pubDate><ttl>60</ttl></channel></rss>