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

Home » Public Forums » archive » dumb surface plot question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dumb surface plot question [message #22889] Tue, 12 December 2000 12:51 Go to next message
Karl Young is currently offline  Karl Young
Messages: 31
Registered: April 1996
Member
I have a routine that calls the surface routine to plot stack plots of
NMR spectra. I got it to work just by fiddling around and stumbling on
the /horizontal keyword. The problem I'm now having is that this no
longer works in IDL 5.4 because apparently IDL has changed what it calls
"perpendicular to the line of sight", i.e. now the plots are done with
lines going through all the spectra, rather than with lines drawn
through the individual spectra. This seems like it must be trivial to
fix, but for the life of me I can't seem to get surface to draw the
orthogonal lines (and I don't want to change the axes in all my code
that calls this routine if I don't have to). Has anybody come across
this problem and come up with a solution ? Thanks for any tips.

-- KY
Re: dumb surface plot question [message #23009 is a reply to message #22889] Sat, 16 December 2000 12:16 Go to previous message
Karl Young is currently offline  Karl Young
Messages: 31
Registered: April 1996
Member
Hi David,

Thanks again for xsurface,... uh FSC_Surface that is; it solved my problem
(and many others; being GUI averse myself, it's far more elegant than anything
I've hacked to generate plots). Usually I'm the kind of cheapskate who likes to
skip versions of computing books to maximize my change/cost ratio (no matter how
good they are; had to butter you up a little !) but I think all you've done for
me and others in this group warrants a change in policy in this case. I don't
know if it's proper to ask this re. the newsgroup, but what the hell. Do you
prefer people to buy your book directly from you or from Amazon ?

David Fanning wrote:

> Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
>
>> Have you considered renaming your XSURFACE program? It clashes with RSI's
>> XSURFACE and at the moment, with the way my !PATH is set up, I get the RSI
>> one and not yours. (Yes, I know the solution is obvious...)
>
> Uh, actually, I *have* renamed it. It's called FSC_Surface,
> ...
Re: dumb surface plot question [message #23021 is a reply to message #22889] Thu, 14 December 2000 12:53 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> Have you considered renaming your XSURFACE program? It clashes with RSI's
> XSURFACE and at the moment, with the way my !PATH is set up, I get the RSI
> one and not yours. (Yes, I know the solution is obvious...)

Uh, actually, I *have* renamed it. It's called FSC_Surface,
but I keep remembering it by the old name, and I still have
old copies around for people who haven't ordered the 2nd
Edition of my book yet. :-)

But, uh, yes. Try FSC_SURFACE.

http:/www.dfanning.com/programs/fsc_surface.com

That would be the one with the latest bug fixes,
light controls, and other neat features. :-)

Cheers,

David

P.S. A gentle reminder provoked Amazon into ordering
48 books today, so I *think* they have enough books
now. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: dumb surface plot question [message #23022 is a reply to message #22889] Thu, 14 December 2000 12:33 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.14a29d606de7964989cba@news.frii.com...
> You can find XSURFACE here:
>
> http://www.dfanning.com/programs/xsurface.pro

Hi David

Have you considered renaming your XSURFACE program? It clashes with RSI's
XSURFACE and at the moment, with the way my !PATH is set up, I get the RSI
one and not yours. (Yes, I know the solution is obvious...)

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
Re: dumb surface plot question [message #23024 is a reply to message #22889] Thu, 14 December 2000 08:04 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Karl Young (kyoung@itsa.ucsf.edu) writes:

> I have a routine that calls the surface routine to plot stack plots of
> NMR spectra. I got it to work just by fiddling around and stumbling on
> the /horizontal keyword. The problem I'm now having is that this no
> longer works in IDL 5.4 because apparently IDL has changed what it calls
> "perpendicular to the line of sight", i.e. now the plots are done with
> lines going through all the spectra, rather than with lines drawn
> through the individual spectra. This seems like it must be trivial to
> fix, but for the life of me I can't seem to get surface to draw the
> orthogonal lines (and I don't want to change the axes in all my code
> that calls this routine if I don't have to). Has anybody come across
> this problem and come up with a solution ? Thanks for any tips.

Humm. I don't see any changes in behavior between IDL 5.3 and
IDL 5.4, but have you tried my XSURFACE program? That will
give you the opportunity to do with "horizontal" or "vertical"
lines. In fact, to start out with vertical lines you can do
this:

XSurace, data, Style=4

You can find XSURFACE here:

http://www.dfanning.com/programs/xsurface.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: The Book Bidness
Next Topic: Re: HIST_EQUAL

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

Current Time: Fri Oct 17 09:55:06 PDT 2025

Total time taken to generate the page: 0.64579 seconds