Results 1 to 8 of 8

Thread: custom axis (setAxisScaleDraw) questions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default custom axis (setAxisScaleDraw) questions

    Hi,

    From the attached image you see that I have 2 seperate QWtPlots.

    I am implementing a custom Y axis scale via:

    Qt Code:
    1. Status_Graph->setMargin(1);
    2. Status_Graph->enableAxis (QwtPlot::yLeft, true);
    3. m_SimStatusYScaler = new SimStatusYScaleDraw();
    4. Status_Graph->setAxisScaleDraw(QwtPlot::yLeft, m_SimStatusYScaler);
    5. Status_Graph->setAxisScale(QwtPlot::yLeft, 0, 40);
    6. Status_Graph->setAxisLabelAlignment(QwtPlot::yLeft, Qt::AlignLeft | Qt::AlignVCenter);
    To copy to clipboard, switch view to plain text mode 

    There are 2 problems I cannot figure out how to solve.

    1. I would like the space between the Y axis label (ie Run) and the left
    side of the graph itself to be narrower. How/what controls this space?

    2. I would like the 2 graphs to be the same width with their left edges
    aligned. They start out that way
    in QT Designer but when I add the custom Y scale obviously the upper
    graphs narrows.


    Thank you!

    Mark
    Attached Images Attached Images
    Last edited by jpn; 2nd January 2008 at 21:33. Reason: missing [code] tags

Similar Threads

  1. Qwt and custom axis
    By jiveaxe in forum Qwt
    Replies: 3
    Last Post: 14th November 2007, 15:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.