Prev: contrast enhancement
Next: Inverse PSD
From: Jomar Bueyes on 22 Feb 2010 15:39 Hi, Is there a way to tell Matlab where I want the grid lines for either of the axis? I did a get(gca), but did not find any property of the axis that sounded like the location of the grid lines. I could, off course, use "line" to draw the grid lines programatically, but I'm hoping there is a property I can set. Thank you in advance, Jomar
From: Jan Simon on 22 Feb 2010 15:59 Dear Jomar! > Is there a way to tell Matlab where I want the grid lines for either > of the axis? I did a get(gca), but did not find any property of the > axis that sounded like the location of the grid lines. You can set the properties 'XTick' and 'YTick' of the AXES object. Good luck, Jan
From: Jomar Bueyes on 22 Feb 2010 22:52 On Feb 22, 3:59 pm, "Jan Simon" <matlab.THIS_Y...(a)nMINUSsimon.de> wrote: > Dear Jomar! > > > Is there a way to tell Matlab where I want the grid lines for either > > of the axis? I did a get(gca), but did not find any property of the > > axis that sounded like the location of the grid lines. > > You can set the properties 'XTick' and 'YTick' of the AXES object. > Good luck, Jan Hi Jan, Thank you for your response. The situation that triggered my question is that when I set the 'xtick' in a semilogx plot, Matlab correctly labels the tick marks I set, but drops some of the grid lines, not all of them. So I end with a plot that has tick grid lines at the ticks I set and at some other that I did not set but that are not the default. So, I think I'm back to using setting off the grid and drawing the grid I want using "line". Thank you again for your response, Jomar
|
Pages: 1 Prev: contrast enhancement Next: Inverse PSD |