Results 1 to 2 of 2

Thread: PRint plot with Legend

  1. #1
    Join Date
    Sep 2009
    Location
    phoenix, AZ
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Default PRint plot with Legend

    Hi there,

    l'm trying to print a graph with his legend, everything works fine except the scaling of the legend does not follow the other items of the graph ( axis/ title), legend is always smaller after printing than on the screen.

    Qt Code:
    1. QwtPlotRenderer renderer;
    2.  
    3. // flags to make the document look like the widget
    4. renderer.setDiscardFlag(QwtPlotRenderer::DiscardBackground, true);
    5. renderer.setLayoutFlag(QwtPlotRenderer::FrameWithScales, true);
    6. renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
    7.  
    8. renderer.renderDocument(this, fileName, QSizeF(150, 100), 85);
    To copy to clipboard, switch view to plain text mode 

    am l missing something ?

    regards,

    Michael

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

    Default Re: PRint plot with Legend

    No - but without a screenshot and an exported document its hard to say anything useful,

    Uwe

Similar Threads

  1. Printing plot with many legend items
    By coppermine in forum Qwt
    Replies: 1
    Last Post: 11th March 2011, 10:18
  2. Replies: 2
    Last Post: 27th October 2009, 13:40
  3. How to insert a legend in my plot?
    By paperflyer in forum Qwt
    Replies: 1
    Last Post: 7th October 2009, 17:04
  4. Sorting plot legend?
    By StefanK in forum Qwt
    Replies: 2
    Last Post: 5th April 2009, 19:29
  5. legend inside qwt plot
    By kaustav98255 in forum Qwt
    Replies: 5
    Last Post: 11th February 2009, 20:39

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.