Changeset: 4fb77b0004d1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4fb77b0004d1
Modified Files:
        clients/mapiclient/tomograph.c
Branch: default
Log Message:

Shuffle rows around and adjust size


diffs (27 lines):

diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -921,6 +921,7 @@ showio(void)
                fprintf(gnudata, "set title \"%s%s\"\n", title, (*c? "...":""));
                *c =ch;
        }  else
+       if( dbname)
                fprintf(gnudata, "set title \"Database %s\"\n", dbname);
 #ifdef GNUPLOT_463_BUG_ON_FEDORA_20
 /* this is the original version, but on Fedora 20 with
@@ -1283,7 +1284,14 @@ createTomogram(void)
                totalticks += lastclk[rows[i]];
 
        /* fill the page from top to bottom */
-       rowoffset = top <= cpus+1 ? cpus+1 - top: 0;
+       if( top <= cpus +1){
+                       rowoffset = cpus+1 - top;
+               if ( top <= cpus/2+1){
+                       h *= 2;
+                       rowoffset = (cpus+2)/2 - top;
+               }
+               
+       }
 
        fprintf(gnudata, "set ytics (");
        for (i = 0; i < top; i++)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to