Plot doesn't draw properly
Status: Beta
Brought to you by:
mhowlett
When drawing a couple of LinePlot, one of them is not
being properly drawn. This seems to happen on a regular
basis, depending on the datasource.
A snapshot best describes what I mean by "no being
properly drawn". You can find a picture here :
http://www.daftweb.net/divers/scplerror.tif . In this
specific case, I have two plots whose datasources are
arrays contaning Double objects. I think the nature of
the objects in the datasource may be the cause of this
bug. My datasource here are :
Dim ds1() As Double = {4533 / 1000000,4526 / 1000000}
Dim ds2() As Double = {4808 / 1000000,4750 / 1000000}
I'm currently using Scpl v 0.93 with VB.NET in a WebForm.
Logged In: YES
user_id=412511
G'day -
the C# code below worked fine in my latest version [0.9.6 to
be checked in shortly]. If your problem isn't fixed in
latest release, please provide more details. Does 4533 /
1000000 = 0 in vb?
Matt.
plotSurface.Clear();
double[] data1 = {4533.0 / 1000000.0, 4526.0 / 1000000.0};
double[] data2 = {4808.0 / 1000000.0, 4750.0 / 1000000.0};
LinePlot lp = new LinePlot();
lp.DataSource = data1;
LinePlot lp2 = new LinePlot();
lp2.DataSource = data2;
plotSurface.Add( lp );
plotSurface.Add( lp2 );
plotSurface.Refresh();