Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand set of marker types to include horizontal and vertical line markers #1109

Open
ethans-carl opened this issue Jul 8, 2022 · 0 comments

Comments

@ethans-carl
Copy link

translateMarkerSize is missing cases for some (newer?) markers in Matlab, particularly, horizontal and vertical lines. Trying to use matlab2tikz on a plot that uses these marker types leads to an error e.g.,

Error using matlab2tikz>translateMarkerSize
Unknown matlabMarker '|'.

Error in matlab2tikz>getMarkerOptions (line 2087)
translateMarkerSize(m2t, marker, markerSize);

Error in matlab2tikz>drawLine (line 1786)
[m2t, markerOptions] = getMarkerOptions(m2t, h);

Error in matlab2tikz>handleObject (line 3142)
[m2t, str] = feval(actualHandler, m2t, h, custom);

Error in matlab2tikz>handleAllChildren (line 683)
[m2t, str] = handleObject(m2t, child, @Drawline);

Error in matlab2tikz>drawAxes (line 886)
[m2t, childrenEnvs] = handleAllChildren(m2t, handle);

Error in matlab2tikz>saveToFile (line 485)
m2t = drawAxes(m2t, relevantAxesHandle);

Error in matlab2tikz (line 337)
m2t = saveToFile(m2t, fid, fileWasOpen);

It looks like they need to have cases added to handle them in translateMarker and translateMarkerSize (and possibly elsewhere?). Or if they're not Tikz markers and can't be handled, the user should probably be told that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant