My rough setup is the following:
set view map
set style data pm3d
set pm3d ...
splot DATA_A1, DATA_A2, ...
set contour base
set cntrparam levels discrete VAL_B ...
set cntrparam levels discrete VAL_C ...
This is working very fine to plot a map of data (DATA_Ax) and two
contour overlays from different data (DATA_B, DATA_C). But it shows,
that both single contour lines (VAL_B and VAL_C) were plotted in the
same linetype (and color too).
So my questions are: Is there a way to set explicitly the linetype of
following contour plot lines? Or is it possible to set a linetype bias
and increment for contour lines?
My actual gnuplot file(s) (each splot in above example is a "load" of a
generic gnuplot file) makes use of my own predefined linetypes. This
works very well for choosing linetypes for surfaced plots (w/ "hidden3d
offset ..."). I think I am looking for something similar for contour
I am using gnuplot 4.6 patchlevel 0 on arch linux.
I would be very happy if someone of you could help me with this
Many thanks to everyone,
Am Dienstag, den 19.06.2012, 00:40 +0200 schrieb Hans-Bernhard Bröker:
> On 17.06.2012 22:47, murt wrote:
> > set multiplot
> Your problem lies right here. You're abusing multiplot.
> You should really do your entire plot in _one_ splot command. The way
> you did it, you're essentially requesting gnuplot to treat all your
> plots as completely independent. Re-using the same colours for the
> contour lines is just one of many problems this causes.
I don't think using multiplot this way is an actual abuse, iirc I read
something about this usage in the documentation. I am dealing with
dozens of gnuplot files and so I have to stay with reusing code via the
load command (and that mean using multiple plot commands).
But anyhow, yes, in this way every single plot is treated independently,
so their colour is reset too. But may question is still, if there's an
option to set the linetype of contour lines explicitly -- like it is
possible for other plot/splot content (lines/surfaces).
I have already tried to insert other contour values to shift/increase
the linetype of the desired contour line to a number with appropriate
colour. But then I am struggling with extra, unnecessary visible contour
lines. Maybe there's an option to turn specific linetypes/contour lines