Results 1 to 2 of 2

Thread: QWT_How to draw a special label to an axis

  1. #1
    Join Date
    Nov 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QWT_How to draw a special label to an axis

    Hallo,

    i am new to qwt. I want to draw a special scale for an axis.
    For example, y_new=log(log(y));
    By using setAxisScaleDiv(QwtPlot::yLeft,scdiv ); i have set the scale as i wish,
    but in the plot i still want to show y instead of y_new as label. Could someone give me some suggestions? Thanks a lot.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWT_How to draw a special label to an axis

    Guess what you really want to do is to set up a special transformation, see:


    • QwtScaleEngine::setTransformation()
    • QwtPlot::setAxisScaleEngine()


    But if your question is really only about how to modify the tick label on the axis:


    • QwtAbstractScaleDraw::label()
    • QwtPlot::setAxisScaleDraw()


    HTH,
    Uwe

Similar Threads

  1. Axis Tick and Label !
    By huyhoangfool in forum Qwt
    Replies: 5
    Last Post: 29th July 2014, 13:20
  2. Axis Title to axis label alignment
    By ROCKSTAR in forum Qwt
    Replies: 0
    Last Post: 5th February 2014, 13:47
  3. Stil axis label trouble
    By K4ELO in forum Qwt
    Replies: 1
    Last Post: 18th March 2013, 07:35
  4. QwtPlot x axis label
    By ldg20 in forum Qwt
    Replies: 5
    Last Post: 17th July 2012, 08:02
  5. How to draw a special circle pie
    By parnedo in forum Qt Programming
    Replies: 7
    Last Post: 3rd July 2009, 16:25

Tags for this Thread

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.