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

Alan Corey <[email protected]> Sat, 18 Feb 2023 21:46:28 -0500
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CAOh3dDYfW_sEwfAuHsz7ZMhr5P=Fw9pLLpXwtXPe_wJEd5UC3Q@mail.gmail.com>
Can't you specify colors as RGB triplets?  I would think that would be
preferable to color names.

On 2/18/23, Robert Dodier <[email protected]> wrote:
> Sorry, I forgot to mention. I am working w/ Gnuplot 5.4 patchlevel 2
> on Linux. Terminal type is 'qt'.
>
> On Sat, Feb 18, 2023 at 5:46 PM Robert Dodier <[email protected]>
> wrote:
>>
>> 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
>


-- 
-------------
Education is contagious.


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