Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: user defined xtics and mxtics Followup-To: comp.graphics.apps.gnuplot Date: Tue, 23 Oct 2012 23:05:08 -0700 Organization: gnuplot development team Lines: 48 Message-ID: References: <87ehkpez2g.fsf@panzer.v.cablecom.net> <87r4ooh2mf.fsf@lagrange.campus.intern> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Wed, 24 Oct 2012 06:05:09 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="de68407e1e0278021e2f738a9cf7b10c"; logging-data="19456"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qSQkcY/ejmsrntjW/jvnV" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:IFMXhwaHnTWU2DVDm5a4tv2AYKs= Xref: csiph.com comp.graphics.apps.gnuplot:1427 Fab wrote: > sfeam writes: > >> Fab wrote: >> >>> Dear All >>> >>> I read in the Gnuplot info's, that when I define my own xtics, I can >>> not use mxtics, which makes sense. >> >> That's not quite right. You can define both tics and mtics manually. >> But you cannot define tics and have the program insert mtics >> automatically between them. >> > Indeed, I was not precise here! > >>> However, especially in LaTeX terminals, >>> it is sometimes needed to redefine the axis label (actually only the >>> label and not the tics). Is it somehow possible to define xtics and >>> mxtics the usual way but then change only the axis label, leaving >>> the tics as they are? >> >> Certainly. >> set xtics ("One" 1, "Two" 2, "Three" 3) >> set xlabel "My favorite label" >> >> But maybe you are asking something else? >> For LaTeX output you often want to set a LaTeX format for the tic >> labels: >> set xtics format "$%g$" >> > My problem is the following: I have a plot with log x-axis. When I > use the format specifier for scientific notation, LaTeX will typeset > this as > such (with the e-01, etc. notation). However, I would like to have > xtic labels like $10^{-1}$ set format '$ %.2t10^{%T}$' > , hence I set them manually. But, for a log plot > I would also like the minor xtics to indicate the scale between the > decades. But I can not use xmtics in this case. Do I also have to > create an array for the minor xtics? I would like to have the xmtics > with half the ticlength of the major xtics. How would you do it? set tics scale 1.0, 0.5