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

Added support for 'parameterizedfunctionline' (generated by fplot) #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plot2svg.m
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ function minorGridLines(fid, grouplabel, axpos, x, y, scolorname, minor_gridline
for i=length(axchild):-1:1
if strcmp(get(axchild(i), 'Visible'), 'off')
% do nothing
elseif strcmp(get(axchild(i),'Type'),'line')
elseif strcmp(get(axchild(i),'Type'),'line') || strcmp(get(axchild(i),'Type'),'parameterizedfunctionline')
scolorname=searchcolor(id,get(axchild(i),'Color'));
linestyle=get(axchild(i),'LineStyle');
linewidth=get(axchild(i),'LineWidth');
Expand Down Expand Up @@ -3344,7 +3344,7 @@ function label2svg(fid,group,axpos,id,x,y,tex,align,angle,valign,lines,paperpos,
% old style legends)
children = findobj(ax, '-depth', 1, '-not', 'Type', 'axes');
% Now get all children of those objects that have data we can analyze
dataObjs = findobj(children, 'Type', 'line', ...
dataObjs = findobj(children, 'Type', 'line', 'parameterizedfunctionline', ...
'-or', 'Type', 'patch', '-or', 'Type', 'Rectangle', '-or', 'Type', 'Surface');
% Generate default limits if no objects are found
xlims = [0 1];
Expand Down