From 24afe0ce8e0d2c0956abd7dff55aabe73b66b449 Mon Sep 17 00:00:00 2001 From: lempinen Date: Fri, 3 May 2013 09:05:07 +0000 Subject: [PATCH] Show all runs of sensitivity analysis on charts (fixes #4237) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27304 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/ui/trend/XYDataset.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/trend/XYDataset.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/trend/XYDataset.java index edc9716e..4866e219 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/trend/XYDataset.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/trend/XYDataset.java @@ -188,7 +188,10 @@ public class XYDataset extends AbstractDataset implements org.simantics.jfreecha // Add found series for(int i = 0; i < series.size(); i++) { XYDatasetTempSeries s = series.get(i); - ds.addSeries(s.name, s.values); + String name = s.name; + if(ds.indexOf(name) >= 0) + name = name + (i + 1); + ds.addSeries(name, s.values); getRenderer().setSeriesStroke(i, new BasicStroke((float)s.width)); getRenderer().setSeriesPaint(i, s.color); } -- 2.47.1