Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Cropping of shifted x-axis Date: Mon, 03 Mar 2014 13:35:43 -0800 Organization: University of Washington Lines: 50 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Mon, 3 Mar 2014 21:35:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="8e86a57dfa599721f116da4577f3d1af"; logging-data="21296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J1ZH+d54yUQHnu75a29rF" User-Agent: KNode/4.10.5 Cancel-Lock: sha1:hNe5DMzp6gImv+lL8nG2Tx0y4FE= Xref: csiph.com comp.graphics.apps.gnuplot:2335 Janis Papanagnou wrote: > I am using a day based time scale on x-axis. Without further action the > days are aligned at 00:00 as depicted here... (please use a mono-space > font to view the following sketches) > > |-----|-----| > Mon Tue Wed > > I want the whole days from 00:00 to 24:00 marked with the day name, that > the x-tics labels are centered on the day > > |-----|-----| > Mon Tue > > So I applied an offset argument to the command. My actual commands are > > set xdata time > set format x "%a" > set xtics 86400 > set mxtics 8 > set xtics offset first 86400/2 > > with the following result > > |-----|-----| > Mon Tue Wed > > You can see that the "Wed" isn't necessary and even spoils the diagram. > > This is a re-post from a few years ago where no one could point me to > a solution; so if that's something not possible to achieve with gnuplot > I'd appreciate to get a negative confirmation. > > My current workaround is a hack; I postprocess the png file that gnuplot > creates with the imagemagic tools to graphically clear that part of the > image. I'd like to avoid that hack and prefer a gnuplot solution. Two possibilities: 1) If your actual data do not extend into Wednesday, then set autoscale noextend may do what you want 2) Force a blank label at that date using set xtics add ("" whatever-the-date-is) > > Thanks for any hints.