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

Home » Public Forums » archive » Axis issues, cgSurf and cgContour
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: Axis issues, cgSurf and cgContour [message #90390 is a reply to message #90385] Fri, 27 February 2015 12:00 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sam.tushaus@gmail.com writes:

> Sorry - by forcing the axes, I mean that I need to suppress them and then specify axis labels. This can get pretty tedious since I want to automate the process, and I don't often have whole numbers to use on the axis. Here's what I want to plot using cgSurf:
>
> data = elevation [25,320]
> x = longitude [25,320]
> y = latitude [25,320]
>
> I've tried "cgSurf, data, x, y" and "cgSurf, data, y, x", as well as something to the effect of "cgSurf, data, x[1,*], y[1,*]"...but as I type that out, I'm realizing that I was thinking about it wrong. I needed to do "cgSurf, data, x[*,1], y[1,*]" to match dimensions.
>
> However, I still have issues with cgContour. In that case, I've got:
>
> data = reflectivity [1440,31]
> x = time [1440]
> y = height [1440,31] (or [31] if I just use one row of data)
>
> I've tried everything I can think of to plot this, but I've had no luck.

Are you sure your [31] array is a row vector and not a column vector
[1,31], which would NOT work. That seems to be the simplest explanation,
because what you SAY you are doing would work perfectly well. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Principle Componets Analysis
Next Topic: CgTaylorDiagram

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

Current Time: Fri Oct 10 01:01:15 PDT 2025

Total time taken to generate the page: 0.71996 seconds