Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Christoph Bersch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Tic marks Date: Fri, 15 Feb 2013 16:33:41 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 15 Feb 2013 15:32:56 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="d470e712b6ca6e5726f6f421815ac75a"; logging-data="10816"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vPF1VpMhB5g6eLmB+lHaD" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 In-Reply-To: Cancel-Lock: sha1:aDcUmZ0S+Gws83p5wpEFiPOj2mI= Xref: csiph.com comp.graphics.apps.gnuplot:1635 Am 15.02.2013 16:06, schrieb Dieter Britz: > On Fri, 15 Feb 2013 15:04:25 +0000, Dieter Britz wrote: > >> I have some data where the x-axis is years. The range is [1989:2013]. >> >> I would like to have year numbers like 1990, 2000, 2010 with large tics >> at these numbers, but small tics for the whole range, as I would get >> with >> >> xtics 1989, 1, 2013 > > There is another problem. I once asked here about colouring > a plot, and got a recipe, which works fine. However, it seems > to erase tic marks. For example, I have > > set xtics 1990, 5, 2010 > set ytics 0, 100, 300 > set obj rect from graph 0, graph 0 to graph 1, graph 1 back \ > fc rgb '#FFEFD5' fillstyle solid 0.5 > > and the numbers come out on both axes, but no tic marks. Is > this an effect of the set obj line? set tics front set xtics 1990, 5, 2010 scale 1,1 set mxtics 5 set ytics 0, 100, 300 set obj rect from graph 0, graph 0 to graph 1, graph 1 back \ fc rgb '#FFEFD5' fillstyle solid 0.5 This should solve both problems. Christoph