Small Axis values not displayed or chopped
Posted: Wed Jul 16, 2008 10:49 am
I have a probably very trivial question: I have an axis scale which could require some very small values (E-8'ish), but when I plot it the values stop being differentiated at around E-3. When setting the xaxis.getIncrement to something very small, nothing happens. If I do not set it at all, no values (or only one) are displayed on the axis.
So, any thoughts? I am including a very small dummyproject so you can tell me what I am not getting right
Thanks in advance
Marius
So, any thoughts? I am including a very small dummyproject so you can tell me what I am not getting right
Code: Select all
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.steema.teechart.TChart;
import com.steema.teechart.styles.Points;
public class SmallValues extends JFrame
{
JPanel dmb = new JPanel();
TChart myChart = new TChart();
double[] x = new double[] {0.00001,0.00002,0.00005};
double[] y = new double[] {1,2,3};
public static void main(String[] args)
{
new SmallValues().setVisible(true);
}
public SmallValues()
{
dmb.add(myChart);
add(dmb);
setSize(400,300);
Points p = new Points(myChart.getChart().chart);
p.add(y);
p.getXValues().value = x;
myChart.getAxes().getBottom().setIncrement(0.000001);
}
}
Marius