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

Home » Public Forums » archive » Equivalent of ytick_get() in function graphics?
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: Equivalent of ytick_get() in function graphics? [message #93079 is a reply to message #93078] Fri, 22 April 2016 06:39 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, April 21, 2016 at 2:30:02 PM UTC-4, Paulo Penteado wrote:
> Hello Wayne,
>
> It sounds like you might want the tickname or tickvalues properties of a plot's axis:
>
> p = plot(indgen(10),position=[0.1,0.525,0.95,0.95],xtickname=['' ])
> p = plot(indgen(10)+2,position=[0.1,0.1,0.95,0.525],/current)
> tn=(p['yaxis']).tickname
> tn[-1]=''
> (p['yaxis']).tickname=tn


Thanks! This is as easy as one could hope.

(I also didn't know that one could reference ['yaxis']. I had been referencing e.g. ['axis1'] but always forgetting if this was the X or Y axis.)

> I have a workaround for the overlapping labels that I incorporated in my multiplot equivalent for function graphics, which automatically suppresses these overlapping labels. The above is what I used in its setendticks method ( http://ppenteado.net/idl/pp_lib/doc/pp_multiplot__define.htm l)

I am finally getting around to converting all my plotting code to function graphics. It looks like you had figured out many of the tricks for doing this 6 years ago! Thanks again, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: running script
Next Topic: Plot arrow in IDL

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

Current Time: Wed Oct 08 15:56:55 PDT 2025

Total time taken to generate the page: 0.00468 seconds