Click here to Skip to main content
Click here to Skip to main content

Plotter Control (a-la Task Manager Performance History Graphs)

By , 2 Jan 2007
 

Introduction

I made this control as a favor to my friend who is an electrical engineer.  He needed a Task Manager style control to display a sampled signal coming from a device that he was making.  I did a quick search on codeproject, and the closest thing I could find was Anup. V.’s Plotter control but it lacked the scrolling capability.  So I finally had to get my hands dirty and made this plotter control.  Now I’m posting it here guessing that there might be other electrical engineers out there who are in a desperate need of such a control.

 

Demo Project

 

Sample Image - plotter.jpg

 

Tip: Use the vertical track bar to change the current value.

 

Using the Plotter Control

  • Set the Min & Max properties.

  • Set the BackColor & ForeColor properties to adjust the colors to your liking.

  • Use the Add method to add new values periodically (e.g. from a timer event handler).

 

Changes History

01/03/2006

Fixed a bug when the graph was drawn incorrectly when the control was put on a form with AutoScaleMode different than None and the system font size was different from the size the application was built with.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Serge Slepov
Web Developer
Russian Federation Russian Federation
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionreset [modified]memberChaosPerformance28 Jan '09 - 9:39 
Generalmultiple values and TicksmemberThPloeger22 Jan '07 - 2:54 
GeneralRe: multiple values and TicksmemberSerge Slepov22 Jan '07 - 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 2 Jan 2007
Article Copyright 2007 by Serge Slepov
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid