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


Groups > comp.graphics.apps.gnuplot > #2738 > unrolled thread

Problem with squares

Started byMichael Okuntsov <proximum@land.ru>
First post2015-02-04 17:21 +0600
Last post2015-02-05 10:48 +0600
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Problem with squares Michael Okuntsov <proximum@land.ru> - 2015-02-04 17:21 +0600
    Re: Problem with squares Michael Okuntsov <proximum@land.ru> - 2015-02-04 17:46 +0600
      Re: Problem with squares Karl <mail.kfr@gmx.net> - 2015-02-04 14:56 +0100
        Re: Problem with squares Michael Okuntsov <proximum@land.ru> - 2015-02-05 10:48 +0600

#2738 — Problem with squares

FromMichael Okuntsov <proximum@land.ru>
Date2015-02-04 17:21 +0600
SubjectProblem with squares
Message-ID<masvb1$3nh$1@dont-email.me>
Hello,

set term post eps font ",10"
set output "data_boxes.eps"
set size ratio 0.9
unset key;unset border;unset tics
do for [i=1:4] {
do for [j=1:4] {
set object j+(i-1)*4 rect from (i-1)*22.33, (j-1)*20.5 rto 20., 19.5 fs 
empty border rgb "black" lw 3 front
}
}
# plot "data.txt" u 
($1/10.+1.0+$4*2.5):($2/10.+1.0+$5*2.0):(gprintf("%5.3f",$3)) w labels
plot sin(x)

The squares are not the same size. Why?

[toc] | [next] | [standalone]


#2739

FromMichael Okuntsov <proximum@land.ru>
Date2015-02-04 17:46 +0600
Message-ID<mat0om$9a3$1@dont-email.me>
In reply to#2738
04.02.2015 17:21, Michael Okuntsov пишет:
> Hello,
>
> set term post eps font ",10"
> set output "data_boxes.eps"
> set size ratio 0.9
> unset key;unset border;unset tics
> do for [i=1:4] {
> do for [j=1:4] {
> set object j+(i-1)*4 rect from (i-1)*22.33, (j-1)*20.5 rto 20., 19.5 fs
> empty border rgb "black" lw 3 front
> }
> }
> # plot "data.txt" u
> ($1/10.+1.0+$4*2.5):($2/10.+1.0+$5*2.0):(gprintf("%5.3f",$3)) w labels
> plot sin(x)
>
> The squares are not the same size. Why?

Btw, with enabled border and tics it is plotting fine.

[toc] | [prev] | [next] | [standalone]


#2740

FromKarl <mail.kfr@gmx.net>
Date2015-02-04 14:56 +0100
Message-ID<mat8f1$v9d$1@news.rz.uni-karlsruhe.de>
In reply to#2739
Am 04.02.2015 um 12:46 schrieb Michael Okuntsov:
> 04.02.2015 17:21, Michael Okuntsov пишет:
>> Hello,
>>
>> set term post eps font ",10"
>> set output "data_boxes.eps"
>> set size ratio 0.9
>> unset key;unset border;unset tics
>> do for [i=1:4] {
>> do for [j=1:4] {
>> set object j+(i-1)*4 rect from (i-1)*22.33, (j-1)*20.5 rto 20., 19.5 fs
>> empty border rgb "black" lw 3 front
>> }
>> }
>> # plot "data.txt" u
>> ($1/10.+1.0+$4*2.5):($2/10.+1.0+$5*2.0):(gprintf("%5.3f",$3)) w labels
>> plot sin(x)
>>
>> The squares are not the same size. Why?
> 
> Btw, with enabled border and tics it is plotting fine.

The clipping of the objects prints a line at the border, here at the
(invisible) axes.

Try "set object n rect noclip", and/or change the axis ranges.

  Karl

[toc] | [prev] | [next] | [standalone]


#2741

FromMichael Okuntsov <proximum@land.ru>
Date2015-02-05 10:48 +0600
Message-ID<mausla$c05$1@dont-email.me>
In reply to#2740
> The clipping of the objects prints a line at the border, here at the
> (invisible) axes.
>
> Try "set object n rect noclip", and/or change the axis ranges.
>
>    Karl
>

Thank you

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web