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

Home » Public Forums » archive » Re: NG font size for axis titles
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: NG font size for axis titles [message #72760] Fri, 08 October 2010 12:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> Right now, your best approach is to use the text function. Just like
> direct graphics (DG), there is currently no easy way to change the
> font size of just the axis title.
>
> One tip - if you use the /data keyword with the text function, then
> you can specify the location in "data" coordinates, which might be a
> bit simpler than normalized coordinates. Something like this:
>
> p = Plot(/test)
> yr = p.yrange
> t = Text(mean(p.xrange),yr[0]-0.12*(yr[1]-yr[0]), 'X title', $
> /DATA, ALIGNMENT=0.5, FONT_SIZE=1.25*p.font_size)

In response to this question and the question about
mirror image values on the contour command from a few
days ago, I was reading this article again about
how to reverse an object graphics axis:

http://www.dfanning.com/ographics_tips/axis_reverse.html

Yep. As I remember, it's not as easy as you might
think! :-)

But I did learn you can't do both the title and the
axis annotation together.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: ITT VIS Website
Next Topic: Problem with Newsgroup?

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

Current Time: Sat Oct 11 04:20:20 PDT 2025

Total time taken to generate the page: 0.64225 seconds