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


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

Re: set xlabel columnheader

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: set xlabel columnheader
Followup-To comp.graphics.apps.gnuplot
Date Sat, 11 Jun 2011 08:37:14 -0700
Organization gnuplot development team
Lines 29
Message-ID <it022q$ee4$1@dont-email.me> (permalink)
References <a4ed0745-ad00-468e-9315-8db0bf3f8bf1@l18g2000yql.googlegroups.com>
Reply-To sfeam@users.sourceforge.net
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Sat, 11 Jun 2011 15:36:58 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="o91SbCCsAWDlMoXI3Mz8Xw"; logging-data="14788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ehCmkvu68YB4EHw7gDTD0"
User-Agent KNode/4.4.9
Cancel-Lock sha1:I68h3fQS+ssDSK/VSGzkIp5b6I0=
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:370

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


Katharina Miwege wrote:

> Hello,
> 
> I want do automatically have read out the columnheader as the xlabel/
> ylabel, maybe even with using the same column-numbers as in the plot
> command. This is possible to set the key, but how do I do it with the
> axislabels? Can I refer to a specific cell where the text is in?

I am having trouble understanding exactly what you have in mind.
Suppose the data set looks like this:

MyData       A  B   C   D
Monday       1  2   3   4
Tuesday      1  1   1   1
Wednesday    2  3   3   4
Thursday     1  2   4   3


You can place the weekday names along the x axis instead of the
numerical coordinates that would other be using to label the axis tickmarks,
and place the column headers in the key using a command like this:

  set key autotitle columnhead
  plot 'MyData' using 0:3:xticlabels(1)

But I don't understand what it is that you want to place in the
xlabel or ylabel.  In particular I don't understand in general what
you would want on the y axis.  Could you clarify the question?

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


Thread

set xlabel columnheader Katharina Miwege <k.miwege@googlemail.com> - 2011-06-11 01:18 -0700
  Re: set xlabel columnheader sfeam <sfeam@users.sourceforge.net> - 2011-06-11 08:37 -0700

csiph-web