1

In ILNumerics, how to use the anti-aliasing? I can't find how to use it in the tutorial. My graphs are like this:

enter image description here

I need smoother lines as this graphs (that we build with canvas in WPF):

enter image description here

Update:

I try the solution. Here is the code that I wrote:

var lineV = new ILLinePlot(ILMath.tosingle(verticals["1,0;:"]), lineWidth: 3, markerStyle: MarkerStyle.None); 
lineV.Line.Antialiasing = true;  

var pc = new ILPlotCube(); 
pc.Add(lineV);  

var sceneV = new ILScene(); 
sceneV.Add(pc);  

GradientVerticalilPanel.Scene = sceneV;      
GradientVerticalilPanel.Refresh();

But it didn't work. I mean, there is no changes visually. My lines are not going smoother, although there is no error.

ehmind
  • 265
  • 3
  • 10
  • You probably know: since you have rotated the plot cube and there is the Z axis left over – you can hide it by `plotCube.Axes.ZAxis.Visible = false` – Haymo Kutschbach Jul 04 '14 at 08:30

1 Answers1

0

Make the lines thicker (at least 3px) and set ILLinePlot.Line.Antialiasing = true.

Edit: Antialiasing is supported by OpenGL drivers. The software renderer in ILNumerics (GDI driver) does not support antialiasing, since it would make the rendering even more slow.

Haymo Kutschbach
  • 3,322
  • 1
  • 17
  • 25
  • It didn't work. Where is my mistakes? `var lineV = new ILLinePlot(ILMath.tosingle(verticals["1,0;:"]), lineWidth: 3, markerStyle: MarkerStyle.None); lineV.Line.Antialiasing = true; var pc = new ILPlotCube(); pc.Add(lineV); var sceneV = new ILScene(); sceneV.Add(pc); GradientVerticalilPanel.Scene = sceneV; GradientVerticalilPanel.Refresh();` – ehmind Jul 08 '14 at 03:14
  • what do you mean by "It didn't work"? Can you please update your question? Thanks – Haymo Kutschbach Jul 08 '14 at 14:23