fill3 matlab. The function returns the x -, y -, and z - coordinates as three (n+1) -by- (n+1) matrices. fill3 matlab

 
 The function returns the x -, y -, and z - coordinates as three (n+1) -by- (n+1) matricesfill3 matlab Description The fillfunction creates colored polygons

[B] = bwboundaries (binaryImage_new,'holes'); I then used fill3 to draw the plots in 3D and cover the empty white spaces with a cyan colour and the whole process loops again with a new slice. My problem is that drawn plot doesn't have bases. ', and [z,zz] concatenate the vectors (and transpose them if necessary) to create equal sized matrices for surf to use. CData; p. The fliplr command is used to make sure the surface vertices are in the correct order. Learn more about surf MATLAB Hi, I have a fill3 plot created using the following data below: x = [0,18. shading flat each mesh line segment and face has a constant color determined by the color value at the endpoint of the segment or the corner of the face that has the smallest index or indices. l is the length of the box in the x-direction, % w is the width of the box in the y-direction, and h is the height of the. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. If C is a row vector, length (C) must equal size (X,2) and size (Y,2); if C is a column vector, length (C) must equal size (X,1) and. The vertices represent the vertices of the graph. It is possible to do this, but it involves some details which aren't obvious, so let's walk through what's involved. Syntax. 5; Load the marker image: marker = imread ('icon. e. z=rand (1,24); s=rand (1,24); t=rand (1,24); Here is another very helpful MATLAB doc on how to manually setting the colormap for a patch object (surf and trisurf are both using patch to draw things): Coloring Mesh and Surface Plots Here is what the numerical solution using quadratic elements is like for $-\Delta u = 1$ with homogeneous Dirichlet boundary data on an L-shape domain. Accepted Answer: Adam Danz. fill3(X,Y,Z,colorSpec) fills a polygon in 3D with a specific color. 1; xlabel ('time [s]') Something simple like that. . However, the border line color is always black. So, I compared my plot (using fill3) to the similar plot with surf with the get() function and noticed that my cdata is empty and my zdata is only retained for the most recent data points. The test assumes that the sample data comes from a population with a normal distribution and a. example. fill3(X,Y,Z,C) fill3(X,Y,Z,ColorSpec) fill3(X1,Y1,Z1,C1,X2,Y2,Z2,C2,. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. This function plots a 3D line (x,y,z) encoded with scalar color data (c). fill3 (X1, Y1, Z1, 'red') I wanna make a box with fill3 but when i typed in the 2nd fill3 code (the red one), it does not produce a surface. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. Find more on Lighting, Transparency, and Shading in Help Center and File Exchange. "If X, Y, and Z are matrices of the same size, fill3 forms a vertex from the corresponding elements of X, Y, and Z (all from the same matrix location), and creates one polygon from the data in each column. patch (X,Y,Z,C) creates the polygons in 3-D coordinates using X, Y, and Z. The MATLAB surface plotting functions use matrices, not vectors, so in this instance it is necessary to create matrices in order for the surf plot to be correct. Denote these values as gmax, gmin, then we can normalize the entire data set according to these values. So you can create a polygonal region in x and y, with a fixed z. 3D volume plots [MATLAB: slice, isosurface, smooth3, isocaps, isonormals. figure. The following MATLAB codes can remove a white background (i. To create multiple polygons, specify X and Y as matrices where each column corresponds to a different polygon. Learn more about graph, plot, axis, label. [TR,fileformat,attributes,solidID] = stlread (filename) also returns the file format of filename, attributes when the file is binary, and solid identification numbers when the file is text. For the latter you need the fliplr(A) command. So you can create a polygonal region in x and y, with a fixed z. The problem is that i do not know ho to rotate it. In previous releases, datetime , duration , and categorical coordinates are converted to double values when they are stored in the XData , YData. To plot one region, specify X, Y, and Z as vectors. I need to project some properties, which are expressed by color scale, of cylindrical. 1 Answer. com Create filled 3-D patches - MATLAB fill3. You must use Matlab / Python, or Python2. Matlab surf plot remove offset (nonzero) 0. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. Specify the plot appearance. If you'll do it for an hellicopter, you will see a disk like shape from above (the aerea between. The XData, YData, and ZData properties on a Patch object created by the fill or fill3 functions return the coordinates using the original input data type, rather than returning them as double. I2 = imfill (I) fills holes in the grayscale image I. [columnsInImage rowsInImage] = meshgrid (1:imageSizeX, 1:imageSizeY); % Next create the circle in the image. "If X, Y, and Z are matrices of the same size, fill3 forms a vertex from the corresponding elements of X, Y, and Z (all from the. The loop runs in parallel when you have the Parallel Computing Toolbox™ or when you create a MEX function or standalone code. Higher Education Comment Card. I have a 3D mesh that I'd like to plot with fill3() and colorize on a per-patch basis. If X, Y, or Z is a matrix, fill3 creates n polygons, where n is the number of columns in the matrix. Find more on Ordinary Differential Equations in Help Center and File Exchange. png'; % read in the source image (this gives an m * n * 3 array) RGB_in = imread ( im_src ); [m, n] = size ( RGB_in (:,:,1) ); % locate the pixels whose. . Usa la función rectángulo para dibujar un círculo. ) Description fill3(X,Y,Z,C)fills the three-dimensional polygon defined by vectors X, Y, and Zwith the color specified by C. Contour Plots. When this data (attached at XYZ. In this syntax, a hole is defined as an area of dark pixels surrounded by lighter pixels. g. The emulator can be used to run Windows 8 or Windows 8. function [] = pyramid (P,l,w,h) % PYRAMID will accept four inputs. Learn more about fill3, interpolation, rectangular element57. h2=fill3(X,Y,Z,[0 0 1]) note that the order of introduction of points matters, if you jump to an opposite vertex the square will look like a bow tie. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. The X, Y, Z, C parameters can be followed by parameter/value pairs to specify additional properties of the patches. I want to plot a cube of side length 10, that would be symmetrical from -5 to 5 and not -6 to 4. fill3 command working strangely?. fill3 closes the polygons by connecting the last vertex to the first when. For example, plot two lines and a scatter plot. GRIDDATA interpolates this surface at the. The z -test is a parametric hypothesis test used to determine whether a sample data set comes from a population with a particular mean. example. Rather than using the LINE function a PATCH surface is generated. How to plot a filled box?. Description. 7676 10 0. Patches support a variety of coloring options that are useful. According to Matlab documentation (2nd line for fill3) "fill3(X,Y,Z,C) fills three-dimensional polygons. 7. plot ( magic (100) ) xlabel ( 'my xlabel' ) ylabel ( 'my ylabel' ) Tom on 11 Dec 2011. Si X, Y o Z es una matriz, fill3 crea n polígonos, donde n es el número de columnas en la matriz. Just use fill in conjunction with fliplr. To plot one region, specify X, Y, and Z as vectors. Therefore in the right column of the above figure, A is the second variable, and B is the third variable. Syntax. Since R2023b. So one call per end of the cylinder. X, Y, and Z triplets specify the polygon vertices. –Cylinder with filled top and bottom in matlab (2 answers) Closed 8 years ago. Could you please tell how to extract mesh data from the handle h1=fill3(X,Y,Z,C) and export it in the text file ? I need the coordinates of the points on the surface created by fill3 command. Learn more about animation, plot, execute lines, make movieTour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this siteHello everybody, I need a help with drawing a cylinder surface. 5 25. fill3 close the polygons by linking the last vertex to the first when necessary. BW2 = imfill (BW) displays the binary image BW on the screen and lets you define the region to. Theme. patch (X,Y,C) adds the filled two-dimensional patch to the current axes. The code that I am using to plot the shapes is as follows:The issue appears to be that you have overwritten the fill3 function by naming your script/function fill3 as well. I then used the set() command to dummy in a fake cdata array and now I get the colorbar and with the correct limits. the function uses the plot3 command. 86] z = [0,-2. xc=1; yc=1; zc=1; % coordinated of the center L=10; % cube size (length of an ed. axis equal. Hi, I have the following code in Matlab and the red helix is coming out choppy. alpha value sets the face transparency for objects in the current axes that support transparency. example. polarplot accepts one or more pairs of theta and rho inputs. Reissuing the ylabel command causes the new label to replace the old label. A number of MATLAB ® functions create patch objects — fill, fill3, isosurface, isocaps, some of the contour functions, and patch. parfor loopvar = initval:endval; statements; end executes a series of MATLAB ® statements for values of loopvar between initval and endval , inclusive, which specify a vector of increasing integer values. Once you have this logical image, you can use logical indexing to fill the region inside the boundary with specified values. g. To view the polygons in a 3-D view, use the view (3) command. patches (end) ;blackLine. I'm thinking maybe there's a setting in MATLAB that I'm missing? Edit: I found the problem. Here the code I'm trying, Theme. fill3 closes the. Specify an n -by-1 or 1-by- n vector of colormap indices, where n is the number of polygonal regions. com Create filled 3-D patches - MATLAB fill3. It can be a single ColorSpec, one color per face, or one color per vertex (see "Remarks"). Multiple axes for a single surf plot. MATLAB Graphics 2-D and 3-D Plots Surfaces, Volumes, and Polygons Surface and Mesh Plots. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. If Cis a row vector, length(C)must equal size(X,2)and. fill3 sets the patch object FaceColor property to flat, interp, or a ColorSpec depending upon the value of the C matrix. % the origin (x, y, and z). . fill (X,Y,C) creates filled polygons from the data in X and Y with vertex color specified by C. You have scattered 3d points, surf is made for rectangular grid data. First, specify the transparency values by setting the AlphaData property to an array the same size as the ZData property. This will update the black line without. I2 = imfill (I) fills holes in the grayscale image I. Description. To set properties of all faces use patch. Description. So you can create a polygon out of your lines by going along your first curve than coming back along your second curve. Description. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. bar, bar3, colordef, colormap, fill, fill3, whitebg. Learn more about TeamsTo use it, create a closed area (the reason for the fliplr calls, since they create the closed area), and choose the color. 영역 하나를 플로팅하려면 X, Y, Z 를 벡터로 지정하십시오. ,Xn,Yn,Cn) plots multiple two-dimensional filled polygonal regions on the same axes. If X, Y, or Z. Copy. 1. Editor's Note: This file was selected as MATLAB Central Pick of the Week. Return the two “Line” objects as an output argument from the “plot” function and then set the “LineWidth” property for each. Learn more about fill3, 3d, fillFrom the matlab documentation. Data Distribution Plots. If X, Y, or Z is a matrix, fill3 develop n polygons, where n is a number of columns in the matrix. The polyhedron has the previously stated polygon traits, but it additionally does not have isolated faces or dangling faces. So i want to find a way to fill that circle with some color. 1 Answer. [B] = bwboundaries (binaryImage_new,'holes'); I then used fill3 to draw the plots in 3D and cover the empty white spaces with a cyan colour and the whole process loops again with a new slice. This section concentrates on use of the patch function. png slices and creates 3D models from the slices. The fill3 function creates flat-shaded and Gouraud-shaded polygons. )MATLAB Mathematics Numerical Integration and Differential Equations Ordinary Differential Equations. Copy. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. The cylinder fuction ( [X,Y,Z] = cylinder) generates coordinates of surface vertices and after using surf, matlab draws a cylinder surface. Pass the predefined colormap name, hot, to the colormap function. The plot3 calls draw circles around the tops of them to make the edge more visible. Matlab ------ Cómo dibujar un círculo en Matlab. Walter Roberson on 30 Jan 2017. polar accepts the LineSpec input argument to set the line style, marker symbol, and color of the plotted line. . This MATLAB function fills three-dimensional polygons. Thus, I have written something like: axes01 = fill3(X1, Y1. Learn more about matrix, matrix manipulation, matrix array, for loop, for MATLAB I need to fill matrix r, where r=r(z), and ri is constant. Patches can be specified using any of the input argument combinations in previous syntaxes. . 1 Answer. How can i make multiple surfaces with fill3In the pictures below you can see blue rectangles plotted using fill3. Description The fillfunction creates colored polygons. I want the border line color the same as the fill color. You can also use fill3: fill3(A,B,C) Also you can use patch: patch(A,B,C,[0,6]) %fourth argument gives a gradient of colors, alternatively you can use 'red' or 'blue' Or as mentioned in the comments, you can use the following: Search You are not providing surface data to fill3, just points, so there is no clearly defined triangulation, and it is trying to fill between consecutive vertices (which may be in no particular order). 0. all you have to do is to collect the handle, for instance. gm = multicuboid (W,D,H,Name,Value) creates a multi-cuboid geometry using one or more Name,Value pair arguments. Children (1). Since you are working on R2019a, you should refer to the documentation specific for that release:Learn more about fill3, color MATLAB I would like to obtain different colors for the surfaces created using FILL3 function without scaling the indices specified as the argument. . 3. example. Although creating a pattern (i. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. We will now plot our plane and our already parametrized line on the same set of axes. If C is a 1-by-3 vector, it is assumed to be an RGB. Call the nexttile function to create the axes objects ax1 and ax2. plot (lon,lat,levels (:,:,i)') shading interp. ) fill3(. The function plots the values in matrix Z as heights above a grid in the x - y plane defined by X and Y. R2021a: The XData, YData, and ZData properties on Patch objects created with the fill and fill3 functions return values of the original data type The XData , YData , and ZData properties on a Patch object created by the fill or fill3 functions return the coordinates using the original input data type, rather than returning them as double values. 2. , Xn, Yn, Cn) // It is used for multiple 2D filled areas in. Use airSlate automation to take team performance to the next level. 1]) sg = scatter (rand (1000. 2. Syntax: Following is the syntax of fill () function in Matlab: Fill (X, Y, C) // It produces filled polygons from the data stated by X and Y with color C. Patches can be specified using any of the input argument combinations in previous syntaxes. 32,0] The resulting plot is as shown: How can I create a surf. . The fill3 function creates flat-shaded and Gouraud-shaded polygons. sphere ( ___) plots the sphere without returning the. X, Y, and Z triplets specify the polygon vertices. You have the data for the lower and upper values of z in the cylinder. Then plot the filled region in red. 1. e. Transparency values are referred to as alpha values. ,'PropertyName',PropertyValue) h = fill3(. the height of the cone and the axis of the cone (the axis is not predefined as x,y,z axis. fill3 returns a column vector of handles to patch objects, one handle per patch. The vector or array contains a scalar value for each vertex in the isosurface. The fill3 function creates flat-shaded and Gouraud-shaded polygons. The boundaries are the exact points that you used in plot3 , but in addition you need two more points on the x-y plane to close the patch (to make it a polygon). Visualize the wind patterns by plotting the data in polar coordinates using the polarscatter function. fill3(X,Y,Z,C) fills three-dimensional polygons. Hot Network Questions Depressing story where SETI received signals from deep space but this news was suppressedHow to fill a 3D plot?. 2-D Graphics Functions (pp 105-154) 3-D Graphics Function (pp 159-163) Contact Your Sales Rep. Here I explain how to generate a simple cylinder. expand all in page. See syntax, examples, and input arguments. . by using hold off. However, the procedures I've thought of for doing this are very slow. h = fill (. MATLAB 2D plot parabolic line rotation to form a cone in 3D. Line Plots. surf (Z) creates a surface plot and uses the column and row indices of the elements in Z as the x - and y -coordinates. If X, Y, or Z is a matrix, fill3 creates n polygons, where n is the number of columns in the matrix. If you want different numbers of sides in all axes (for example a pyramid. C is a vector or matrix used as an index into the colormap. The color of the surface varies according to the heights specified by Z. Learn more about fill3, transparent polygonsfill (X1,Y1,C1,. h1=fill3 (X,Y,Z,C) 4x1 Patch array: Patch. Then plot the filled region in red. Learn more about fill, fill3Following an idea I got from Malcolm Lidierth’s MUtilities submission on the Matlab File Exchange, the solution for setting Matlab figure window transparency is quite simple: Get the figure’s underlying Java window reference handle, as in last week’s article. h1=fill3 (X,Y,Z,C) 4x1 Patch array: Patch. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. Position of markers, specified as an M-by-2 matrix, where each row is an image coordinate pair of the form [x y], or an M-element vector of one of the points objects listed on the Point Feature Types page. If X, Y, or Z is a matrix, fill3 creates n polygons, where n is the number of columns in the matrix. x = linspace(0,8,50); y1 = besselj(2,x); y2 = besselj(3,x); plot(x,y1). To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. 5)&(z>=0. If potential cannot verify that V is a gradient field, it returns NaN. 7 . 6); fill3(x(:),y(:),z(:), 'r') box on grid on Using plot3 also was not very good. Copy. ) fill3(. patch(X,Y,Z,C) creates a patch in three-dimensional coordinates. As shown above, the base of my 3D benchy. To plot multiple regions, specify X, Y, and Z as matrices where each column corresponds to a polygon. 7 . ,Xn,Yn,Cn) plots multiple two-dimensional filled polygonal regions on the same axes. 6)&(x+z>1. I'm writing code in which I use MATLAB's fill command to plot 2D shapes. fill ( ___,Name,Value) modifies the patches using one or more name-value arguments to set properties. fill3 plots filled polygonal regions on 3-D axes as Patch objects with vertices at the (x, y, z) locations specified by X, Y, and Z. Then use Java’s setWindowOpacity method to set the window’s transparency value. example. Description. 2) axis equal. To change transparency, set the FaceAlpha value (and maybe the EdgeAlpha). Something similar to the solution previously discussed in:. triplot (TO) plots the triangles defined by a 2-D triangulation or delaunayTriangulation object. Sign in to answer this question. X = [0,1,1,0]; Y = [0,0,1,1]; Z = [1,1,1,1];. I have a function that plots a circle in 3d if given the center the normal of the circle and the radius. When the graph is plotted, it makes a 2D chart. I would just like to ask something additional. plotting scatter3 and surf plots from loop in matlab. 3d plot of wave function. This table classifies and illustrates the common graphics functions. Y = [2 3 4; 6 1 5; 7 4 9]; a = area (Y); Modify the second area to be green with thick red edges. can't add axis labels. You can specify any of the patch properties to change your patch objects. However, I need to update the position of this object over time. fill (X1,Y1,C1,. The fill3 function creates flat-shaded and Gouraud-shaded polygons. To draw the sphere using the returned coordinates, use the surf or mesh functions. fill3 closes the polygons by connecting the last vertex to the first when necessary. 例如, fill3 (X,Y,Z,C,'LineWidth',2) 指定一个围绕所有补片的两点边框。. You define a patch by specifying the coordinates of its vertices and some form of color data. FaceVertexCData is the property I use to change the vertex-wise color data for patch objects in. fig1. Thus, the statement >> x = 2 creates a scalar variable x. More specifically, we are going to draw several flat surfaces (planes) to build or model a box. Here's a small example for an arbitrary line. To change color and transparency all you have to write in example:Learn more about 3d plots MATLAB Hi, I am trying to create a 3D representation of a rectangle using 8 coordinates of (x,y,z). By doing so, MATLAB is now trying to use your file when you call fill3 . fill (X,Y,C) filled polygons from the data in with vertex color specified by is a vector or matrix used as an index into the colormap. 1:10); xs=x (x>-4 & x<4); figure; hold on; area (xs,normpdf (xs,0,3)); plot (x,normpdf (x,0,3)); For your second example however I do not know if this will work, but maybe a workaround is. Special purpose 3D plotting] There are many other MATLAB functions that relate to these renderings, including camera and lighting attributes. Jorrit on 14 Aug 2011. For an assignment, I have to fill the area between 3 lines with yellow. Theme. Hello everyone, I am running into an issue with the fill3 command. Fill (X1, Y1, C1, X2,. fill3 close the polygons by linking the last vertex to the first when necessary. You define a patch by specifying the coordinates of its vertices and some form of color data. x = linspace (0,10); y1 = sin (x); y2 = sin (3*x); tiledlayout (2,1) % Top plot ax1 = nexttile; plot. Create matrices x and y. If Y is a scalar, then potential expands it into a vector of the same length as X with all. fill3(X,Y,Z,C) fill3(X,Y,Z,ColorSpec) fill3(X1,Y1,Z1,C1,X2,Y2,Z2,C2,. The second vector is the bottom right. fill3 closes the. It is my understanding that you want to generate a similar shape by using “surf” plot as “fill3” plot does but i t is p ossible that the surface plotted by the surf function appears different from the surface plotted by fill3 because they use different algorithms to generate the surface. To plot one region, specify X, Y, and Z as vectors. 25)&(x+y>1. ZData =. 설명. The bounds on the blue line is between [-1,1]* 10^-3, whereas the bounds of the orange line is different. However, when I plot the white polygon with FaceALpha=1 above transparent elements, I can still see those elements below the polygon. 1. The short names and long names are MATLAB strings that specify one of eight predefined colors. Choose a web site to get translated content where available and see local events and offers. It is my understanding that you want to generate a similar shape by using “surf” plot as “fill3” plot does but i t is p ossible that the surface plotted by the surf function appears different from the surface plotted by fill3 because they use different algorithms to generate the surface. Description. Description. MATLAB Graphics 2-D and 3-D Plots Surfaces, Volumes, and Polygons Surface and Mesh Plots Find more on Surface and Mesh Plots in Help Center and File Exchange Tagsfill (X1,Y1,C1,. So one call per end of the cylinder. Then start the loop construct. 2) If the x,y point is inside the bottom perimeter of the region as (X,Y, Z=Z0), then test for min (Z) <= z <= max (Z), where Z. Color. fill3 (X,Y,Z,C) plots filled polygonal regions on 3-D axes as Patch objects with vertices at the ( x, y, z) locations specified by X, Y, and Z. If X and Y are matrices, MATLAB draws one polygon per column. fill3(X,Y,Z,C) fill3(X,Y,Z,ColorSpec) fill3(X1,Y1,Z1,C1,X2,Y2,Z2,C2,. please take a look to my code. patch (X,Y,Z,C) creates the polygons in 3-D coordinates using X, Y, and Z. So, for each triangle, compute gradient (z) and find both it's max and min value. A surface plot is a three-dimensional surface that has solid edge colors and solid face colors. view (-25, 30) This draws a prism with green sides and red ends. To plot one region, specify X, Y, and Z as vectors. Here's a small example for an arbitrary line. ,' PropertyName',PropertyValue) h = fill. with the following properties: * EDGES : 3-elements vector that defines the length of cube edges. We can clearly see that the point of the polygon to be filled are ordered in a. triplot (T,x,y,LineSpec) also specifies the line style of the triangulation. Copy. 6. When attempting to change parameters like transparency and face colour, it can get confusing, so let's simplify. Plot multiple lines on the same axes. If C is a 1-by-3 vector, it is assumed to be an RGB triplet, specifying a color directly. This is done by plot3. Use dot notation to query and set properties. 5; % for 50% transparent. 此 MATLAB 函数 将填充多边形区域绘制为补片,其顶点位于由 X 和 Y 指定的 (x,y) 位置。 要绘制一个区域,请将 X 和 Y 指定为向量。 要绘制多个区域,请将 X 和 Y 指定为矩阵,其中每列对应一个多边形。. As this answer to the asker's next question, the axes must get cleared. . I can specify the fill color of the shape. All cells in a geometry must be of. a = fill (x,y,'b'); a. ', [y;y]. Learn more about TeamsTeams. triplot ( ___,Name,Value) specifies one or more properties of the plot using name-value pairs. Skip to content. For performance reasons, potential sometimes does not sufficiently simplify partial derivatives, and therefore, it cannot verify that the field is gradient. To plot one region, specify X, Y, and Z as vectors. 25)&(x+y>1. We can see that if we set the 'EdgeColor' to be visible, and follow the peripheral line of the patch (see below, here reduced to 20 points, for the illustration).