using legend with fill


I have produced a figure and used 'fill' to plot regions in that figure. I
wanted to place a legend for it, but when I tried it only the labels
appeared - no coloured squares indicating the colours of the fills, as you
get in Matlab. Is it possible to do this? I noticed in one of the example
scripts that it works with a barchart. I would like to use it in the same
way, but with 'fill's.




"The information contained in this e-mail message may be confidential information, and may also be privileged. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. If you have received this message in error, please notify us by return email and delete the original message."