Results 1 to 15 of 15

Thread: qwtpolt ticks and ticks of grid on the qwtplot ??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2012
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qwtpolt ticks and ticks of grid on the qwtplot ??

    THANK YOU, THANK YOU, THANK YOU Uwe,

    This is really amazing, im really greatful to you and for your help.

    I was playing around with it, trying to understand it more and how you implemented it.

    There was lil bug which is when you draw the grid.
    It was painting same number of lines for both x and y .. using the majorticks for x..

    when you were painting the lines for y... you just set
    Qt Code:
    1. majorTicks = m_xScaleDiv.ticks(QwtScaleDiv::MajorTick)
    To copy to clipboard, switch view to plain text mode 
    insted of
    Qt Code:
    1. majorTicks = m_yScaleDiv.ticks(QwtScaleDiv::MajorTick)
    To copy to clipboard, switch view to plain text mode 
    just wanted to mention it incase someother one want to use it and so he know that.

    I was just wondring if i want to change the number of majorticks for x and y when i zoom in and out .. so it displays more ticks when im zoomed in and less majorticks when i zoom out ?? how can i link it ?

    Thank you again thank you soooooooooooooooooooooooo much, thank you for your time and your help I really really appriciate it.

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

    Default Re: qwtpolt ticks and ticks of grid on the qwtplot ??

    Quote Originally Posted by Qt&qwtNoob View Post
    I was just wondring if i want to change the number of majorticks for x and y when i zoom in and out .. so it displays more ticks when im zoomed in and less majorticks when i zoom out ??
    Implement CoordinateSystem::updateScaleDiv() and adjust your scales depending on the incoming ranges.

    HTH,
    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Qt&qwtNoob (30th October 2012)

  4. #3
    Join Date
    Oct 2012
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qwtpolt ticks and ticks of grid on the qwtplot ??

    Thank you )


    Added after 1 59 minutes:


    sorry, but can i use different painters to paint the rect , x and y scale and grid for x and y ??

    because i want to use different line style for the grid and different colors for each x and y

    thanks
    Last edited by Qt&qwtNoob; 30th October 2012 at 15:45.

Similar Threads

  1. Lining up Inner and Outer Ticks
    By bigjoeystud in forum Qwt
    Replies: 3
    Last Post: 27th September 2012, 07:31
  2. Replies: 1
    Last Post: 30th July 2010, 07:23
  3. Qslider Ticks not displayed
    By iaguirre in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2010, 05:09
  4. Replies: 1
    Last Post: 16th March 2010, 15:23
  5. Problem with scale ticks
    By gd in forum Qwt
    Replies: 4
    Last Post: 10th December 2009, 08:04

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.