comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How do I place an image when I am using !P.Multi?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How do I place an image when I am using !P.Multi? [message #88817 is a reply to message #88816] Mon, 23 June 2014 19:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matthew Argall writes:

> I am not David, but you can use cgLayout to do this easily.
>
> positions = cgLayout([10,10])
> pos99 = positions[*,98]
> pos100 = positions[*,99]
> merged_pos = [pos99[0], pos99[1], pos100[2], pos100[3]]

Yes, as Matthew suggests, cgLayout is a more powerful alternative to the
!P.MULTI system variable as it gives more options for positioning the
plots.

But, skipping plots with !P.MULTI is extremely easy, too. Just
manipulate (set) the first element of the !P.MULTI vector. It tells you
how many plots to plot on a page:

IDL> !P.Multi = [0,4,1]; four plots in a row
IDL> cgPlot, cgDemoData(1) ; first plot
IDL> Print, !P.Multi[0]
3
IDL> cgPlot, cgDemoData(1) ; second plot
IDL> !P.Multi[0] = 1 ; skip third plot
IDL> cgPlot, cgDemoData(1) ; fourth plot
IDL> !P.Multi=0

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I use the shapefiles of a particular country in plotting the country boundaries?
Next Topic: A grid is overlaid on an image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:40:58 PDT 2025

Total time taken to generate the page: 0.64222 seconds