I created an intensity-plot (x and y axes are positions, the color of the point gives the intensity) in an external program (igor pro) and included the "bare" plot via the \addplot graphics command into my axis-environment. Now I would like to create a "color-scale"-legend for this plot. The plot is in greyscales, white being no intensity and black being maximum intensity, color changing lineary with intensity.
Unfortunately, I'm not allowed to upload images yet, so I cannot show you what it should look like, so I hope my description is sufficient.
Is there a way to create such a custom legend?
Thans in advance,
John
edit:
here is the plot as it should like:

Creating the axes and labels with pgfplots is no problem, but i also need the colorscale legend.

!in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the!to turn it into an image again until you get more rep points. – percusse Sep 4 '12 at 13:25