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

Home » Public Forums » archive » Re: Bug in legend.pro (PV-Wave User's Library)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Bug in legend.pro (PV-Wave User's Library) [message #48] Fri, 18 January 1991 09:41
rfinch is currently offline  rfinch
Messages: 51
Registered: March 1991
Member
Found another bug in legend.pro; here's the fix, including the
previous bug.

*** legend.pro Fri Jan 18 09:38:53 1991
--- legend.pro.orig Tue Jan 15 17:03:09 1991
***************
*** 91,98 ****
Endif

Text_Size = 1 ;Select a default size for the text
! If (!P.Charsize NE 1. AND !P.Charsize NE 0) Then $
! Text_Size = !P.Charsize

If n_elements(Data_X) eq 0 THEN Begin
Data_X = 0.0 ;Define as floating point
--- 91,98 ----
Endif

Text_Size = 1 ;Select a default size for the text
! If (!P.Charsize NE 1.) Then $ ;If !Fancy is on,
! Text_Size = !P.Charsize ;use its formula

If n_elements(Data_X) eq 0 THEN Begin
Data_X = 0.0 ;Define as floating point
***************
*** 128,134 ****
!P.PSym = MySyms (I) ;Adjust the plot symbol
OPlot, Line_X, Line_Y - I * Delta_Y ;Overplot the line segment
!P.LineStyle = 0
! XYOutS, Text_X, Text_Y - I * Delta_Y, Labels (I), charsize=Text_Size
EndFor

Finished:
--- 128,135 ----
!P.PSym = MySyms (I) ;Adjust the plot symbol
OPlot, Line_X, Line_Y - I * Delta_Y ;Overplot the line segment
!P.LineStyle = 0
! XYOutS, Text_X, Text_Y - I * Delta_Y, Labels (I); Text_Size
! ;Print the label
EndFor

Finished:
--
Ralph Finch 916-445-0088
rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch
Any opinions expressed are my own; they do not represent the DWR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D Scatterplot code
Next Topic: Re: 3D Scatterplot code

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

Current Time: Fri Oct 10 12:34:26 PDT 2025

Total time taken to generate the page: 0.80179 seconds