Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!y7g2000yqa.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Axes ticks irregular spacing
Date: Mon, 29 Jun 2009 04:56:39 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <4c72e071-b1c2-49f6-8a7b-cea8dff43651@y7g2000yqa.googlegroups.com>
References: <h2a9ut$dmc$1@fred.mathworks.com>
NNTP-Posting-Host: 77.17.79.137
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246276599 7184 127.0.0.1 (29 Jun 2009 11:56:39 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 29 Jun 2009 11:56:39 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: y7g2000yqa.googlegroups.com; posting-host=77.17.79.137; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:551369


On 29 Jun, 13:53, "dage Tarari" <ahs...@hjg.es> wrote:
> Hi all,
>
> I wonder if it is possible to create X axis ticks with non-monotonically increasing values.

Of course it is. Try:

set(gca,'xtick',(0:0.2:1).^2)

Rune