Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Re: drawing rec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 3345 of 3655
Post > Topic >>

Re: drawing rectangles

by merritt@[EMAIL PROTECTED] Jun 5, 2008 at 09:07 AM

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
 




 5 Posts in Topic:
drawing rectangles
Bart Vandewoestyne <My  2008-06-05 13:52:14 
Re: drawing rectangles
Karl Heinz Schloeglmann &  2008-06-05 16:07:24 
Re: drawing rectangles
merritt@[EMAIL PROTECTED]  2008-06-05 08:11:28 
Re: drawing rectangles
Bart Vandewoestyne <My  2008-06-05 15:35:29 
Re: drawing rectangles
merritt@[EMAIL PROTECTED]  2008-06-05 09:07:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 21:58:08 PST 2009.