From 3d58f9b8ee779f5a2e79a224607239deaa991040 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 24 May 2016 09:40:07 +0000
Subject: [PATCH] trying better (?) legend for time steps

---
 Graphics/drawScales.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Graphics/drawScales.cpp b/Graphics/drawScales.cpp
index 4bad743d2c..09e5b2377e 100644
--- a/Graphics/drawScales.cpp
+++ b/Graphics/drawScales.cpp
@@ -175,11 +175,11 @@ 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,
-            data->getNumTimeSteps() - 1);
+    sprintf(label, "%s - Step %d in [0,%d]", data->getName().c_str(), opt->timeStep,
+            data->getNumTimeSteps()-1);
   }
   else
     sprintf(label, "%s", data->getName().c_str());
-- 
GitLab