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

Home » Public Forums » archive » legend not working with symcat
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
legend not working with symcat [message #68545] Tue, 03 November 2009 23:49
maurya is currently offline  maurya
Messages: 16
Registered: February 2009
Junior Member
Hi all,

The routine 'legend' is not working with the function 'symcat' for
the following test program.

;;;;;;;;;===============================
pro legend_test

set_plot,'win'

window,0,xs=600,ys=500

n=12
xx=findgen(200)
for i=0,n-1 do begin
ii=i+1
yy=sin(xx*!dtor*ii*0.2)
if (i eq 0) then plot,yy,yr=[0,1.1],psym=symcat(i),/yst $
else oplot,yy,psym=symcat(i),symsize=0.6,nsum=2
endfor

lines=indgen(n)
item='p='+string(lines,format='(i2.2)')
legend,item,psym=symcat(lines)


stop
end
;;;;;;;;;;;;================================================ ======

Can anyone help.

Maurya
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: label_region/histogram help
Next Topic: Using contour in postscripts produces a "stripe" effect? - solved

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

Current Time: Fri Oct 10 12:03:30 PDT 2025

Total time taken to generate the page: 0.48116 seconds