Skip to content

Commit

Permalink
Better, but not definitive about axis...
Browse files Browse the repository at this point in the history
It's time to think about it!
  • Loading branch information
Giovanni [dacav] Simoni committed Jun 12, 2010
1 parent 16e719e commit a1a934b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/gp_base.cpp
Expand Up @@ -96,10 +96,16 @@ namespace gnup {

// Format initialization phase: gnuplot must know in advance which
// plots must be achieved.
if (countEnabAxis() == 3) {
command("splot ");
} else {
command("plot ");
switch (countEnabAxis()) {
case 0:
// Nothing to plot (it should never be the case)
return;
case 1:
case 2:
command("plot ");
break;
default:
command("splot ");
}
i = sources.begin();
end = sources.end();
Expand Down

0 comments on commit a1a934b

Please sign in to comment.