Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1426
| From | Fab <fab4100@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: user defined xtics and mxtics |
| Date | 2012-10-24 07:15 +0200 |
| Organization | albasani.net |
| Message-ID | <87r4ooh2mf.fsf@lagrange.campus.intern> (permalink) |
| References | <87ehkpez2g.fsf@panzer.v.cablecom.net> <k6745r$gub$1@dont-email.me> |
sfeam <sfeam@users.sourceforge.net> 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}$, 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?
>> 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"
> ...
Thanks for this input!
Regards,
Fab
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