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


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

Plotting boxes with height and color intensity as parameters

Started byJanis Papanagnou <janis_papanagnou@hotmail.com>
First post2014-02-22 04:22 +0100
Last post2014-03-03 13:30 -0800
Articles 3 — 2 participants

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


Contents

  Plotting boxes with height and color intensity as parameters Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-02-22 04:22 +0100
    Re: Plotting boxes with height and color intensity as parameters Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-02 15:16 +0100
      Re: Plotting boxes with height and color intensity as parameters Ethan A Merritt <merritt@u.washington.edu> - 2014-03-03 13:30 -0800

#2314 — Plotting boxes with height and color intensity as parameters

FromJanis Papanagnou <janis_papanagnou@hotmail.com>
Date2014-02-22 04:22 +0100
SubjectPlotting boxes with height and color intensity as parameters
Message-ID<le956h$7of$1@speranza.aioe.org>
From a data file I am using two columns to plot boxes with 50% saturation:

  plot "data" using 1:4 axis x1y2 title '...' with boxes fs solid 0.5

I'd be interested to know whether it's possible to change that constant 0.5
to become a parameter also controlled by the data file. In the "data" file
I have a column that contains percentages in the range from 0% to 100% that
should be mapped to a range of something like "solid 0.0" to "solid 1.0".
Would that be possible to achieve, and if so, how?

Thanks!

[toc] | [next] | [standalone]


#2325

FromJanis Papanagnou <janis_papanagnou@hotmail.com>
Date2014-03-02 15:16 +0100
Message-ID<leveet$269$1@speranza.aioe.org>
In reply to#2314
On 22.02.2014 04:22, Janis Papanagnou wrote:
> From a data file I am using two columns to plot boxes with 50% saturation:
> 
>   plot "data" using 1:4 axis x1y2 title '...' with boxes fs solid 0.5
> 
> I'd be interested to know whether it's possible to change that constant 0.5
> to become a parameter also controlled by the data file. In the "data" file
> I have a column that contains percentages in the range from 0% to 100% that
> should be mapped to a range of something like "solid 0.0" to "solid 1.0".
> Would that be possible to achieve, and if so, how?
> 
> Thanks!

I'd also appreciate a negative confirmation, that what I intend is not
possible to achieve with gnuplot.

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


#2334

FromEthan A Merritt <merritt@u.washington.edu>
Date2014-03-03 13:30 -0800
Message-ID<lf2sac$gs1$1@dont-email.me>
In reply to#2325
Janis Papanagnou wrote:

> On 22.02.2014 04:22, Janis Papanagnou wrote:
>> From a data file I am using two columns to plot boxes with 50%
>> saturation:
>> 
>>   plot "data" using 1:4 axis x1y2 title '...' with boxes fs solid 0.5
>> 
>> I'd be interested to know whether it's possible to change that constant
>> 0.5 to become a parameter also controlled by the data file. In the "data"
>> file I have a column that contains percentages in the range from 0% to
>> 100% that should be mapped to a range of something like "solid 0.0" to
>> "solid 1.0". Would that be possible to achieve, and if so, how?
>> 
>> Thanks!
> 
> I'd also appreciate a negative confirmation, that what I intend is not
> possible to achieve with gnuplot.

It is not possible to make the "fs solid" parameter variable.

However in the development version (4.7) it is possible to make the
fill color itself a variable and encode the alpha channel value in the
upper bits of the color.  That would achieve the same result.

	Ethan

[toc] | [prev] | [standalone]


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


csiph-web