Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #392 > unrolled thread
| Started by | macko <macko@nospam.org> |
|---|---|
| First post | 2011-06-21 16:23 +0200 |
| Last post | 2011-06-21 23:17 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Back side of surfaces - linestyle macko <macko@nospam.org> - 2011-06-21 16:23 +0200
Re: Back side of surfaces - linestyle sfeam <sfeam@users.sourceforge.net> - 2011-06-21 09:53 -0700
Re: Back side of surfaces - linestyle macko <macko@nospam.org> - 2011-06-21 22:22 +0200
Re: Back side of surfaces - linestyle Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-06-21 22:57 +0200
Re: Back side of surfaces - linestyle sfeam <sfeam@users.sourceforge.net> - 2011-06-21 23:17 -0700
| From | macko <macko@nospam.org> |
|---|---|
| Date | 2011-06-21 16:23 +0200 |
| Subject | Back side of surfaces - linestyle |
| Message-ID | <itq9gj$fco$1@speranza.aioe.org> |
Using v4.4.3, I am trying to control colors of two sides of a surface... but I can only set one color. Here is an example: --- set terminal pdf size 6,5 enhanced set style line 1 lc rgbcolor "blue" set style line 2 lc rgbcolor "black" set style line 3 lc rgbcolor "red" set hidden3d offset 1 show hidden3d #says "Back side of surfaces has linestyle offset of 1" splot sin(x*y) w l linestyle 1 --- The "linestyle 1" part selects a color of *both* sides; the "offset 1" does not seem to work. What am I missing? Thanks, Maciej
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2011-06-21 09:53 -0700 |
| Message-ID | <itqi9s$t2a$1@dont-email.me> |
| In reply to | #392 |
macko wrote: > > Using v4.4.3, I am trying to control colors of two sides of a surface... > but I can only set one color. Here is an example: > > --- > set terminal pdf size 6,5 enhanced > > set style line 1 lc rgbcolor "blue" > set style line 2 lc rgbcolor "black" > set style line 3 lc rgbcolor "red" > > set hidden3d offset 1 > show hidden3d #says "Back side of surfaces has linestyle offset of 1" > > splot sin(x*y) w l linestyle 1 > --- > > The "linestyle 1" part selects a color of *both* sides; the "offset 1" > does not seem to work. What am I missing? I think you want "offset 0". In other words, "increment the color by 0 before drawing to other side". > > Thanks, > > Maciej
[toc] | [prev] | [next] | [standalone]
| From | macko <macko@nospam.org> |
|---|---|
| Date | 2011-06-21 22:22 +0200 |
| Message-ID | <itquj2$67c$1@speranza.aioe.org> |
| In reply to | #393 |
>> The "linestyle 1" part selects a color of *both* sides; the "offset 1" >> does not seem to work. What am I missing? > > I think you want "offset 0". > In other words, "increment the color by 0 before drawing to other side". I would like to set two different colors. Instead of the default red and green, I'd like to set my colors - one color for one side (black), and a different color for the other side (gray). Maciej
[toc] | [prev] | [next] | [standalone]
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Date | 2011-06-21 22:57 +0200 |
| Message-ID | <4E0105CA.6030206@t-online.de> |
| In reply to | #392 |
On 21.06.2011 16:23, macko wrote: > set hidden3d offset 1 > show hidden3d #says "Back side of surfaces has linestyle offset of 1" That text may well be misleading. What you really get, from the commands you showed, is a line_type_ offset, not one of line_style_. You'll have to use 'set style increment user' and keep your fingers crossed that somebody actually implemented that for hidden3d's offset.
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2011-06-21 23:17 -0700 |
| Message-ID | <its1dt$s3u$1@dont-email.me> |
| In reply to | #392 |
macko wrote:
>
> Using v4.4.3, I am trying to control colors of two sides of a surface...
> but I can only set one color. Here is an example:
>
> ---
> set terminal pdf size 6,5 enhanced
>
> set style line 1 lc rgbcolor "blue"
> set style line 2 lc rgbcolor "black"
> set style line 3 lc rgbcolor "red"
>
> set hidden3d offset 1
> show hidden3d #says "Back side of surfaces has linestyle offset of 1"
>
> splot sin(x*y) w l linestyle 1
> ---
>
> The "linestyle 1" part selects a color of *both* sides; the "offset 1"
> does not seem to work. What am I missing?
Aha. I understand now.
The answer for version 4.4 is to add the command
set style increment user
This will cause the program to step through line _styles_ rather
than line _types_.
This command is obscure, non-obvious, etc, etc, and is not needed in
version 4.5, where you can use the more obvious commands:
set linetype 1 lc rgbcolor "blue"
set linetype 2 lc rgbcolor "black"
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web