Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Put a 2d plot and an image into a 3D coordinate system

Path: g2news1.google.com!news3.google.com!feeder.news-service.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Michael Galloy <mgal...@gmail.com>
Newsgroups: comp.lang.idl-pvwave
Subject: Re: Put a 2d plot and an image into a 3D coordinate system
Date: Tue, 30 Aug 2011 10:26:43 -0600
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <j3j304$fl6$1@dont-email.me>
References: <c015b3dd-db15-4082-8e18-59f03aaab45e@glegroupsg2000goo.googlegroups.com> <d73d0f58-b920-4e5a-bc38-95e45e48570d@glegroupsg2000goo.googlegroups.com> <j3ivns$nfk$1@dont-email.me> <MPG.28c6b667d25d334298997e@news.giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Aug 2011 16:26:45 +0000 (UTC)
Injection-Info: mx04.eternal-september.org; posting-host="D01rAqqsM3MVl2m+jo2zmw";
	logging-data="16038"; mail-complaints-to="ab...@eternal-september.org";	posting-account="U2FsdGVkX18c8sYrSsebPG0JZrtWmY5x"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To: <MPG.28c6b667d25d334298997e@news.giganews.com>
Cancel-Lock: sha1:9VWByY/ogfiVQvZ5EUEk/FLASdw=

On 8/30/11 9:57 AM, David Fanning wrote:
> Mark Piper writes:
>
>> I have a NG solution. Though it uses less code than OG, I had to think
>> about it a bit (NG are still much newer to me than OG). I also had to
>> rely on the undocumented TEXTUPDIR property to flip the labels on the Z
>> axis (thanks, CT!). Please give this a try:
>
> Are you sure it doesn't use IDL 8.2 syntax!?
>
> Here is what happens when I try to compile this
> code in IDL 8.1:
>
> IDL>  .compile -v 'C:\Users\David\IDLWorkspace81\Default\junk.pro'
>
>      phiaxis = axis('y', location=[max(p.xrange), 0.0, max(p.zrange)], $
>                                   ^
> % Syntax error.
>    At: C:\Users\David\IDLWorkspace81\Default\junk.pro, Line 21
>
>      g = image(image, overplot=p, transparency=20)
>                                ^
> % Syntax error.
>    At: C:\Users\David\IDLWorkspace81\Default\junk.pro, Line 27
> % 2 Compilation error(s) in module $MAIN$.
> IDL>  print, file_which('axis.pro')
> % Compiled module: FILE_WHICH.
> C:\Program Files\ITT\IDL\IDL81\lib\graphics\axis.pro
> IDL>  print, file_which('image.pro')
> C:\Program Files\ITT\IDL\IDL81\lib\graphics\image.pro
>
> Huh!?

Works for me. Have you set compile_opt strictarr?

Mike
-- 
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation