Results 1 to 5 of 5

Thread: Cant't draw custom grid

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cant't draw custom grid

    OK, so now I have managed to get the scale that I wanted and the custom labels at the ticks where I want them using:
    ui->myPlot->setAxisScaleDiv(0,scdiv);
    So apparently there is nothing wrong with my scaleDiv. However, this doesn't solve my problem since I want aoutoscaling but with custom labels.

    I might as well describe exactly what I'm after since it's a pretty basic concept:
    I want autoscaling as usual but I want the major ticks (with labels) placed only and always at -20,-10,0,10,20,30 and so on and a minor tick (with no label) in between every major.
    I assume I've missed something in the basic functionality of the QwtPlotGrid since it won't display my custom grid without the same fixed, custom scale...

    Peace!
    /Tottish

    EDIT: Hey! And while we're at it, could someone tell me how to change the color of the font in the scales?
    Last edited by Tottish; 20th April 2010 at 13:55.

Similar Threads

  1. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  2. Replies: 5
    Last Post: 21st January 2010, 15:55
  3. Replies: 1
    Last Post: 10th December 2009, 21:31
  4. To draw a custom scale
    By Indalo in forum Qwt
    Replies: 1
    Last Post: 30th November 2009, 13:24
  5. How do I layout in a Grid?
    By DPinLV in forum Qt Tools
    Replies: 7
    Last Post: 10th August 2006, 01:37

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
  •  
Qt is a trademark of The Qt Company.