Skip to content
Snippets Groups Projects
Commit 3d58f9b8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying better (?) legend for time steps

parent 06ef7a41
No related branches found
No related tags found
No related merge requests found
......@@ -175,10 +175,10 @@ static void drawScaleLabel(drawContext *ctx, PView *p, double xmin, double ymin,
if((opt->showTime == 1 && nt > 1) || opt->showTime == 2){
char tmp[256];
sprintf(tmp, opt->format.c_str(), data->getTime(opt->timeStep));
sprintf(label, "%s (%s)", data->getName().c_str(), tmp);
sprintf(label, "%s - Time: %s", data->getName().c_str(), tmp);
}
else if((opt->showTime == 3 && nt > 1) || opt->showTime == 4){
sprintf(label, "%s (%d/%d)", data->getName().c_str(), opt->timeStep,
sprintf(label, "%s - Step %d in [0,%d]", data->getName().c_str(), opt->timeStep,
data->getNumTimeSteps()-1);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment