dumb surface plot question [message #22889] |
Tue, 12 December 2000 12:51  |
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  |
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  |
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 #23024 is a reply to message #22889] |
Thu, 14 December 2000 08:04  |
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
|
|
|