Revision 1743

tmp/org.txm.partition.core/src/org/txm/partition/core/chartsengine/r/RPartitionDimensionsBarChartCreator.java (revision 1743)
67 67
			// FIXME: one color by part
68 68
			//this.getChartsEngine().setColors(TXMPreferences.getInt(preferencesNode, result, ChartsEnginePreferences.RENDERING_COLORS_MODE),  parts.size());
69 69
			
70
			String ylab = PartitionCoreMessages.numberOfWords;
71

  
72 70
//			String cmd += "barplot(" + ssizes + ", col=colors, names.arg=" + snames + //$NON-NLS-1$ //$NON-NLS-2$
73 71
//					", main=\"" + title + "\", horiz=F, las=2, ylab=\"" + ylab + "\");\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
74 72

  
75
			String cmd = "barplot(" + ssizes + ", col=colors, names.arg=" + snames + //$NON-NLS-1$ //$NON-NLS-2$
76
					", horiz=F, las=2, ylab=\"" + ylab + "\");\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
73
//			String cmd = "barplot(" + ssizes + ", col=colors, names.arg=" + snames + //$NON-NLS-1$ //$NON-NLS-2$
74
//					", horiz=F, las=2, ylab=\"" + PartitionCoreMessages.numberOfWords + "\");\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
77 75
			
76
			String cmd = String.format("barplot(%s, col=colors, names.arg=%s, horiz=F, las=2, ylab=\"%s\");\n", ssizes, snames, PartitionCoreMessages.numberOfWords); //$NON-NLS-1$
78 77
			
79 78
			// plot the chart
80 79
			this.getChartsEngine().plot(file, cmd, result, Utils.createPartitionDimensionsChartTitle(partitionDimensions), Utils.createPartitionDimensionsChartSubtitle(partitionDimensions, sortPartsBySize, displayPartsCountInTitle));

Also available in: Unified diff