public void createXYLineChart(final String filename) { XYLineChart chart = new XYLineChart(TITLE, X_AXIS, Y_AXIS); chart.addSeries(SERIE_1, new double[] {1.0, 2.0, 3.0, 4.0, 5.0}, new double[] {1.0, 5.0, 2.0, 3.0, 4.5}); chart.addSeries(SERIE_2, new double[] {1.0, 5.0, 2.0, 4.0, 3.0}, new double[] {2.0, 3.0, 3.0, 1.5, 4.5}); chart.saveAsPng(filename, 800, 600); }
public void createXYLogLogLineChart(final String filename) { XYLineChart chart = new XYLineChart(TITLE, X_AXIS, Y_AXIS, true); chart.addSeries(SERIE_1, new double[] {1.0, 2.0, 3.0, 4.0, 5.0}, new double[] {1.0, 5.0, 2.0, 3.0, 4.5}); chart.addSeries(SERIE_2, new double[] {1.0, 5.0, 2.0, 4.0, 3.0}, new double[] {2.0, 3.0, 3.0, 1.5, 4.5}); chart.saveAsPng(filename, 800, 600); }
XYLineChart chart = new XYLineChart("Leg Travel Distance Statistics", "iteration", "average of the average leg distance per plan "); double[] iterations = new double[index + 1]; for (int i = 0; i <= index; i++) {
chart = new XYLineChart("Average Leg Travel Times Statistics", "iteration", "time"); chart = new XYLineChart("Number of Trips per Mode Statistics", "iteration", "number of trips");
XYLineChart chart = new XYLineChart("Mode Statistics", "iteration", "mode"); for ( Entry<String, Map<Integer, Double>> entry : this.modeHistories.entrySet() ) { String mode = entry.getKey() ;
chart = new XYLineChart("Number of performed Activities", "time", "# activities"); for (String activityType : this.activityCountData.keySet()) { List<ActivityData> list = this.activityCountData.get(activityType);
XYLineChart chart = new XYLineChart("Score Statistics", "iteration", "score");
XYLineChart chart = new XYLineChart("Score Statistics", "iteration", "score"); double[] iterations = new double[index + 1]; for (int i = 0; i <= index; i++) {
log.info("Writing png file..."); XYLineChart chart = new XYLineChart("Iteration " + iteration, "Time of day [hours]", "Average delay [seconds]");
log.info("Writing png file..."); XYLineChart chart = new XYLineChart("Iteration " + iteration, "Time of day [hours]", "Toll [monetary units]");
return; XYLineChart chart = new XYLineChart("SlaveHandler Score Statistics", "iteration", "score"); double[] iterations = new double[idx];
); XYLineChart chart1 = new XYLineChart("Total travel time and total delay", "Iteration", "Hours"); double[] iterations1 = new double[event.getIteration() + 1]; double[] values1a = new double[event.getIteration() + 1]; chart1.saveAsPng(outputDirectory + this.congestionInfo.getScenario().getConfig().controler().getRunId() + ".decongestion_travelTime_delay.png", 800, 600); XYLineChart chart2 = new XYLineChart("user benefits and toll revenues", "Iteration", "Monetary units"); double[] iterations2 = new double[event.getIteration() + 1]; double[] values2b = new double[event.getIteration() + 1];
private void dropChart( final Id groupId, final History history) { final XYLineChart chart = new XYLineChart( getStatName()+" Statistics for "+groupId, "iteration", getStatName()); chart.addSeries( "avg. minimum "+getStatName(), history.getIterations(), history.getAvgOfMinimums()); chart.addSeries( "avg. max "+getStatName(), history.getIterations(), history.getAvgOfMaximums()); chart.addSeries( "avg. of plans' average "+getStatName(), history.getIterations(), history.getAvgOfAverages()); chart.addSeries( "avg. executed "+getStatName(), history.getIterations(), history.getAvgOfExecuted()); chart.addMatsimLogo(); chart.saveAsPng(this.fileName + "_" + groupId + ".png", 800, 600); }
XYLineChart size = new XYLineChart("Paratransit Statistics", "iteration", "operators/routes/fleet size"); XYLineChart scores = new XYLineChart("Paratransit Statistics", "iteration", "score/budget"); XYLineChart passengers = new XYLineChart("Paratransit Statistics", "iteration", "pax"); XYLineChart shares = new XYLineChart("Paratransit Statistics", "iteration", "shares of operators in business"); XYLineChart relaxOperator = new XYLineChart("Paratransit Statistics", "iteration", "average and deviation of operators"); XYLineChart relaxRoutes = new XYLineChart("Paratransit Statistics", "iteration", "average and deviation of routes"); XYLineChart relaxPax = new XYLineChart("Paratransit Statistics", "iteration", "average and deviation of passengers"); XYLineChart relaxVeh = new XYLineChart("Paratransit Statistics", "iteration", "average and deviation of vehicles");