File Exchange

image thumbnail

Custom Marker Plot

version 1.0 (9.54 KB) by

This simple code enables you to plot using custom markers.

15 Downloads

Updated

View License

This simple code enables you to plot using custom markers. It uses custom patches instead of Matlab built-in markers.

As the input, you need to provide x and y for the data points, like you do in regular plots. You also need to provide x and y data for your custom marker, assuming the center of the marker is at (0,0). You need to also provide the scale for your marker, which is analogous to Matlab's marker size.

Comments and Ratings (8)

Ongun

Ongun (view profile)

Great patch really works well on R2015b, but adding the feature to remove the dashed line in an updated version will be nice.

Could it be used as a node marker in a graph, having the same properties like NodeLabel, MarkerSize and etc.?

Chhavi Yadav

can i put an image instead of the cross sign?

I want to move the image of a car on a road that is basically made using the plot and fill commands.

Andrew Tan

@Royi Anital, you can get the demo to work by setting rHex = 1.

Andrew Tan

Thanks!

Royi Avital

I tried running the demo and I get an error - "Undefined function or variable 'rHex'.". Any idea?

William

Great time saver, thank you for the submission!

MATLAB Release
MATLAB 7.13 (R2011b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video