Multi plots conditions [message #93312] |
Sat, 11 June 2016 22:12  |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
Hey all,
I have a query regarding multiplotting in IDL:
I know how to to multiplot like eg.
cgerase & multiplot, [r,b],mXtitle='W', mYtitle='F'
will generate r*b plot windows with b columns and r rows,
but if i want to generate my some plots to be specifically get plotted at say
points on window say where my r is odd( say for eg.) or my b say b>2.
It could be any condition related to r and b. How to go for it???
Any Idea?
|
|
|
Re: Multi plots conditions [message #93313 is a reply to message #93312] |
Mon, 13 June 2016 08:09  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Sunday, June 12, 2016 at 1:12:50 AM UTC-4, Sapna Mishra wrote:
> Hey all,
>
> I have a query regarding multiplotting in IDL:
>
> I know how to to multiplot like eg.
>
> cgerase & multiplot, [r,b],mXtitle='W', mYtitle='F'
>
> will generate r*b plot windows with b columns and r rows,
> but if i want to generate my some plots to be specifically get plotted at say
> points on window say where my r is odd( say for eg.) or my b say b>2.
> It could be any condition related to r and b. How to go for it???
> Any Idea?
One way is to create a null plot whenever you don't want a plot to appear
plot,/nodata,xstyle=4,ystyle=4
where the X/YStyle keywords suppress the axes, and the /nodata keyword suppresses plotting any data.
For example, to suppress a plot at every other location with !p.multi
!p.multi=[0,3,3]
for i=1,9 do if i mod 2 then cgplot,indgen(10) else cgplot,indgen(10),/nodata,xstyle=4,ystyle=4
|
|
|