Hello,
I am having a hard time with formatting the legend with both surface or colorgrid (mayb others, haven't tried yet).
I want to force the legend to span the values that I am interested in, but can't find a way. Also, I can't format the legend to use reasonable significant digits (always defaults to ##.####).
Is there a way to do this?
Also, can I make the depth axis (dependant variable) logarithmic in the legend?
My data spans several orders of magnitude and the ability to do this is important to me.
Thanks,
Matt
Changing the legend values in surface or colorgrid
Hi, Matt.
As far as custom palette goes, you can use the following code:
For logarithmic depth axis, you could use the following code:
But please be aware that number of points in surface series in any direction is limited to 2000 points.
As far as custom palette goes, you can use the following code:
Code: Select all
// populate series with data
for (int i = -5; i<5; i++)
for (int j = -3; j < 5; j++)
surface1.Add(i,2.5*Math.Sin(Math.PI*Math.Pow(i*j,2)/10.0),j);
// create custom palette
surface1.UsePalette = true;
surface1.UseColorRange = false;
surface1.ClearPalette();
// beige from -2.5 to -2.0
surface1.AddPalette(-2.0,Color.Beige);
// white from -2.0 to 0.0
surface1.AddPalette(0.0,Color.White);
// blue from 0.0 to to to 2.0
surface1.AddPalette(2.0,Color.Blue);
// violet from 2.0 to 2.5
surface1.AddPalette(2.5,Color.Violet);
Code: Select all
tChart1.Axes.Depth.Logarithmic = true;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Need more help
Sounds great, but there is no .AddPalette function in VB....
Is there a more recent release that includes this?
Thanks,
Matt
Is there a more recent release that includes this?
Thanks,
Matt
Hi, Matt.
Can you be a bit more specific ? The palette is not constructed correctly or ... ?
Can you be a bit more specific ? The palette is not constructed correctly or ... ?
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
It seems with the new version, I cannot add data the same way.
Before I would add a series at design time (default name surface1). Then I would use:
Surface1.Add (myX, myY,myZ)
The default names are now series0,series1, ... which is fine, but I can't figure out how to address them now!
Even using AxTchart1.Series0.Add does not work.
Thanks,
Matt
Before I would add a series at design time (default name surface1). Then I would use:
Surface1.Add (myX, myY,myZ)
The default names are now series0,series1, ... which is fine, but I can't figure out how to address them now!
Even using AxTchart1.Series0.Add does not work.
Thanks,
Matt
Hi, Matt.
But using the latest available build I was not able to replicate the problem i.e. when I added new surface series, it was named as surface1 and not as series0.
This won't work in any case. Instead, if you created series0 and series1 you should use the:AxTchart1.Series0
Code: Select all
series0.Add(....);
Marjan Slatinek,
http://www.steema.com
http://www.steema.com