r450: Fixed tick-labels
[ctsim.git] / src / dlgprojections.cpp
index d340914efbb07424ac7bab15a599c0f02cbf6758..c5888c2ad92d7e01cffcdf179a10bd3792f6db0f 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: dlgprojections.cpp,v 1.17 2001/01/17 06:38:06 kevin Exp $
+**  $Id: dlgprojections.cpp,v 1.19 2001/01/27 21:02:20 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -107,7 +107,7 @@ ProjectionsDialog::ProjectionsDialog (Scanner& rScanner, Projections& rProj, con
     SetAutoLayout(TRUE);
     Layout();
        
-    wxSize sizeDlg (250,250);
+    wxSize sizeDlg (500,500);
     if (sizeDlg.x != sizeDlg.y) {
                sizeDlg.x = max(sizeDlg.x,sizeDlg.y);
                sizeDlg.y = max(sizeDlg.x,sizeDlg.y);
@@ -169,7 +169,15 @@ ProjectionsDialog::showView (int iViewNumber)
                        ezplot.ezset ("box");
                        ezplot.ezset ("yticks left");
                        ezplot.addCurve (detValues, detPos, detArray.nDet());
+#if 1
+      ezplot.ezset ("xporigin 0.67");
+      ezplot.ezset ("yporigin 0.10");
+      ezplot.ezset ("xlength  0.33");
+      ezplot.ezset ("ylength  0.90");
+                       m_pSGP->setViewport (0., 0., 1., 1.);
+#else
                        m_pSGP->setViewport (0.67, 0.1, 1., 1.);
+#endif
                        ezplot.plot (m_pSGP);
                        delete detPos;
                }