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


Groups > comp.graphics.apps.gnuplot > #1202 > unrolled thread

Colored y2 axis and y2tics?

Started byGudrun <bestenborstel@gmail.com>
First post2012-06-13 18:35 +0200
Last post2012-06-15 23:13 +0200
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Colored y2 axis and y2tics? Gudrun <bestenborstel@gmail.com> - 2012-06-13 18:35 +0200
    Re: Colored y2 axis and y2tics? Gudrun <bestenborstel@gmail.com> - 2012-06-13 18:35 +0200
    Re: Colored y2 axis and y2tics? sfeam <sfeam@users.sourceforge.net> - 2012-06-13 10:33 -0700
      Re: Colored y2 axis and y2tics? Gudrun <bestenborstel@gmail.com> - 2012-06-14 12:24 +0200
        Re: Colored y2 axis and y2tics? Ingo Thies <ingo.thies@gmx.de> - 2012-06-15 23:13 +0200

#1202 — Colored y2 axis and y2tics?

FromGudrun <bestenborstel@gmail.com>
Date2012-06-13 18:35 +0200
SubjectColored y2 axis and y2tics?
Message-ID<jraffr$jm8$1@news.albasani.net>
Dear all.
I would like to ask two questions:

a) Can I change the color of y2 axis, i.e. the color of the vertical 
line being the y2 axis with a command inside gnuplot?

b) I managed to change the color of the numbers of the y2 axis and the 
label, but the small horizontal streaks that are the tics remain black. 
How do I change their color in gnuplot, please?

Thank you.
Kind regards
Gudrun

[toc] | [next] | [standalone]


#1203

FromGudrun <bestenborstel@gmail.com>
Date2012-06-13 18:35 +0200
Message-ID<jrafhe$jm8$2@news.albasani.net>
In reply to#1202
Am 13.06.12 18:35, schrieb Gudrun:
> Dear all.
> I would like to ask two questions:
>
> a) Can I change the color of y2 axis, i.e. the color of the vertical
> line being the y2 axis with a command inside gnuplot?
>
> b) I managed to change the color of the numbers of the y2 axis and the
> label, but the small horizontal streaks that are the tics remain black.
> How do I change their color in gnuplot, please?
>
> Thank you.
> Kind regards
> Gudrun

I forgot to mention that I use
set term tikz size 407.65pt,251.95pt standalone header 
"\\usepackage{MyGnuplotLaTeX}" font "\\rmfamily,12pt"

as terminal.

[toc] | [prev] | [next] | [standalone]


#1204

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-06-13 10:33 -0700
Message-ID<jrait3$pqo$1@dont-email.me>
In reply to#1202
Gudrun wrote:

> Dear all.
> I would like to ask two questions:
> 
> a) Can I change the color of y2 axis, i.e. the color of the vertical
> line being the y2 axis with a command inside gnuplot?
> 
> b) I managed to change the color of the numbers of the y2 axis and the
> label, but the small horizontal streaks that are the tics remain black.
> How do I change their color in gnuplot, please?

You can change the color of all the axis lines jointly by using
"set border {{linestyle | ls <line_style>} | {linetype | lt <line_type>}}"

The individual subcomponents, including the y2 axis and tics,
cannot be changed independent of the rest.

On the other hand, if you just want to draw a colored line on top of 
the y2 axis you can say
   set arrow N nohead front \
         from graph 1, graph 0 to graph 1, graph 1 lc rgb "whatever"


> 
> Thank you.
> Kind regards
> Gudrun

[toc] | [prev] | [next] | [standalone]


#1205

FromGudrun <bestenborstel@gmail.com>
Date2012-06-14 12:24 +0200
Message-ID<jrce48$7p0$1@news.albasani.net>
In reply to#1204
Am 13.06.12 19:33, schrieb sfeam:

Dear Sfeam,
thank you for your suggestion.

> You can change the color of all the axis lines jointly by using
> "set border {{linestyle | ls<line_style>} | {linetype | lt<line_type>}}"
>
> The individual subcomponents, including the y2 axis and tics,
> cannot be changed independent of the rest.

Okay, but that is what I intended to do, just to change the design of 
the y2 axis and leave the rest untouched. But if it is not possible, I 
have to live with it.
>
> On the other hand, if you just want to draw a colored line on top of
> the y2 axis you can say
>     set arrow N nohead front \
>           from graph 1, graph 0 to graph 1, graph 1 lc rgb "whatever"

Cool. Thanks. At least this side of the border has then the right color.

>
>
>>
>> Thank you.
>> Kind regards
>> Gudrun
>

[toc] | [prev] | [next] | [standalone]


#1206

FromIngo Thies <ingo.thies@gmx.de>
Date2012-06-15 23:13 +0200
Message-ID<a41mqsFbgtU1@mid.individual.net>
In reply to#1205
Am 2012-06-14 12:24, schrieb Gudrun:

>> On the other hand, if you just want to draw a colored line on top of
>> the y2 axis you can say
>>     set arrow N nohead front \
>>           from graph 1, graph 0 to graph 1, graph 1 lc rgb "whatever"
>
> Cool. Thanks. At least this side of the border has then the right color.

In principle, you can even use arrows instead of the native tics. It is 
a bit more work, and the "set *tics" commands won't of course work for 
them, but on the other hand, you can draw slanted tics where needed. One 
example is this graph of the Planckian colour locus in the CIE 1931 
diagram (I don't know whether this has actually been done in gnuplot, 
but I succeeded to reproduce similar plots with gnuplot):

http://commons.wikimedia.org/wiki/File:PlanckianLocus.png

Similarly, also coloured tics should be possible (as well as coloured 
tick labels, like the wavelength labels in the above figure).

Best wishes,

Ingo

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web