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

Home » Public Forums » archive » IDL New Graphics Axis function: bug or feature?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL New Graphics Axis function: bug or feature? [message #81757] Mon, 22 October 2012 17:33 Go to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
Hi everyone,

I was trying to add an alternate X-axis to a new graphics plot when I could not place this new X-axis on the plot no matter how I tried. It turns out that the original data co-ordinate was established with /YLOG and the AXIS function wanted the location to be set in alog10(yrange[1]).

Here's an example code:
--------------------------------------
;;; generate some random data
N = 100
x = dindgen(N)
y = randomu(seed,N)*N


;;; create the plot
p = plot(x,y,/ylog) ;;; use YLOG
ax = p.axes
ax[2].hide=1 ;;; hide the top X-axis

;;; Now try to plot a new alternate X-axis
ymax = (p.yrange)[1]
a0 = axis('X',location=[0.0,ymax],tickdir=1);;; axis does not appear
a1 = axis('X',location=[0.0,alog10(ymax)],tickdir=1) ;;; axis appears at the top

end
--------------------------------------
IDL> print,!version
{ x86_64 linux unix linux 8.0 Jun 18 2010 64 64}



Looking through the newsgroup, it seems this behaviour is in line with what Sean Davis saw here: https://groups.google.com/forum/#!topic/comp.lang.idl-pvwave /lNWGIDjJQh8

I don't think IDL Direct Graphics AXIS procedure worked in this fashion. Anybody aware of the reason for the change?

Cheers,
Manodeep
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Counting Keyword set in a procedure!
Next Topic: Re: I'm a beginner, IDL question plot, max_value

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

Current Time: Fri Oct 10 12:23:11 PDT 2025

Total time taken to generate the page: 1.04118 seconds