Object Graphics Title/Axis Color Problem [message #9428] |
Fri, 27 June 1997 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Name: David Fanning
E-mail Address: davidf@dfanning.com
IDL version: { x86 Win32 Windows 5.0 Apr 28 1997}
Platform and OS: WindowsNT 4.0, Service Pack 1
Description of Problem: --------------------------------------------
It would appear to be impossible in IDL 5 object graphics to make
the axis title or labels a different color from the axis itself.
The axis color is applied no matter what color the axis title
or labels are set to.
Example Code: --------------------------------------------------------
; RED title.
thisTitle = Obj_New('IDLgrText', 'This is an Axis Title in RED', $
COLOR=[255,0,0])
; YELLOW axis.
thisAxis = Obj_New('IDLgrAxis', 0, Title=thisTitle, Color=[255,255,0], $
Location = [0,0,0], Range=[0,1])
thisModel = Obj_New('IDLgrModel')
thisModel->Add, thisAxis
thisView = Obj_New('IDLgrView', Viewplane_Rect=[-0.25,-0.25,1.5,1.5], $
Color=[80,80,80], Location=[0,0])
thisView->Add, thisModel
thisWindow = Obj_New('IDLgrWindow')
thisWindow->Draw, thisView
; Axis and title both displayed in YELLOW.
Known Workarounds or Fixes:-----------------------------------------
None known.
RSI Technical Support Response:-------------------------------------
Pending.
--
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
IDL 5 Reports: http://www.dfanning.com/documents/anomaly5.html
|
|
|