y-legend calculations, proof of concept

This commit is contained in:
7u83 2018-01-17 10:34:23 +01:00
parent f485dc6ff0
commit 83ad22e74f
3 changed files with 17 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#Mon, 15 Jan 2018 23:45:43 +0100
#Wed, 17 Jan 2018 09:43:23 +0100
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -120,7 +120,7 @@ public abstract class OHLCChartPainter extends ChartPainter {
stepsize = 2;
// stepsize = 2;
// double minl10 = Math.log10(y_min);
// double maxl10 = Math.log10(y_max);
@ -128,7 +128,19 @@ public abstract class OHLCChartPainter extends ChartPainter {
double lo = Math.ceil(Math.log10(stepsize));
double rss = Math.pow(10, lo);
System.out.printf("Ste size %f %f %f\n",stepsize,lo, rss);
double st1 = 1/rss;
double dr = Math.ceil(y_min*st1)/st1;
// double f = y_min
System.out.printf("Ste size %f %f %f %f %f\n",stepsize,lo, y_min, rss, dr);

View File

@ -875,7 +875,8 @@ public class SeSimApplication extends javax.swing.JFrame {
*/
public static void main(String args[]) throws IllegalAccessException, InstantiationException {
System.out.printf("Main called\n");
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();