Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3048

Re: Labelling bug with xtics offset if y2-axis is activated

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl-Friedrich Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Labelling bug with xtics offset if y2-axis is activated
Date Tue, 18 Aug 2015 14:57:35 +0200
Organization solani.org
Lines 25
Message-ID <mqva3v$sj0$1@solani.org> (permalink)
References <mqtfa8$v0l$1@speranza.aioe.org> <mqtv6i$22c$1@solani.org> <mqv8bb$gvg$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15
Content-Transfer-Encoding 7bit
X-Trace solani.org 1439902655 29280 eJwNx8kBwCAIBMCWuHaRcpBo/yWY+Q2cyskgGLi4J0F0SZ6aWbE1HaoN/TbhTYEK69+ytrB6CX0QCg== (18 Aug 2015 12:57:35 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 18 Aug 2015 12:57:35 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
X-User-ID eJwFwQkBwDAIA0BL5U2RQ1jxL2F3YSk58Iz02Fgl4Xs1xagXGv1Qb47s15UL4gyBRpf4o/0ZiRE3
In-Reply-To <mqv8bb$gvg$1@speranza.aioe.org>
Cancel-Lock sha1:39z5e6fa3PP1EkaLHqPpPiU0/xI=
X-NNTP-Posting-Host eJwNxskBwDAIA7CVAGOOcRoa9h+h1UtEaEx6MJzLlXu9wOQrmzH9aAtsS9RAyn/vwSbEBufUB/6jD9Y=
Xref csiph.com comp.graphics.apps.gnuplot:3048

Show key headers only | View raw


Am 18.08.2015 um 14:27 schrieb Janis Papanagnou:
> On 18.08.2015 02:45, Karl-Friedrich Ratzsch wrote:
>> 	set xtics 1 offset first 0.5
>> 	set rmargin at screen 0.8
>>  	plot [0:10] x
>>
>> A very easy workaround is to limit the range of the ticslabels to be
>> produced
>>
>> 	set xtics 0,1,9 offset first 0.5
>>
> 
> IIUC, these are hard coded ranges. Can you please explain how this "easy
> workaround" will have to be defined in the general case (the case I have)
> where there's varying data scales depening on the actual data? Say, where
> one data set covers the range 2004-2015, another data range will cover
> 2009-2012.

Do a test plot (or use the "stats" command in gnuplot >4.6) to find
out your actual data range (it's in the GPVAL_ variables after each
plot) and then limit it accordingly.

Or try to get the information from somewhere else. The file name
perhaps? Or use the shell() command to extract it from your data
file with the help of grep.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Labelling bug with xtics offset if y2-axis is activated Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-17 22:14 +0200
  Re: Labelling bug with xtics offset if y2-axis is activated Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-08-18 02:45 +0200
    Re: Labelling bug with xtics offset if y2-axis is activated sfeam <sfeam@users.sourceforge.net> - 2015-08-17 22:13 -0700
      Re: Labelling bug with xtics offset if y2-axis is activated Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-18 14:17 +0200
        Re: Labelling bug with xtics offset if y2-axis is activated Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-08-18 15:22 +0200
        Re: Labelling bug with xtics offset if y2-axis is activated sfeam <sfeam@users.sourceforge.net> - 2015-08-18 21:37 -0700
    Re: Labelling bug with xtics offset if y2-axis is activated Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-18 14:27 +0200
      Re: Labelling bug with xtics offset if y2-axis is activated Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-08-18 14:57 +0200

csiph-web