I want to generate a list as below for the legend of my plot,
{D=0, D=0.5, D=1, ...}
using the code
Table["D=" defocus, {defocus, Range[0, 3, 0.5]}]
However, it returns me the following,
{0., 0.5 "D=", 1. "D=", 1.5 "D=", 2. "D=", 2.5 "D=", 3. "D="}
How could I fix this problem? Thank you very much in advance.

Table["D=" <> ToString[defocus], {defocus, Range[0, 3, 0.5]}]– Sjoerd C. de Vries Feb 14 '16 at 22:06Rangefunction and just use the numbers. – Sjoerd C. de Vries Feb 14 '16 at 22:16