From: Bruno P. <bru...@cl...> - 2006-09-28 09:47:32
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi all,<br> <br> Is plplot a real equivalent to matlab? of course not, it is better!<br> But, well, am I in front of an issue that may change my mind?<br> NO, it's impossible!! so please, help me!<br> <br> Fast:<br> Is there a plplot equivalent to the matlab function FILL?:<br> FILL Filled 2-D polygons.<br> FILL(X,Y,C) fills the 2-D polygon defined by vectors X and Y<br> with the color specified by C. The vertices of the polygon<br> are specified by pairs of components of X and Y. If necessary,<br> the polygon is closed by connecting the last vertex to the first.<br> <br> Detailled:<br> I'm using PDL plplot interface and i would like to plot an image pixel by pixel<br> (the pixels of this image are rectangular and have different sizes).<br> I've read plplot doc, have a look to x15.pl and x16.pl examples but, well, :-(<br> I have not understood anaything.<br> Anyway, I've found a VERY INEFFICIENT way to do it:<br> $z is my image, (Xpos* and Ypos*) are the limits of each pixels<br> <br> <tt>for ($k=0;$k<$Nbpix;$k++)<br> {<br> $w = ones(2,2)*$z($k);<br> plshades ($w, <br> $XposLeft($k),<br> $XposRight($k),<br> $YposBot($k), <br> $YposUp($k), <br> $shedge, $fill_width,<br> $cont_color, $cont_width, 1, 0, 0, 0);<br> }<br> </tt>Anyway, since $Nbpix is 512*100, the display takes a long time....<br> Perhaps there is a way with \&pltr(1or2) and $cgrid(1or2) as in the examples<br> but i did not understand the impact on the surface....<br> <br> thanks all,<br> <br> best regards,<br> <br> bruno<br> <br> <br> <div class="moz-signature">-- <br> <div align="center"><u>____________________________________________________</u> <br> <font face="Verdana" size="2">Dr. Bruno Picard<br> Dép. Traitement de la Mesure et Segment Sol <br> (Data Analysis and Ground Processing Unit) <br> CLS<br> Dir. Océanographie Spatiale<br> 8-10 rue Hermès, 31520 Ramonville Saint Agne, France<br> <br> Tél: (+33)5.61.39.37.37, Fax: (+33)5.61.39.37.82<br> Mél: <a href="mailto:bru...@cl...">bru...@cl...</a><br> Toile : <a href="http://julie-et-bruno.9online.fr/nono/cadrenono.html" eudora="autourl">http://julie-et-bruno.9online.fr/nono/cadrenono.html</a><br> </font><u>____________________________________________________</u><br> <img src="cid:par...@cl..."><br> </div> </div> </body> </html> |