Re: legend position
Follow the "Markup" link on this page also to lear more about formatting a question to improve the readability. You can try the below link. Direct link to this answer: Answer by Jan Jan view profile. The 'Location' property uses the strings 'southeast', 'northeast', 'best' etc. If you want to set the position to a rectangle, use the 'Position' property: Robert Robert view profile. Rotimi Agbebi Rotimi Agbebi view profile. Thanks for this, made some progress.
Answer by Usjes Usjes view profile. Well this wasted an hour of my life but I finally worked the answer out for myself although I find it incredible that Mathworks has not documented this anyhwere, but anyway here goes: Jan you are incorrect in saying that the 'Location' property is not used for specifying the legend location. The Matlab help for legend clearly states: LOC may be either a. From experimentation though it seems that the four element 'Location' vector has the format: So Jan, you may also be able to control the location of the legend by using the 'Position' property however the method specified in the help function is via the 'Location' property but the help fails spectacularly in explaining how exactly to use it.
Answer by Robert Robert view profile. Thanks for the help. I tried removing the quotation marks, but then I got the error: See my edited former post.
Opportunities for recent engineering grads. An Error Occurred Unable to complete the action because of changes made to the page. AFAIK you cannot get at that from the raster:: Thank you, I'll try to work with lattice. It is not straightforward unless you want the legend in the right or the bottom margins. To put the legend inside the plot region it is simplest to use image to plot the raster file and then image.
Here are two simple examples. Monday, December 2, 1: Thank you David, it is exactly what I needed. Filoche wrote Hi all. In reply to this post by Filoche It occurs to me that perhaps you're referring to the 'color bar' on the right of the plot. In reply to this post by Filoche It is not straightforward unless you want the legend in the right or the bottom margins.