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 
Switch to threaded view of this topic Create a new topic Submit Reply
How can I draw arbitrary shapes in Z or PS device? [message #78262] Tue, 08 November 2011 10:20 Go to next message
javi is currently offline  javi
Messages: 2
Registered: November 2011
Junior Member
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.
Re: How can I draw arbitrary shapes in Z or PS device? [message #78347 is a reply to message #78262] Wed, 09 November 2011 03:55 Go to previous messageGo to next message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
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.
Re: How can I draw arbitrary shapes in Z or PS device? [message #78400 is a reply to message #78262] Tue, 15 November 2011 02:58 Go to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
On 11/15/2011 09:50 AM, javi wrote:
>
> 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

Yes, but the /DEVICE keyword is per se not device independant. You
routine may produce strange results in the PS device, for example
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 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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLDoc Markup
Next Topic: Map projections (XKCD)

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

Current Time: Wed Oct 08 11:35:09 PDT 2025

Total time taken to generate the page: 0.00588 seconds