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 3 of 5 Topic 3345 of 3655
Post > Topic >>

Re: drawing rectangles

by merritt@[EMAIL PROTECTED] (Ethan Merritt) Jun 5, 2008 at 08:11 AM

In article <icS1k.22878$8z7.9358@[EMAIL PROTECTED]
>,
Bart Vandewoestyne  <MyFirstName.MyLastName@[EMAIL PROTECTED]
> wrote:
>I'm trying to reproduce the following plot (plotted by a collegue
>of mine using Python):
>
>http://www.cs.kuleuven.be/~bartv/stuff/gnuplot/star_discrepancy.pdf
>
>I'm already quite successfull with the following script:
>
>set terminal postscript eps enhanced color size 5cm,5cm
>set loadpath "../data"
>set style data points
>set xrange [0:1]
>set yrange [0:1]
>set xtics 0.2
>set ytics 0.2
>set size square
>set pointsize 0.5
>
>set out "star_discrepancy.eps"
>set title "Star Discrepancy"
>set object 1 rectangle from 0,0 to 0.75,0.33 back fc rgb "yellow" lw 0.5
>set object 2 rectangle from 0,0 to 0.125,0.75 back fc rgb "yellow" lw 0.5
>plot "pseudorandom_1024p_2d.dat" u 1:2 every ::0::215 title "" w p pt 7
lc rgbcolor "red"
>
>The result is at
>
>http://www.cs.kuleuven.be/~bartv/stuff/gnuplot/star_discrepancy2.pdf
>
>some problems remain:

>1) One rectangle covers the other, so the borderline of the second one is
not
>visible if they overlap.  I do want to see the border lines, even if
rectangles
>overlap...

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)

>2) Can i change the line type and line color of the border of the
rectangles?

Only to a limited extent.  The best you can do currently is to give a
different linetype by number, which restricts you to the default set of
types.

You could work around this by drawing the borders as separate lines.

-- 
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 22:19:18 PST 2009.