Trying to get boxes to have different colors for border and interior

Robert Dodier <[email protected]> Sat, 18 Feb 2023 17:46:15 -0800
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CAAsY_sTdh6oT9qEydJfAfmjk6Voh+U3WnGVWOwSoFDJYxPU70g@mail.gmail.com>
Hi, I'm working with boxes and I'd like to see if I can arrange for
the line around the border of the box to be a different color than the
interior of the box.

I tried the following and I expected it to draw boxes which have a red
interior and blue border:

plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue'
fillcolor 'red'
0.2 0.3 0.1
0.4 0.8 0.1
0.6 0.4 0.1
e

but what I see is that the border is red as well as the interior.

When I try it without fillcolor,

plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue'
0.2 0.3 0.1
0.4 0.8 0.1
0.6 0.4 0.1
e

the border is blue, as expected (and the interior is also blue, as
expected, since the documentation for boxes says that the fillcolor
defaults to the linecolor if not otherwise specified).

Looking at the documentation for boxes, it doesn't seem to say
anything about how the border color is determined, and also doesn't
seem to say anything about the linecolor parameter, except to say
fillcolor defaults to linecolor.

Is the observed behavior for the first example to be expected, or is
it a bug? Is there a way to get the border and the interior to be
different colors?

Thanks for any light you can shed on this, I appreciate your help.

Robert Dodier


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info