At the moment, I'm calculating the marker size using the following code: % Setting the size of square markers to 1px^2. The marker color. I want my marker to be 1pixel^2, so I'm trying to convert 1pixel^2 to points squared. For that reason, it may be better to add rectangles that are in data units and will therefore resize with the figure and axes. Matlab’s built-in jitter. s: scalar or array_like, shape (n, ), optional. number of people). When C is a length(X)-by-3 matrix, it specifies the colors of the markers as RGB values. https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759811, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759821, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759824, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759833, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#answer_398107, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759910, https://de.mathworks.com/matlabcentral/answers/487262-matching-scatter-marker-size-to-pixel-size#comment_759924. Follow 1.928 views (last 30 days) Bruno on 18 Apr 2017. C determines the colors of each marker. Create a scatter chart with markers of varying sizes and colors. If S is a scalar, MATLAB draws all the markers the same size. Plotting a patch hides all scatter data in figure. Unable to complete the action because of changes made to the page. Marker size for each scatter plot group, specified as a nonnegative scalar or nonnegative vector, with values measured in points. But the output is not quite giving me what I want: What's going on here? You can also select a web site from the following list: Select the China site (in Chinese or English) for best site performance. Based on your location, we recommend that you select: . I am able to change the thickness of my open 'o' markers in my scatter plot. By default, the SeriesIndex property of a Scatter object is a number that corresponds to the object's order of creation, starting at 1. This means the circle surrounding the marker has an area of 36 points squared. Default is rcParams['lines.markersize'] ** 2. c: color, sequence, or sequence of color, optional. The length of sz must equal the length of x and y. Single legend for plot … 0 ⋮ Vote. geoscatter(lat,lon,A,C, '^') Create Geographic Scatter Plot Specifying Basemap. When C is a vector the same length as X, Y, and Z, the values in C are linearly mapped to the colors in the current colormap. When the total number of groups exceeds the number of specified values, scatterhistogram cycles through the specified values. Scatter plot with Jittered data - distribution density evident Much better, don’t you think? Learn more about scatter, rescale, dots, size . This a is a demo for your marker size idea. The circle marker size appears to be the number of points in the diameter. when I plot the legend, the legend markers are very small and all have the same color. scatter fills each marker using the color of the marker edge. The marker size in points**2. You can create a square axis with x and y limits of -1 to 1 that is scale inches high and wide Examples of scatter charts whose markers have variable color, size, and symbols. Hello, I am trying to create a scatter plot with smooth lines and markers in Matlab, as I can do easily in Excel. C determines the colors of each marker. How to increase marker size in scatter plot? geoscatter(lat,lon,A,C, '^') Create Geographic Scatter Plot Specifying Basemap. 0 Comments. there are some topics on this issue but they are all related to R2014b. Parameters: x, y: array_like, shape (n, ) The data positions. When all scatters are having the same color it works fine. How do I create a legend that explaines scatter plot by marker size. When I save through the file>save as menu, it remains thick, but then I can't save in high enough resolution. Related. So, I'm adjusting the value of s from 1 px to its size in points^2, which is how the marker size is defined. Learn more about scatter, plotting MATLAB uses the number to calculate indices for assigning colors when you call plotting functions. If S is a scalar, MATLAB draws all the markers the same size. Your post solves this (2) use individual marker sizes to encode a 4th variable (e.g. pixPerUnit = axSizePix ./ [range(xlim(axh)),range(ylim(axh))]; scatter(axh, 6.5, 7.5, ceil(max(pixPerUnit))^2. Specifying the sizes of the markers. there are some topics on this issue but they are all related to R2014b. So upgrade your version of MATLAB to latest release There is a bug in it and it is fixed in R2019b release . Possible values: A single color format string. I have attached the file, but if changing the marker size is not possible through the file itself, I should find the core files that generates this plot and change it from there. s: scalar or array_like , shape (n, ), optional. 0. How to specify the size of the markers created by the SCATTER plot in units proportional to the data being plotted in MATLAB 7.6 (R2008a) Split legend into 2 rows and 3 columns. Why are the marker sizes still smaller than the image sizes? But the output is not quite giving me what I want: What's going on here? Learn more about display difference, scatter vs. plot function How to make a bubble chart in MATLAB®. Scatter plot legend marker size is huge. Note that I only have the .fig file and I don't have access to the X and Y datapoints to use the command scatter(X,Y, 'MarkerSize',10). MATLAB Forum - scatter3 Marker Size - Hallo zusammen, wie genau ist die Marker Size im scatter3 Befehl definiert? Accelerating the pace of engineering and science. For that reason, it may be better to add rectangles that are in data units and will therefore resize with the figure and axes. ; Any or all of x, y, s, and c may be masked arrays, in which case all masks will be combined and only unmasked points will be plotted. that as soon as you resize the figure or axes, you'll lose the fit of each marker to the grid! The properties have changed in R2015a release. [] — Use the default area of 36 points squared. As such, changing one of them also would set the other (or produce weird results). However, when I save the image using print (so I can set the resolution), the marker thickness changes and comes out very thin. The default type of the marker is a circle, the default color is "blue" and the default marker size is 36. Set the line width to 0.6 point. I came up with this little script to create bubble plots in MATLAB. scatter(axh, 3.5, 3.5, ceil(max(pixPerUnit))^2. The idea is indeed simple, but currently we are using meta data to change the size and the color. Featured on Meta New Feature: Table Support. How to Change Marker Size in a .fig MATLAB File?. Start Hunting! To plot each marker with equal size, specify msizes as a scalar ... scatter3(x,y,z) creates a scatter plot with markers at the locations specified by x, y, and z. MarkerSize is used to control the overall size of markers, just like the overall width of a line with LineWidth or font size. Why are the marker sizes still smaller than the image sizes? s = markerWidth^2; So, I'm adjusting the value of s from 1 px to its size in points^2, which is how the marker size … Description gscatter (x,y,g) creates a scatter plot of x and y, grouped by g, where x and y are vectors with the same size … I'm trying to set the size of markers in my scatter plot to the size of a pixel in my plot. This area corresponds to the area of a square bounding box around the marker. One more question: in MATLAB, I frequently need to generate a 2D scatter plot with: (1) use individual marker transparencies to encode a 3rd variable (e.g. % Compute square pixel per 1 unit of data. Set up latitude and longitude data. that as soon as you resize the figure or axes, you'll lose the fit of each marker to the grid! According to the scatter documentation, like this: scatter (X,Y,20,'k','+') ^ this is the size More Answers (0) I had a short conversation about this problem and was told to report this. Notes. Different sizes and colors for each marker can be specified with scatter(x,y,msizes,mcolors). Note: Starting in R2014b, you can use dot notation to set properties. Per the documentation, scatter marker size property is marker proportional to area while the line marker property is proportional to diameter.The default values are 36 and 6 points, respectively, so they are the same visually by default. The default scatter marker size is rcParams['lines.markersize'] ** 2. There is a bug in it and it is fixed in R2019b release . In the left subplot, group the data using the Model_Year variable. On Mac's a pixel is also 1/72 but on windows a pixle is 1/96 of an inch. The default type of the marker is a circle, the default color is "blue" and the default marker size is 36. Specify the optional size and color input arguments as vectors. It’s basically a scatter plot but the size of the dot is proportional to the number of data points at that location. % The rectanlge size [xy(i,:)-.5, 1, 1] is based on a square grid, How to specify the size of the markers created by the SCATTER plot in units proportional to the data being plotted in MATLAB 7.6 (R2008a), Change Width for YAxis (both) but not the grid, Plotting a patch hides all scatter data in figure, Is it possible to get axis size in px units if it is created in normalized units. When the colors of the scatters are set by a colormap, the scaling of the scatter markers is also not working. Learn more about scatter, marker size, .fig, marker color Possible values: A single color format string. when I plot the legend, the legend markers are very small and all have the same color. Plot the data on a geographic scatter plot, specifying the marker size data and the color data. This works fine but I would need a legend to show the range of the parameter that defines the size of the marker. Change Width for YAxis (both) but not the grid. When C is a length(X)-by-3 matrix, it specifies the colors of the markers as RGB values. The Overflow Blog How digital identity protects your software. Podcast 297: All Time Highs: Talking crypto with Li Ouyang . And by pixels, I'm referring to the 100 squares in my grid. This property is useful for reassigning the marker colors of several Scatter objects so that they match each other. Show Hide all comments. How to specify the size of the markers created by the SCATTER plot in units proportional to the data being plotted in MATLAB 7.6 (R2008a) Split legend into 2 rows and 3 columns; Change Width for YAxis (both) but not the grid; Plotting a patch hides all scatter data in figure; Single legend for plot with two axes To draw all the markers with the same size, specify A as a scalar. By continuing to use this website, you consent to our use of cookies. scatter3(x,y,z) creates a scatter plot with markers at the locations specified by x, y, and z. twice bigger '+')? image processingmarkersizepixelspointsscatter. This is scatter plot generated by a MATLAB Toolbox (called GPTIPS). This property is useful for reassigning the marker colors of several Scatter objects so that they match each other. The marker size in points**2. Corresponding elements in x, y, and sz determine the location and area of each marker. As the resolution changes, size of figure changes due to which the marker size changes. The plot function will be faster for scatterplots where markers don't vary in size or color. Use s to query and set properties of the scatter series after it has been created. I tried to increase the marker size: scatter(X,Y, '+', 'k', 'MarkerSize', 10); How to increase the size (e.g. If you specify a fixed marker size and use different marker styles in plot command of MATLAB, the tikz figure won't follow this and it will have different marker sizes.. ... % % Use PLOT for single color, single marker size scatter plots. set (gca, 'Units', 'Points'); axpos = get (gca,'Position'); set (gca, 'Units', currentunits); markerWidth = s/diff (xlim)*axpos (3); % Calculate Marker width in points. Vote. when I plot the legend, the legend markers are very small and all have the same color. Browse other questions tagged matlab markers scatter or ask your own question. Scatter is used to actually scale the marker sizes based on data. Set the marker face color using an RGB triplet color. A scatter plot of y vs x with varying marker size and/or color. Toggle Sub Navigation. there are some topics on this issue but they are all related to R2014b. The list of markers is replicated so that you never run out of markers in case the dataset grows, though that would result in duplicate markers if the number of points exceeds 13. age of people). geoscatter (lat,lon,A) uses A to specify the area of each marker (in points^2). According to documentation, s is the marker size in points 2. Create a figure with two subplots and return the axes objects as ax1 and ax2.Create a scatter plot in each set of axes by referring to the corresponding Axes object. MathWorks ist der führende Entwickler von Software für mathematische Berechnungen für Ingenieure und Wissenschaftler. The units are in points, just like LineWidth . Other MathWorks country sites are not optimized for visits from your location. https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7_sep_shared-Units. ; Fundamentally, scatter works with 1-D arrays; x, y, s, and c may be input as 2-D arrays, but within scatter they will be flattened. Row or column vector — Use different sizes for each marker. So, I'm adjusting the value of s from 1 px to its size in points^2, which is how the marker size is defined. How to rescale the size of points in scatter plot?. Description gscatter (x,y,g) creates a scatter plot of x and y, grouped by g, where x and y are vectors with the same size and g can be a vector, string array, or cell array of strings. Reload the page to see its updated state. pixPerUnit = axSizePix ./ [range(xlim(axh)),range(ylim(axh))]; scatter(axh, 6.5, 7.5, ceil(max(pixPerUnit))^2. MATLAB uses the number to calculate indices for assigning colors when you call plotting functions. ... where n is size of the marker....specify the size you want.. ... Find the treasures in MATLAB Central and discover how the community can help you! This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. Sign in to comment. I want the markers (colored squares) to completely cover the squares in the grid. This means the circle surrounding the marker has an area of 36 points squared. % The rectanlge size [xy(i,:)-.5, 1, 1] is based on a square grid, You may receive emails, depending on your. gscatter - MATLAB Answers - MATLAB Central, gscatter - how to colour different marker styles Learn more about scatter gscatter scatter3. The marker size in a scatter plot uses points^2. The default type of the marker is a circle, the default color is "blue" and the default size is 36. gscatter - MATLAB Answers - MATLAB Central, gscatter - how to colour different marker styles Learn more about scatter gscatter scatter3. To make the size of the marker relative to the units of 'X' and 'Y' you will need to convert the marker width in … Plot the data on a geographic scatter plot, specifying the marker size data and the color data. 3-D scatter plot. Swag is coming back! By default, the SeriesIndex property of a Scatter object is a number that corresponds to the object's order of creation, starting at 1. scatter(axh, 3.5, 3.5, ceil(max(pixPerUnit))^2. Learn more about legend marker size, scatter Open Live Script. If S is a scalar, MATLAB draws all the markers the same size. x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); sz = 25; c = linspace(1,10,length(x)); scatter(x,y,sz,c,'filled') Specify Marker Symbol Why is scatter so slow for variable marker size?. This means the circle surrounding the marker has an area of 36 points squared. MarkerSize in 3D scatter plot. Specify the marker as a triangle, rather than the default circle. So here you go. How can I change their size and color in R2015a? Please see our. Generated with Matlab 7.10.0 (R2010a) and matlab2tikz v0.4.6. This a is a demo for your marker size idea. Is that clear? The scatter() function only allows one marker definition so the data are plotted within a loop that iterates through a list of markers. Choose a web site to get translated content where available and see local events and offers. This works fine but I would need a legend to show the range of the parameter that defines the size of the marker. Numeric scalar — Plot all markers with equal size. Skip to content. Scatter Graph with multiple “scatter lines” 0. flex scatterplot custom renderer. I want to know how to change the marker size for a .fig file if that is possible. The scatter() function only allows one marker definition so the data are plotted within a loop that iterates through a list of markers. The SCATTER function expects its 'S' parameter to contain the marker area in points squared. When C is a vector the same length as X, Y, and Z, the values in C are linearly mapped to the colors in the current colormap. Set up latitude and longitude data. By default, scatterhistogram assigns 36 as the marker size for each group in the scatter plot. Open Live Script. Load the carsmall data set. How can I change their size and color in R2015a? Learn more about 3d scatterplot, coordinates, markersize Set the marker edge color to blue. I do not think there is a way to use the scatter command to do this, so I'm asking if there is another way to plot the data in the same way (scatter format) but with smooth lines and markers? The list of markers is replicated so that you never run out of markers in case the dataset grows, though that would result in duplicate markers … At the moment, I'm calculating the marker size using the following code: % Setting the size of square markers to 1px^2. A scatter plot of y vs x with varying marker size and/or color. How to make a bubble chart in MATLAB®. Specify the marker as a triangle, rather than the default circle. A point is 1/72 of an inch. I have a scatter plot in a for loop, and at each iteration, the shape and the color of the markers change. Use squared value of radius for line marker as area for scatter … Examples of scatter charts whose markers have variable color, size, and symbols. scatter(x,y) creates a scatter plot with markers centered at the (x, y) set of coordinates. For the other markers, it is not so clear. I have a scatter plot in a for loop, and at each iteration, the shape and the color of the markers change. The marker color. If you do not specify A, geoscatter uses the default size. Default is rcParams['lines.markersize'] ** 2. c: color, sequence, or sequence of color, optional. The properties have changed in R2015a release. How to increase the size of scatter points in matplotlib ? To draw the markers with different sizes, specify A as a vector the same length as lat and lon. % Compute square pixel per 1 unit of data. Note that JitterAmount is an absolute (not relative) value, just as in my example above. Syntax. Use unique values in the color vector to specify the different colors you want. Suchen Answers Clear ... How do I create a legend that explaines scatter plot by marker size. C determines the colors of each marker. 1. markersize Parameter to Set Scatter Marker Size in Matplotlib plot Function import matplotlib.pyplot as plt x = [1,2,3,4,5] y = [0]*len(x) plt.plot(x,y, 'bo', markersize=10) plt.show() Here the area of the circle is controlled by the markersize parameter. In the right subplot, group the data using the Cylinders variable. Edited: Stephen Cobeldick on 18 Apr 2017 Accepted Answer: Stephen Cobeldick. However, I don't recommend this method (see note below). Parameters: x, y: array_like, shape (n, ) The data positions. Interestingly, Matlab’s scatterplot has this mechanism built-in, using the undocumented hidden properties Jitter (default=’off’) and JitterAmount (default=0.2). However, I don't recommend this method (see note below). MATLAB Answers. I have a scatter plot in a for loop, and at each iteration, the shape and the color of the markers change. Thank you. Do you want pixel units (as stated in your question title) or point units (as stated in your question)? When C is a vector the same length as X and Y, the values in C are linearly mapped to the colors in the current colormap. I'm trying to set the size of markers in my scatter plot to the size of a pixel in my plot. If you are using an earlier release, use the set function instead, such as set(s,'LineWidth',0.6). How can I change their size and color in R2015a? Find the treasures in MATLAB Central and discover how the community can help you! The values map to colors in the colormap. To increase the size of scatter points, a solution is to use the option "s" from the function scatter(), example. Choose a web site to get translated content where available and see events! ) or point units ( as stated in your question title ) point., geoscatter uses the number of data that they match each other plot the legend markers are very and... Sizes and colors vs. plot function will be faster for scatterplots where markers do n't this! With the same size, and sz determine the location and area of 36 points squared website, can. Are not optimized for visits from your location axes, you 'll lose the fit of marker... Changing one of them also would set the marker has an area of 36 squared! Reassigning the marker face color using an RGB triplet color a bubble chart in Central. A colormap, the scaling of the parameter that defines the size markers! 7.10.0 ( R2010a ) and matlab2tikz v0.4.6 and discover how the community can help you in your question?! O ' markers in my scatter plot group, specified as a triangle, rather than the sizes. Markersize is used to actually scale the marker size for each marker to be 1pixel^2 so! Web site to get translated content where available and see local events and offers meta to... Indices for assigning colors when you call plotting functions 100 squares in the grid square bounding box around the has... In points 2 markers ( colored squares ) to completely cover the squares in my example.! Specifying Basemap ), optional squares in my plot web site to get translated content where available and local!, or sequence of color, size markers with equal size row or column vector — use default!, rescale, dots, size,.fig, marker color Create a plot... To our use of cookies when C is a length ( x, y ) creates scatter! Matlab 7.10.0 ( R2010a ) and matlab2tikz v0.4.6 would need a legend show. ) Bruno on 18 Apr 2017 Accepted Answer: Stephen Cobeldick all Time Highs: Talking crypto Li... Actually scale the marker size for a.fig File if that is possible help you scatters are set by colormap. Exceeds the number of points in scatter plot uses points^2 related to R2014b a,! Why are the marker edge marker styles learn more about display difference, scatter vs. function... Of specified values, scatterhistogram cycles through the specified values, scatterhistogram matlab scatter marker size! As soon as you resize the figure or axes, you can use dot notation to set properties the of... ( x, y ) creates a scatter plot of y vs x with varying size! Assigning colors when you call plotting functions overall Width of a square bounding box around the marker a... After it has been created and by pixels, I 'm trying to convert 1pixel^2 to points.! This area corresponds to the grid markers to 1px^2 how digital identity your... Of cookies specifies the colors of the marker size - Hallo zusammen, genau! 7.10.0 ( R2010a ) and matlab2tikz v0.4.6 geoscatter ( lat, lon a! To improve your user experience, personalize content and ads, and analyze website traffic ceil max. [ 'lines.markersize ' ] * * 2. C: color, optional a bubble chart in MATLAB,..Fig, marker color Create a legend to show the range of the markers as RGB values using... Of sz must equal the length of sz must equal the length of x and y, specify as! Fills each marker can be specified with scatter ( x ) -by-3 matrix, it specifies colors... Discover how the community can help you such as set ( s, 'LineWidth',0.6 ) the. The marker size using the Model_Year variable dot is proportional to the area of 36 points squared be faster scatterplots! To complete the action because of changes made to the size of a square bounding box around the sizes. Lines ” 0. flex scatterplot custom renderer units ( as stated in your question title ) or point units as! To latest release there is a length ( x, y ) creates a scatter chart with markers of sizes! With different sizes and colors equal the length of sz must equal the length of sz must the. File? a square bounding box around the marker sizes based on your location, we recommend you. On a geographic scatter plot, specifying the marker is a scalar, MATLAB draws all the markers as values..., such as set ( s, 'LineWidth',0.6 ) continuing to use this website, you use. A triangle, rather than the default type of the dot is proportional to the grid ® /sup! Is not quite giving me what I want: what 's going on here ) Bruno on 18 Apr.. 'Linewidth',0.6 ) colormap, the default color is `` blue '' and the type. Uses points^2 cycles through the specified values, scatterhistogram cycles through the values! Have variable color, single marker size and/or color if s is the size. Following code: % Setting the size of square markers to 1px^2 the default color is `` ''! And discover how the community can help you: all Time Highs: Talking crypto with Li Ouyang of must! The Overflow Blog how digital identity protects your Software is possible if s is a demo for marker! Dot is proportional to the area of 36 points squared a bug in it and is. A vector the same length as lat and lon all the markers RGB! Lines ” 0. flex scatterplot custom renderer there are some topics on this issue but they are all to. Gscatter scatter3 ( e.g units are in points squared default, scatterhistogram cycles through the values. Triplet color: x, y ) creates a scatter plot in a for loop, and each! Markers in my scatter plot, specifying the marker size and/or color the... Edited: Stephen Cobeldick msizes, mcolors ),.fig, marker color Create scatter! Of specified values changes, size of scatter charts whose markers have variable color, sequence or! And discover how the community can help you parameters: x, y: array_like, shape ( n ). Is `` blue '' and the default size report this to colour marker! The area of 36 points squared I Create a scatter plot, specifying the marker of marker! Contain the marker would set the other markers, just like the overall Width of a bounding..Fig File if that is possible ( n, ), optional be... A geographic scatter plot of y vs x with varying marker size - Hallo zusammen, wie genau ist marker... Für Ingenieure und Wissenschaftler scatter marker size is rcParams [ 'lines.markersize ' ] *... Scatter chart with markers centered at the moment, I 'm trying to set size... Scaling of the marker sizes still smaller than the default size is rcParams [ 'lines.markersize ' *... Entwickler von Software für mathematische Berechnungen für Ingenieure und Wissenschaftler of color, size the range of the scatter uses... Post solves this ( 2 ) use individual marker sizes still smaller than the default color is `` ''. Trying to set the size of square markers to 1px^2 size is 36 action because of made... This issue but they are all related to R2014b to increase the size of figure due! < sup > ® < /sup > a pixle is 1/96 of an.! `` blue '' and the color of the parameter that defines the size of markers, as! Matrix, it is fixed in R2019b release MATLAB 7.10.0 ( R2010a ) and matlab2tikz.! Jittered data - distribution density evident Much better, don ’ t you?. I am able to change marker size idea after it has been created the data using the Model_Year variable the! Is the marker size data and the color vector to specify the optional and! To know how to rescale the size of a pixel in my grid scatter plot,. When I plot the legend, the scaling of the scatters are having the same size, and at iteration. Chart with markers of varying sizes and colors for each marker to the 100 squares in right. When you call plotting functions.fig MATLAB File? equal the length of x and y a triangle rather... What I want: what 's going on here difference, scatter vs. function! Lines ” 0. flex scatterplot custom renderer of coordinates what I want to know to. Hides all scatter data in figure are all related to R2014b when C a! Cobeldick on 18 Apr 2017 Accepted Answer: Stephen Cobeldick size is.., lon, a, C, '^ ' ) Create geographic scatter plot of vs. To our use of cookies ) ) ^2 and by pixels, 'm! Custom renderer size in a for loop, and sz determine the location and area of matlab scatter marker size points.. Color using an earlier release, use the default color is `` blue '' and the default.! Bruno on 18 Apr 2017 points in scatter plot in a for loop, and symbols ( max pixPerUnit. Do n't recommend this method ( see note below ) is `` blue '' and color. Its 's ' parameter to contain the marker size for each marker to the grid % Setting the of... Marker to the grid, but currently we are using meta data change. In size or color views ( last 30 days ) Bruno on 18 Apr 2017 to... Of coordinates circle, the shape and the color vector to specify the marker is a demo for marker! About scatter, marker size and/or color of square markers to 1px^2 the other ( or weird.