Prev: SIMULINK R2008b and Visual Studi 2008 issue
Next: The MCR instance could not be initialized at MathWorks.MATLAB.NET.Utility.MWMCR..ctor
From: Zahra on 27 Nov 2008 14:47 Hi all, I have a 2d filled contour plot that was produced by contourf, something similar to what is shown as an example of the filled contour plot at: http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/contourf.html&http://www.mathworks.com/cgi-bin/texis/webinator/search/ The problem is that the ticks for x and y axes as well as the grid lines are buried under the data. How can I bring them on the top and make them visible. As far as the ticks are concerned I know how to put the ticks outside of the graph box but that is not what I want, I would like them to be still inside but over the data so they will still be visible. Also how can I change the colour of the ticks? Thanks, Zahra
From: Yuri Geshelin on 27 Nov 2008 15:09
"Zahra" <zahra.yamani(a)nrc.gc.ca> wrote in message <ggmtfm$792$1(a)fred.mathworks.com>... > Hi all, > > I have a 2d filled contour plot that was produced by contourf, something similar to what is shown as an example of the filled contour plot at: > > http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/contourf.html&http://www.mathworks.com/cgi-bin/texis/webinator/search/ > > The problem is that the ticks for x and y axes as well as the grid lines are buried under the data. How can I bring them on the top and make them visible. As far as the ticks are concerned I know how to put the ticks outside of the graph box but that is not what I want, I would like them to be still inside but over the data so they will still be visible. > > Also how can I change the colour of the ticks? > > Thanks, > Zahra Hi Zahra, try this: set(gca,'layer','top') As for the ticks' color, you can set them to [] and draw short lines by means of PLOT for example. Yuri |