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

Home » Public Forums » archive » Different charsize for axis title and 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: Different charsize for axis title and labels? [message #85897 is a reply to message #85876] Mon, 16 September 2013 11:43 Go to previous message
Paul Levine is currently offline  Paul Levine
Messages: 29
Registered: February 2008
Junior Member
On 2013-09-16 12:38:27 +0000, David Fanning said:

> Paul Levine writes:
>
>> Unless I am doing something wrong (quite possible!), it seems that
>> [XYZ]CHARSIZE, as I mentioned in my first post, scales both the axis
>> labels and the axis title simultaneously. I would like to make the
>> axis labels very small without affecting the axis title.
>
> Yes, I misunderstood your original question. Sorry.
>
> In direct graphics, the only way to do this would be in two steps in
> which you draw the axis title in the second step with cgText or its
> equivalent. The difficulty here is that the algorithm for where to place
> the title text seems very difficult to come by. At least it has eluded
> me for quite a number of years now. Of course, I have been known to be a
> little overly anal about this kind of thing, so you might have better
> luck. :-)
>
> Cheers,
>
> David

Thanks, the solution you mentioned (using cgText to place the title
after the plot or axis command is run) is what I have been doing in the
mean time, and does indeed lead to the difficulty of figuring out where
to place it. Specifically, it is the yloc that I end up needing to
find using trial and error (xloc of 0.5 using normalized coordinates
with alignment=0.5 seems to work for the horizontal placement).

The onle thing I have not yet tried, and was thinking might work, would
be to place the axis title with an additional call to axis (or cgAxis).
I will let you know if I get anywhere with that
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Texture image on a 3d curve: cgsurface and xobjview problems
Next Topic: data changes fast / Integration

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

Current Time: Sat Oct 11 05:16:40 PDT 2025

Total time taken to generate the page: 0.24125 seconds