y-legend calculations, proof of concept
This commit is contained in:
parent
f485dc6ff0
commit
83ad22e74f
@ -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=
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user