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


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

Circle in multiplot not shown

Started byMortenMacFly <mortenmacfly@gmail.com>
First post2016-01-31 04:27 -0800
Last post2016-01-31 09:32 -0800
Articles 2 — 2 participants

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


Contents

  Circle in multiplot not shown MortenMacFly <mortenmacfly@gmail.com> - 2016-01-31 04:27 -0800
    Re: Circle in multiplot not shown Ethan A Merritt <EAMerritt@gmail.com> - 2016-01-31 09:32 -0800

#3192 — Circle in multiplot not shown

FromMortenMacFly <mortenmacfly@gmail.com>
Date2016-01-31 04:27 -0800
SubjectCircle in multiplot not shown
Message-ID<a1944a42-c85f-4922-9b6f-e4f93f843a20@googlegroups.com>
Dear all,

I am using multiplot to plot 2 graphs under each other in a 0.6:0.4 ratio. Now I would like to highlight a certain part of the upper plot. I thought I would simply draw a circle on top which I explain in the corresponding text.

However, the circle is not shown and I am a bit lost. Is circle not valid in the multiplot environment?

Here is a sample gnuplot script with the circle is not shown:

reset

set terminal windows

set multiplot
set size   1.0,0.6
set origin 0.0,0.4
unset xlabel
set ylabel "YLabel1"
set format x ""

plot sin(x) t "1" w l lt -1 lw 2

set size   1.0,0.4
set origin 0.0,0.0
set xlabel "Index"
set ylabel "YLabel2"
set format x

plot 0.5*cos(x) t "2" w l lt 2 lw 2

set object 1 circle at 0,0 size 0.5

unset multiplot

pause -1

[toc] | [next] | [standalone]


#3193

FromEthan A Merritt <EAMerritt@gmail.com>
Date2016-01-31 09:32 -0800
Message-ID<n8lgab$nas$1@dont-email.me>
In reply to#3192
MortenMacFly wrote:

> Dear all,
> 
> I am using multiplot to plot 2 graphs under each other in a 0.6:0.4
> ratio. Now I would like to highlight a certain part of the upper plot.
> I thought I would simply draw a circle on top which I explain in the
> corresponding text.
> 
> However, the circle is not shown and I am a bit lost. Is circle not
> valid in the multiplot environment?

The only commands that actually draw to the screen are "plot" and
"splot".  All other commands, including "set", affect what will 
happen at the time of the next plot.  So you need to move your
"set object" command _before_ the last plot command.

	Ethan


> 
> Here is a sample gnuplot script with the circle is not shown:
> 
> reset
> 
> set terminal windows
> 
> set multiplot
> set size   1.0,0.6
> set origin 0.0,0.4
> unset xlabel
> set ylabel "YLabel1"
> set format x ""
> 
> plot sin(x) t "1" w l lt -1 lw 2
> 
> set size   1.0,0.4
> set origin 0.0,0.0
> set xlabel "Index"
> set ylabel "YLabel2"
> set format x
> 
> plot 0.5*cos(x) t "2" w l lt 2 lw 2
> 
> set object 1 circle at 0,0 size 0.5
> 
> unset multiplot
> 
> pause -1

[toc] | [prev] | [standalone]


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


csiph-web