Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1425
| 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 | 2012-10-23 15:02 -0700 |
| Organization | gnuplot development team |
| Message-ID | <k6745r$gub$1@dont-email.me> (permalink) |
| References | <87ehkpez2g.fsf@panzer.v.cablecom.net> |
Followups directed to: comp.graphics.apps.gnuplot
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 | Next — Previous in thread | Next in thread | Find similar
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