Re: Legends for filled contour plots
- From: fburton@xxxxxxx (Francis Burton)
- Date: 29 Jun 2007 17:58:46 GMT
In article <1183133878.959978.78100@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Pradeep <drppbhat@xxxxxxxxx> wrote:
Could someone tell me how to obtain a legend for (filled) contour
plots using MATLAB. Thanks.
Does 'colorbar' do what you want?
This is what I am doing: from a grid-based computation data (in my
case, FEM), I use patch to plot ``patch graphics" and then use
interpolated shading. Is there someway to make MATLAB show the levels
(of the field values) to which the colors (from shading) correspond?
Is there also a way to control the number of levels in the
interpolated shading?
From the documentation:"colormap(hsv(128)) creates an hsv colormap with 128 colors. If you do
not specify a size, MATLAB creates a colormap the same size as the
current colormap."
This assumes equal spacing of you colour-value mapping.
Francis
.
- Follow-Ups:
- Re: Legends for filled contour plots
- From: Pradeep
- Re: Legends for filled contour plots
- References:
- Legends for filled contour plots
- From: Pradeep
- Legends for filled contour plots
- Prev by Date: Re: How to change a value into NaN
- Next by Date: Re: matlab numerical integration + bug?
- Previous by thread: Legends for filled contour plots
- Next by thread: Re: Legends for filled contour plots
- Index(es):
Relevant Pages
|