Skip to content

Commit

Permalink
Plot2LaTeX v1.3
Browse files Browse the repository at this point in the history
- figure copy
- check Inkscape dir
- options as varargin or struct
- waitbar optional
- export to pdf optional
- works with inkscape v1.1.1
  • Loading branch information
Don-Chris committed Feb 10, 2022
1 parent 68ad274 commit e6f9a66
Show file tree
Hide file tree
Showing 2 changed files with 614 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ChangeInterpreter.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function ChangeInterpreter(h,Interpreter)
% CHANGEINTERPRETER puts interpeters in figure h to Interpreter

TexObj = findall(h,'Type','Text');
LegObj = findall(h,'Type','Legend');
AxeObj = findall(h,'Type','Axes');
ColObj = findall(h,'Type','Colorbar');

Obj = [TexObj;LegObj]; % Tex and Legend opbjects can be treated similar

n_Obj = length(Obj);
for i = 1:n_Obj
Obj(i).Interpreter = Interpreter;
end

Obj = [AxeObj;ColObj]; % Axes and colorbar opbjects can be treated similar

n_Obj = length(Obj);
for i = 1:n_Obj
Obj(i).TickLabelInterpreter = Interpreter;
end
end
Loading

0 comments on commit e6f9a66

Please sign in to comment.