4

I am looking for an Open Source .NET Library (or wrapper to a library) that will create contour plots from a set of values along a grid/mesh. ZedGraph is the closest thing I could find (http://zedgraph.org/).

It would also be great if it could export to EPS.

ileon
  • 1,508
  • 1
  • 18
  • 25
ccook
  • 5,869
  • 6
  • 56
  • 81
  • You probably should be able to do it with ZedGraph. Also, it provides the functionality to save in EPS. There were also few topics here on SO regarding using ZG to save in real EPS format. – Gacek Jul 05 '10 at 16:12
  • Thanks, its great to know it has the ability to write to EPS. That being true I may add the functionality to ZedGraph. They provide an example of a contour plot, but frankly I don't consider that real contour functionality. I need an efficient contour plot given a mesh. I just need a good algorithm. – ccook Jul 06 '10 at 07:15

2 Answers2

3

With D3 you can plot contour lines (isolines) for WPF. I am not sure about contour surfaces. WPF has great printing capabilities so I think that printing to EPS would not be a problem.

Edit: recently found this one WinForms example around a .dll which calculates isolines.

Mikhail Poda
  • 5,742
  • 3
  • 39
  • 52
2

The contour extraction routine ConRec worked very well (fast and efficient) for me:

http://paulbourke.net/papers/conrec/

It doesn't output contours but a collection of line segments and associated z-values. You can use this raw data to construct contour polygon if required.

ProfNimrod
  • 4,142
  • 2
  • 35
  • 54