Results 1 to 4 of 4

Thread: Configuration of the Axis Major in the QwtPlot::yLeft

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Configuration of the Axis Major in the QwtPlot::yLeft

    Hello!

    In the software in which I'm using Qwt I need to plot the QwtPlot::yLeft in the same ways as in this image:

    Captura_de_tela.jpg

    That means, the only numbers to be shown are the extreme ones: the lowest and the highest of the y Axis. I tried in several ways to change the QwtPlot->setAxisMaxMajor(QwtPlot::yLeft, XXX) and QwtPlot->setAxisMaxMinor(QwtPlot::yLeft, XXX) functions to do that, but I was unsuccessful. So, how do I do it?


    Thanks!


    Momergil

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Configuration of the Axis Major in the QwtPlot::yLeft

    Do you understand, what setAxisMajor and setAxisMinor do? these are the right methods... but how did you make them compile with parameter "XXX" instead of an integer value?

    btw, in the upper two plots in your image, is it correct that maximum and minimum is both 60?

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Configuration of the Axis Major in the QwtPlot::yLeft

    Quote Originally Posted by FelixB View Post
    Do you understand, what setAxisMajor and setAxisMinor do? these are the right methods... but how did you make them compile with parameter "XXX" instead of an integer value?

    btw, in the upper two plots in your image, is it correct that maximum and minimum is both 60?
    Hello!

    By "XXX" I mean different integer values that I tried, but with all of them I was unsuccessful.

    Now about both the minimum and maximum values of the images being 60, well that is an obvsious error that thanks God isn't my fault! ^^ But anyway that is just an example image, not to be taken that seriously. What matter is to plot only the lowest and highest values in the plot, and it seems to me that the two functions I mentioned are NOT the wright ones.

    If they are, could you please tell me which values should I put in order to get what I want?

    Thanks!!


    Momergil

  4. #4
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Configuration of the Axis Major in the QwtPlot::yLeft

    Hi,

    in my project it works fine with these methods... what happens when you set no minor ticks? and what happens with two major ticks?

    I'm using qwt5.2, maybe something has changed in the latest version...

    Felix

Similar Threads

  1. yLeft axis constant width
    By baray98 in forum Qwt
    Replies: 4
    Last Post: 4th January 2013, 16:40
  2. Replies: 4
    Last Post: 31st August 2011, 13:57
  3. Replies: 1
    Last Post: 2nd May 2010, 18:27
  4. Axis yLeft cuts of numbers
    By sun in forum Qwt
    Replies: 17
    Last Post: 9th October 2009, 21:36
  5. QwtPlot axis decmials/notation
    By dfirestone in forum Qwt
    Replies: 1
    Last Post: 1st May 2009, 10:42

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.