For paper writing, Matlab is preferred to create figures for data analysis. However, bar charts in Matlab have limited options and much effort is needed to create a desired one.
Another way found today is that using Open Office Spread Sheets. Put the data there and change the properties of the bar chart.
Then select the chart only and from the Menu: File->Export as PDF, save only the chart to pdf file.
Moreover, to convert it to vector graphics, i.e. EPS format,:
1) pdftops, convert the pdf file firstly to ps file;
2) ps2eps, convert the ps file to eps file.
Then it's done,