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


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

Re: Circle in multiplot not shown

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Circle in multiplot not shown
Date 2016-01-31 09:32 -0800
Organization A noiseless patient Spider
Message-ID <n8lgab$nas$1@dont-email.me> (permalink)
References <a1944a42-c85f-4922-9b6f-e4f93f843a20@googlegroups.com>

Show all headers | View raw


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

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


Thread

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

csiph-web