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

Home » Public Forums » archive » Coord_transform in axes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Coord_transform in axes [message #89639] Mon, 03 November 2014 16:12 Go to previous message
joellama is currently offline  joellama
Messages: 8
Registered: July 2013
Junior Member
I am trying to add an axis to an image but am having some difficulty.

My array is the shape: values[150, 50] representing 150 days and 50 latitude bins for each day.

I'm plotting the image using

im = image(values)

and the image appears as expected but I want to add a y axis to label the values of theta. Each of the 50 latitude bins is uniform in sin(theta) going from -1 to +1 but I want the axis to be in terms of theta going from -90 to +90 degrees.

Ive looked at the coord_transform function in axis and that can get me from (-1, 1) to (-90, 90) but the scaling is then wrong because the latitude values aren't uniform in theta but sin(theta).

I'm completely drawing a blank on how to do this. Any help would be greatly appreciated!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: reading data with numbers and strings from data file
Next Topic: Reading binary (.ply) file of varying header size

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

Current Time: Wed Oct 08 15:49:26 PDT 2025

Total time taken to generate the page: 0.15507 seconds