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

Home » Public Forums » archive » axis labels
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 [message #21580 is a reply to message #21576] Tue, 05 September 2000 06:52 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mirko (loeh@my-deja.com) writes:

> I have a small problem using the axis procedure.
> I don't know why my third y-axis appears as
> log-axis without setting the /ylog keyword.
> It probably comes from the /ylog keyword
> in the second y-axis.
> Is there a clean solution for this problem apart from
> switching the code for the 2nd and 3rd axis?

Humm. Weird.

I don't have any idea what is happening. But I
can fix the problem by doing a plot into a pixmap
window, then going back to the drawing window.

Here is the code in my fix:

;==========3. y-axis log y-axis ???
win=!D.Window
window, /free, /pixmap, xsize=!D.X_Size, ysize=!D.Y_Size
plot,blende,pzu,xstyle=1,/xlog,color=0,background=255$
,yrange=[0.22,0.38],ystyle=9,position=[0.15,0.15,0.75,0.95], $
ytitle='FWHM',charsize=1.1,xrange=[0.03,3.0],psym=-5,$
xtitle='Detektorblende [mm]' ,yticks=8,yminor=2
wdelete, !D.Window
WSet, win

axis,8,yaxis=1,yrange=[4,14],/save,ystyle=1, color=180$
,ytitle='Peak/Untergrund ',charsize=1.1, ylog=0
oplot,blende,pzu,color=180,psym=-5

Very strange. I thought at first that it had something
to do with fields in the !P, !X, or !Y system variables.
But I saved these after the first plot and restored them
after the second plot, and it didn't do any good. This
is the best I can do. Chalk it up to the Mystery, I guess. :-)

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: String/integer use in variable definitions
Next Topic: Re: String/integer use in variable definitions

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

Current Time: Sat Nov 29 06:34:40 PST 2025

Total time taken to generate the page: 0.23856 seconds