[HepData-svn] r1621 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/plot

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon May 13 15:18:45 BST 2013


Author: whalley
Date: Mon May 13 15:18:45 2013
New Revision: 1621

Log:
removing print lines from Plotter

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/plot/Plotter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/plot/Plotter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/plot/Plotter.java	Mon May 13 15:14:39 2013	(r1620)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/plot/Plotter.java	Mon May 13 15:18:45 2013	(r1621)
@@ -185,28 +185,23 @@
                 Double x = b.getFocus();
                 Double dxminus = b.getDMinus();
                 Double dxplus = b.getDPlus();
-                System.out.println("Plotter x = " + x);
                 if (x == null) {
                     if(b.getHighValue() != null && b.getLowValue() != null){
-                        System.out.println("Plotter case 1 " + b.getHighValue() + " " + b.getLowValue() + " " + b.getRelation());
                         x = (b.getHighValue()+b.getLowValue())/2.0;
                         dxminus = x-b.getLowValue(); 
                         dxplus  = b.getLowValue()-x; 
                     }
                     else if (b.getHighValue() != null ){
-                        System.out.println("Plotter case 2");
                         x = b.getHighValue();
                         dxminus = 0.05*x;
                         dxplus = 0.05*x;
                     }
                     else if (b.getLowValue() != null){
-                        System.out.println("Plotter case 3");
                         x = b.getLowValue();
                         dxminus = 0.05*x;
                         dxplus = 0.05*x;
                     } 
                     else{
-                        System.out.println("Plotter case 4 default");
                         x = 0.0;
                         dxminus = 0.5;
                         dxplus = 0.5;
@@ -266,7 +261,6 @@
                 };
                 Graphics2D g2d = tp.createGraphics(width, height, arialuni);
                 Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height);
-                System.out.println("graphics font: " + g2d.getFont());
                 chart.draw(g2d, r2d);
                 g2d.dispose();
                 cb.addTemplate(tp, 0, 0);
@@ -288,9 +282,6 @@
 
     public static StreamResponse makeChartStreamResponse(final JFreeChart chart, final ImageFormat format,
                                                          final int width, final int height) {
-//        System.out.println("background paint is" + chart.getBackgroundPaint());
-//        System.out.println("returning streamresponse...." + chart.getBackgroundPaint());
-//        System.out.println("getContentType...." + format.toString().toLowerCase());
         return new StreamResponse() {
             public String getContentType() {
                 return "image/" + format.toString().toLowerCase();


More information about the HepData-svn mailing list