./
pp_osquare.pro
Routines
top source pp_osquare
result = pp_osquare( [sz] [, _ref_extra=_ref_extra])
Returns a filled/open/dotted square object to use as a symbol in an itool. Object is an IDLgrPolygon. If the object is edited even after the call to the itool, the itool symbol will change (it may take clicking on the itool window to cause it to refresh).
Parameters
- sz in optional default=1.0
Symbol size.
Keywords
- _ref_extra in out optional
Passed to IDLgrPolygon init routine. Commonly useful keywords are:
style: determines the type of circle (2 for filled, 1 for the contour only, 0 for points at the vertices only.
thick: determines the thickness of the line to draw the contour.
color: 3 element RGB color vector.
Examples
To create a plot using filled red squares of size 5:
os=pp_osquare(5.0,color=[255,0,0])
iplot,indgen(10),sym_object=os
os->setproperty,color=[0,0,255],style=1,thick=1.5
obj_destroy,os
Author information
- Author:
Paulo Penteado (pp.penteado@gmail.com), Sep/2009
Statistics
Lines: | 6 lines |
Cyclomatic complexity: | 1 |
Modified cyclomatic complexity: | 1 |
File attributes
Modification date: | Wed Jun 29 22:15:28 2016 |
Lines: | 6 |
Docformat: | rst rst |