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 #21683 is a reply to message #21576] Wed, 13 September 2000 07:58 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Hello,

You might consider using David's NORMALIZE function instead of
NORM_COORD. It handles non-float values and you can specify the position
of the axis (if you don't want to scale it from 0 to 1.) If you forget
to make you range argument a floating point vector, NORM_COORD will
perfom a divide-by-integer, yielding unexpected results. Check out
www.dfanning.com.

By the way, the RECOMPUTE_DIMENSIONS keyword is one that I always set so
rescaling is automatic. I have always wished that the default was to
rescale and to prevent rescaling I had to set a keyword.

Ben



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

--
Ben Tupper
Bigelow Laboratory for Ocean Science
West Boothbay Harbor, Maine
btupper@bigelow.org
note: email address new as of 25JULY2000
[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 08:01:20 PST 2025

Total time taken to generate the page: 1.91986 seconds