In article <5JT1k.58128$Zs3.5247@[EMAIL PROTECTED]
>,
Bart Vandewoestyne <MyFirstName.MyLastName@[EMAIL PROTECTED]
> wrote:
>On 2008-06-05, Ethan Merritt <merritt@[EMAIL PROTECTED]
> wrote:
>>
>> I suggest you draw the rectangles twice, once with
>> fillstyle solid 1.0 noborder
>> and then again with
>> fillstyle empty border N (where N is the line type)
>
>Ethan,
>
>I'm afraid I don't understand how this solves my 'hidden line' problem...
I was wrong. I forgot that for most terminal types,
"empty" doesn't really mean "empty", it means "fill with background
color".
That should arguably be considered a design flaw.
In the cvs version you could instead say
fillstyle transparent solid 0.0 border N
but that doesn't help you for version 4.2
Nevertheless, please be aware that you weren't testing quite
what you thought you were...
>http://www.cs.kuleuven.be/~bartv/stuff/gnuplot/rectangle_test.pl
Your script has
set object 1 rectangle back fillstyle solid 1.0 noborder lw 0
set object 1 rectangle back fillstyle empty border 1 lw 0.5
set object 2 rectangle back fillstyle solid 1.0 noborder lw 0
set object 2 rectangle back fillstyle empty border 1 lw 0.5
This doesn't "draw them twice".
It defines them once, and then immediately redefines them to something
else,
all before drawing anything.
>As you can see, the lines are still hidden... I am probably
>misinterpreting your answer... what exactly did you have in mind
>and what am I misinterpreting?
What I intended (but it still doesn't work):
set object 1 rectangle back fs solid 1.0 noborder lw 0
set object 11 rectangle front fs empty border 1 lw 0.5
set object 2 rectangle back fs solid 1.0 noborder lw 0
set object 12 rectangle front fs empty border 1 lw 0.5
What does work in the cvs version (I just tested it):
set object 1 rectangle back fs solid 1.0 noborder
set object 11 rectangle front fs transparent solid 0.0 border 1 lw 0.5
set object 2 rectangle back fs solid 1.0 noborder
set object 12 rectangle front fs transparent solid 0.0 border 1 lw 0.5
Hackish work-around that draws the lines separately from the rectangles:
set arrow 1 from 0.125,0 to 0.125,0.75 nohead lt 1
set arrow 2 from 0,0.75 to 0.125,0.75 nohead lt 1
set arrow 3 from 0.75,0 to 0.75,0.33 nohead lt 1
set arrow 4 from 0,0.33 to 0.75,0.33 nohead lt 1
--
Ethan A Merritt


|