Search found 3 matches

by Alfi@leman
Thu Aug 03, 2006 2:06 pm
Forum: JFreeChart
Topic: Logarithmic Axis - How can I use exponential numbers
Replies: 5
Views: 9091

The setLog10TickLabelsFlag(true) works over the complete range. Thanks. I ran a small test with the DecimalFormat: double[] test = {123.23,12.9,1.543,0.986,0.002345,0.0000005678,-0.2348,-23.9}; DecimalFormat dec = new DecimalFormat ("0.###E0"); for (int n=0; n<test.length; n++) { System.out.println(...
by Alfi@leman
Wed Aug 02, 2006 8:43 pm
Forum: JFreeChart
Topic: Logarithmic Axis - How can I use exponential numbers
Replies: 5
Views: 9091

Thanks. That works but only with numbers greater/equal 1. Numbers smaller 1 are not changed. This looks funny. My code is slightly different, but this should make no difference ? NumberAxis domainAxis = new LogarithmicAxis("xxx"); NumberAxis rangeAxis = new LogarithmicAxis("YYYY"); ... NumberFormat ...
by Alfi@leman
Sat Jul 29, 2006 8:40 pm
Forum: JFreeChart
Topic: Logarithmic Axis - How can I use exponential numbers
Replies: 5
Views: 9091

Logarithmic Axis - How can I use exponential numbers

Hi, I am working on a line chart that has logarithmic axis for both x and y. The data range is over several decades and I would like exponential numbers on the axis. Example: 0.00000001 doesn't look good. I would like to see 1.0e-9 or 10-9 or something like that. Does anyone know how to do this? If ...