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


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

Re: user defined xtics and mxtics

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: user defined xtics and mxtics
Followup-To comp.graphics.apps.gnuplot
Date Tue, 23 Oct 2012 15:02:32 -0700
Organization gnuplot development team
Lines 39
Message-ID <k6745r$gub$1@dont-email.me> (permalink)
References <87ehkpez2g.fsf@panzer.v.cablecom.net>
Reply-To sfeam@users.sourceforge.net
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Tue, 23 Oct 2012 22:02:35 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="8e86a57dfa599721f116da4577f3d1af"; logging-data="17355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QRhhf79xkovHhSKHJ0nAH"
User-Agent KNode/4.4.9
Cancel-Lock sha1:M6ME2HdjZ/nd0D2p6e6ic8/OwsU=
Xref csiph.com comp.graphics.apps.gnuplot:1425

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


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.

> 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$"

> E.g., in Matlab you have two arrays defining the
> tics, one with the numeric data and the other with the label strings.

That is also possible, so long as both arrays can be read from the
same file:

   plot <my-real-plot>,  'labeldata' using 1:xticlabels(2)

where the file labeldata contains
1 "One"
2 "Two"
3 "Three"
...

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


Thread

user defined xtics and mxtics Fab <fab4100@gmail.com> - 2012-10-23 22:03 +0200
  Re: user defined xtics and mxtics sfeam <sfeam@users.sourceforge.net> - 2012-10-23 15:02 -0700
    Re: user defined xtics and mxtics Fab <fab4100@gmail.com> - 2012-10-24 07:15 +0200
      Re: user defined xtics and mxtics sfeam <sfeam@users.sourceforge.net> - 2012-10-23 23:05 -0700
        Re: user defined xtics and mxtics Fab <fab4100@gmail.com> - 2012-10-24 13:16 +0200
    Re: user defined xtics and mxtics Ingo Thies <ingo.thies@gmx.de> - 2012-10-24 22:24 +0200
      Re: user defined xtics and mxtics sfeam <sfeam@users.sourceforge.net> - 2012-10-24 17:23 -0700
  Re: user defined xtics and mxtics Cristian Camilo Mejia <cc.mejia@gmail.com> - 2013-04-23 14:04 -0700
  Re: user defined xtics and mxtics Cristian Camilo Mejia <cc.mejia@gmail.com> - 2013-04-23 14:07 -0700

csiph-web