On Wednesday, 10 June, 2015 14:29:27 Daniel J Sebald wrote:
> I have a question for anyone who might know how pm3d color can be
> controlled. I'm trying to do something that is actually rather simple,
> which is basically a 3D surface plot with a color different from
> white/background. Think of a typical hidden3d surface plot but with the
> interior of the mesh elements with a color other than white.
I do not know of any way to produce a hidden3d plot with colored
faces. The hidden3d code does not draw the surface quadrangles at all.
I.e. they are not "white", they are simply not drawn at all and the
objects behind them are not drawn either.
> I can get something close using pm3d, but not exactly. Also, pm3d has
> the limitation of not working so well with hidden3d, but that's of
> secondary importance. In the demo
>
> rgb_variable.dem
>
> are a couple examples where the pm3d colors can be controlled with color
> information in a file. It is something like this:
>
> with pm3d lc rgb variable
>
> and with RGB values in the data file, all having the same value, the
> pm3d plot does come out to have the correct color. It's a bit odd in
> the sense that "lc" or "linecolor" controls the face color, rather than
> some line color. Unfortunately, the lines used in the pm3d plot seems
> random, perhaps, or not controllable as far as I can tell. I try
> something like
>
> with pm3d lc rgb variable linestyle 2
>
> and that cause pm3d to go back to using palette lookup for the color
> (which is at the extreme end of the palette because RGB triples work out
> to very large numbers).
>
> Is there some way of controlling face color and line color in pm3d at
> the moment?
set pm3d border lt black hidden3d
plot $foo with pm3d lc rgb variable
Ethan
|