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

Home » Public Forums » archive » How can I draw arbitrary shapes in Z or PS device?
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: How can I draw arbitrary shapes in Z or PS device? [message #78401 is a reply to message #78347] Tue, 15 November 2011 00:50 Go to previous messageGo to previous message
javi is currently offline  javi
Messages: 2
Registered: November 2011
Junior Member
On 9 nov, 12:55, Fabzou <fabien.mauss...@tu-berlin.de> wrote:
> On 11/08/2011 07:20 PM, javi wrote:
>
>> Hello,
>
>> Is possible to draw arbitrary shapes in PS, Z or X device?, I mean, I
>> usually do this creating an array and plotting the pixels of the shape
>> with a selected colour, but I don't know if it's possible to do this
>> straight with 'plots' command or similar.
>
>> thank you in advance.
>
> plots is probably what you need yes. Also when you are working on the
> display. you will have to use either the /DATA or /NORMAL keywords,
> depending on what you want.

Thank you, finally I got it making a procedure with plots


PRO point,posx,posy,side
for i=0,side do begin
plots,posx,posy+i,/device
plots,posx+side,posy+i,/continue,/device
endfor
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLDoc Markup
Next Topic: Map projections (XKCD)

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

Current Time: Fri Oct 10 17:28:06 PDT 2025

Total time taken to generate the page: 0.94684 seconds