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


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

Re: set xlabel columnheader

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: set xlabel columnheader
Followup-To comp.graphics.apps.gnuplot
Date 2011-06-11 08:37 -0700
Organization gnuplot development team
Message-ID <it022q$ee4$1@dont-email.me> (permalink)
References <a4ed0745-ad00-468e-9315-8db0bf3f8bf1@l18g2000yql.googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | 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