Results 1 to 6 of 6

Thread: how to customize the legend postion,so that i can bring the legends inside the plot?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    28
    Qt products
    Qt4
    Platforms
    Windows

    Question how to customize the legend postion,so that i can bring the legends inside the plot?

    Hi Friends,

    i need to create the custom legend ... so that i can bring the legends inside the plot canvas....

    that means i wanted to change the Qwt Legend Position as per my wish...but By default Qwt provide the legend postions( LeftLegend,
    RightLegend,
    BottomLegend,
    TopLegend,

    ExternalLegend)......


    i am creating the legend by :

    insertLegend(new QwtLegend(), QwtPlot::RightLegend);

    defaultcurve->setLegendAttribute(QwtPlotCurve::LegendShowLine,t rue);
    defaultcurve->setLegendAttribute(QwtPlotCurve::LegendShowSymbol ,true);



    please go through the "gnuplot.png & qwtplot.png" image files...

    my client want exactly the same legend location as it in the "gnuplot.png"...

    so to achieve this what i need to do?... as well as i wanted to increase the length of the legend line

    i need to overload the qwt legend class????? or qwt legend item class??

    please provide some code example... that will be highly helpful...

    Thanks,
    Muthu
    Attached Images Attached Images

Similar Threads

  1. How to insert a legend in my plot?
    By paperflyer in forum Qwt
    Replies: 1
    Last Post: 7th October 2009, 17:04
  2. Qwt: How to create legends inside plots ?
    By Comer352l in forum Qwt
    Replies: 5
    Last Post: 16th August 2009, 18:02
  3. Sorting plot legend?
    By StefanK in forum Qwt
    Replies: 2
    Last Post: 5th April 2009, 19:29
  4. legend inside qwt plot
    By kaustav98255 in forum Qwt
    Replies: 5
    Last Post: 11th February 2009, 20:39
  5. Remove Legend items, move legends
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 11th February 2009, 02:35

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.