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 labels [message #21691 is a reply to message #21576] Tue, 12 September 2000 12:41 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Did you set RECOMPUTE_DIMENSIONS keyword to the axis text objects to 2?
Something like this:

x_axis -> getProperty, ticktext=x_tick_labels
x_tick_labels -> setProperty, recompute=2
x_title = obj_new('IDLgrText', 'X title', recompute=2)
x_axis -> setProperty, title=x_title, tickformat='(G0.1)'

Hope this helps.
Cheers,
Pavel

Ed Vigmond wrote:
>
> I am trying to label an axis but I encounter a problem that I can't
> figure out. The font on the y-axis label comes out in different aspect
> ratios depending on the y range. Sometimes the font is totally
> unreadable and the rest of the time it is just ugly. Here is the code
> and sorry if it's a simple probblem but I was following the example in
> the on-line help.
>
> graph -> SetProperty, DATAX=x, DATAY=y
> graph -> GetProperty, XRANGE=xr, YRANGE=yr
> graph -> SetProperty, XCOORD_CONV=norm_coord(xr),
> YCOORD_CONV=norm_coord(yr)
> xaxis -> SetProperty, RANGE=xr, XCOORD_CONV=norm_coord(xr)
> yaxis -> SetProperty, RANGE=yr, YCOORD_CONV=norm_coord(yr)
>
> Thanks
>
> ========================
> Dr. Edward Vigmond
> Department of Biomedical Engineering
> Tulane University
[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 Oct 11 10:10:19 PDT 2025

Total time taken to generate the page: 0.96138 seconds