Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Fab Newsgroups: comp.graphics.apps.gnuplot Subject: Re: user defined xtics and mxtics Date: Wed, 24 Oct 2012 13:16:10 +0200 Organization: albasani.net Lines: 55 Message-ID: <87mwzcglxh.fsf@lagrange.campus.intern> References: <87ehkpez2g.fsf@panzer.v.cablecom.net> <87r4ooh2mf.fsf@lagrange.campus.intern> Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.albasani.net AKmp2ieJP1KIoJzupiQcebkWa6AyI0NnZl4YmTLZaF9gPw9VCKMLGPCIJ92kiBpQTmDyrprbPmCkmyF0xjC9SepVgXWEvyESgctrSWCxVBMIPI9AARJ6zgSC2lDtjE+A NNTP-Posting-Date: Wed, 24 Oct 2012 11:15:33 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Nu4WM13EuCSBPTD0TWDlYxnpAqATc36d5x5tCoz1AOT8cy8rsMj/2LS4x0uET3MNhSY5LZfgP7W4UQocBti+uoTnZbpF4q3B5E2rZKv1B8TxT64JNautl/WA4Q4n26Pq"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:NmfnoiTkjtISyl3O8FAA5UeLPLw= sha1:pPEx/xRKTfUQMmEI6jfSRibKkwI= Xref: csiph.com comp.graphics.apps.gnuplot:1428 sfeam writes: > 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 > elegant! Thanks Best, Fab