hey assistent I have this in matlab line(x,y,... 'Parent',hAxes,...…
- User
hey assistent I have this in matlab line(x,y,... 'Parent',hAxes,... 'Color',data.measure(iMeasure(nMeasure)).color,... 'Marker',data.measure(iMeasure(nMeasure)).bullet,... 'MarkerSize',data.measure(iMeasure(nMeasure)).markerSize,... 'LineStyle',data.measure(iMeasure(nMeasure)).lineStyle,... 'LineWidth',data.measure(iMeasure(nMeasure)).lineWidth,... 'Tag',[data.measure(iMeasure(nMeasure)).tool '_plot'],... 'MarkerFaceColor',Facecolor,... 'MarkerEdgeColor',EdgeColor',... 'userData',iMeasure(nMeasure),... 'uicontextmenu',hMenuContextuel); ICE_status_text{nMeasure}=['ICE ' ICE_satus]; this plots some points with a line btween them. I just want the points
- Assistant
If you want to plot only the points without connecting them with a line, you need to modify the
'LineStyle'property of thelinefunction in MATLAB. The'LineStyle'property should be set to'none'to prevent lines from being drawn between the data points. Here is how you can modify your code:matlabline(x, y, ... 'Parent', hAxes, ... 'Color', data.measure(iMeasure(nMeasure)).color, ... 'Marker', data.measure(iMeasure(nMeasure)).bullet, ... 'MarkerSize', data.measure(iMeasure(nMeasure)).markerSize, ... 'LineStyle', 'none', ... % Set LineStyle to 'none' to display only points 'LineWidth', data.measure(iMeasure(nMeasure)).lineWidth, ... 'Tag', [data.measure(iMeasure(nMeasure)).tool '_plot'], ... 'MarkerFaceColor', Facecolor, ... 'MarkerEdgeColor', EdgeColor, ... 'UserData', iMeasure(nMeasure), ... 'UIContextMenu', hMenuContextuel); ICE_status_text{nMeasure} = ['ICE ' ICE_satus];