Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I plot cartesian points in a Winforms project?

Tags:

c#

.net

winforms

I'm looking for a way to display points on a 2D plane in a C# Winforms project.

The points will be updated 5 times per second. If a given point changes (number of points is always static) it would be nice to animate them to their new location.

I tried Zendgraph but it is more focused on charts.

How do I visually plot and animate Cartesian points in C#?

like image 648
Mark Avatar asked Nov 15 '22 02:11

Mark


1 Answers

Have a look at this code I've just written, for a working and simple example:

http://pastebin.com/Xs9DeJ8m

Usage:

  • add this class to your project (change namespace to yours if you will)
  • rebuild the solution
  • now you should be able to see Plot control among the designer toolbox items
like image 140
digEmAll Avatar answered Dec 15 '22 07:12

digEmAll