xticks on semilogx zoom problem

I have a semilogx plot that I have zoomed into, so that there are no
xticks visible. I can't seem to set the xticks to something that
isn't an integer power of 10. I would actually prefer to set it to a
number that isn't displayed as 10^xxx, but I don't know how.

For example:

y=sin(2*pi*f)
semilogx(f,y)
xlim([1.5,2.5])
xticks([1.75,2.0])
show()

has no xticks.

How do I fix this?

Thanks,

Ryan

I'm a dork.

help xticks told me the solution (imagine that) - RTFdocstring.

make sure to include xticks([1.75,2.0],['1.75','2.0'])

ยทยทยท

On 4/28/06, Ryan Krauss <ryanlists@...287...> wrote:

I have a semilogx plot that I have zoomed into, so that there are no
xticks visible. I can't seem to set the xticks to something that
isn't an integer power of 10. I would actually prefer to set it to a
number that isn't displayed as 10^xxx, but I don't know how.

For example:

y=sin(2*pi*f)
semilogx(f,y)
xlim([1.5,2.5])
xticks([1.75,2.0])
show()

has no xticks.

How do I fix this?

Thanks,

Ryan