Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1714

Re: drawing rectangles with gnuplot

From Christoph Bersch <usenet@bersch.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: drawing rectangles with gnuplot
Date 2013-03-20 09:13 +0100
Organization A noiseless patient Spider
Message-ID <kibqvk$61j$1@dont-email.me> (permalink)
References <94752dd9-6b05-4dae-a4b4-e184bce2cbd2@q8g2000pbn.googlegroups.com>

Show all headers | View raw


Am 19.03.2013 19:28, schrieb Gene Wagenbreth:
> I want to draw rectangles with gnuplot. I dont want to plot anything.
>
> I create a rectangle with:
> set object 2 rect from -1,1 to 0,5 fc rgb "gold"
>
> but to see the rectangle I have to plot something:
> plot [-5:5] x lc rgb "white"
>
> How do I get gnuplot to just draw the rectangles I have defined ?

You must plot something to get the rectangles, as you said.

> Will gnuplot support hundreds of different rectangles ?

Yes:

unset border
unset tics
do for [i=0:1000] {
   x = 9*(rand(0)-0.5)
   y = 9*(rand(0)-0.5)
   set object rectangle from x, y to x+rand(0),y+rand(0) fc rgb "gold"
}
plot [-5:5] x lw 0 t ''

Christoph

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

drawing rectangles with gnuplot Gene Wagenbreth <gwagenbreth@gmail.com> - 2013-03-19 11:28 -0700
  Re: drawing rectangles with gnuplot Gene Wagenbreth <gwagenbreth@gmail.com> - 2013-03-19 13:23 -0700
  Re: drawing rectangles with gnuplot Christoph Bersch <usenet@bersch.net> - 2013-03-20 09:13 +0100

csiph-web