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

Home » Public Forums » archive » Re: 2D Plot in IDL with shading?
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: 2D Plot in IDL with shading? [message #71448 is a reply to message #71447] Fri, 18 June 2010 13:11 Go to previous messageGo to previous message
Ally is currently offline  Ally
Messages: 13
Registered: June 2010
Junior Member
On Jun 18, 3:49 pm, David Fanning <n...@dfanning.com> wrote:
> Ally writes:
>> I have three arrays-sun elevation, azimuth, and diode response, for
>> each of 12 sun sensors and I'm trying to create a 2D plot in IDL with
>> elevation on the x-axis, azimuth on the y-axis and the diode response
>> color coded on a gradient scale.  It would kind of be like a birds-eye
>> view of what a 3D graph with elevation shading would look like.  I've
>> been searching for two days now and can't seem to find anything online
>> that shows me how to make a graph like this.  Any help is appreciated.
>
> Are you looking for something like this:
>
>   http://www.dfanning.com/graphics_tips/coloredline.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Not exactly. The whole plot will be filled in because there's a diode
response for each elevation and azimuth pair. The diode response
doesn't change linearly so I can't use the vector idea. I want the
colors to match the data in highest to lowest value order (or vice
versa) but the data isn't written this way (it should end up looking
like a ring or ellipse pattern with greatest response/darkest color on
the outside and lowest response/lightest color on the inside). I have
a picture of something similar in Python but I can't attach it to a
post. Is there any way I can make a surface plot of the data, give it
elevation shading, and then just view it top down so I only see the x
and y axes and colored rings?

-Allison
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error detected while calling MPFIT_FDJAC2
Next Topic: Selecting data from two separate arrays

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

Current Time: Fri Oct 10 09:58:04 PDT 2025

Total time taken to generate the page: 0.87711 seconds