Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:02:05+00:00 2026-06-03T23:02:05+00:00

I have a system which is drawing points into a QwtPlot. What I want

  • 0

I have a system which is drawing points into a QwtPlot. What I want is getting the last plotted point at any time plotted in a different color, so I can always know which has been the last plotted point by the moment.

Is there any direct way of doing this, or how could I approach this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:02:07+00:00Added an answer on June 3, 2026 at 11:02 pm

    You could use a QwtPlotMarker. The following code is extracted from the qwt example called “Bode”, and is located in a subclass from QwtPlot (i.e. this is a sub-class of QwtPlot):

    d_mrk2 = new QwtPlotMarker();
    d_mrk2->setLineStyle(QwtPlotMarker::HLine);
    d_mrk2->setLabelAlignment(Qt::AlignRight | Qt::AlignBottom);
    d_mrk2->setLinePen(QPen(QColor(200,150,0), 0, Qt::DashDotLine));
    d_mrk2->setSymbol( QwtSymbol(QwtSymbol::Diamond, QColor(Qt::yellow), QColor(Qt::green), QSize(7,7)));
    d_mrk2->attach(this);
    

    and later in the example the marker is located by:

    d_mrk2->setValue(x, y);
    

    For further informations have a look at the Qwt “Bode” example, which should be located in the qwt directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom control which has a property of type Collection<System.Drawing.Point> . When
I have a system which is receiving log files from different places through http
I have a Canvas on which I am drawing lines bewteen points in a
I have a System.Drawing.Drawing2D.Matrix with rotation and translation transforms which I need to apply
We have a piece of code which saves a .Net System.Drawing.Bitmap to file. The
I have a model with a List<System.Drawing.Color> , as I mentioned, which comes to
I have a system which contains multiple applications connected together using JMS and Spring
I have a system which receives leads (they are piped in via email) and
I need suggestion about YAMI library . I have a system which receives Json
I have a remote embedded system which it is telnet-able. How can I download

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.