How can I draw arbitrary shapes in Z or PS device? [message #78262] |
Tue, 08 November 2011 10:20  |
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 #78400 is a reply to message #78262] |
Tue, 15 November 2011 02:58  |
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  |
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
|
|
|