legend2latex fixes the legend problem without the need for @...@. See my comment on the legend2latex File Exchange page for info on how to incorporate it into plotepstex.

Thanks for this function, it is very helpful.
I have added a feature to adjust the legend width when using math code. The math code takes a lot of space which makes the legend too wide. With this feature you can add placeholder text delimited by @...@ in a legend line. This isn't printed in the eps, but it is used to size the legend. This gives correct legend box widths. The modified file is included with the latest update of plot2eps, which uses plotepstex and laprint and further streamlines the work flow.

I'm excited by the possibilities of this program. However, (on Windows), I'm having real problems to get it to work reliably. It's worked twice (out of many attempted times), but most other times I get a latex error. I am not sure what difference there was in the various times I used it - to me they seemed the same. It stops at the latex step, with latex being unable to find the aux file. Could this problem be related to having to create a symbolic link? If anyone has experience troubleshooting this function on Windows, I'd really appreciate any help.

i hope i must do as follows
alpha = 0:.1:2*pi';
x = cos(alpha);
y = sin(alpha);
front = paretofront([x y]);
hold on;
plot(x,y);
plot(x(front), y(front) , 'r');
hold off
grid on
xlabel('x');
ylabel('y');
title('Pareto Front of a circumference');
% am i correct.
%but then i am only getting a blue circle,not the partofront(the red part).

5

19 Apr 2014

Pareto Front
Two efficient algorithms to find Pareto Front

% i am trying to get pareto of the following,
function [] = paretofront(varargin)
alpha = 0:.1:2*pi]';
x = cos(alpha);
y = sin(alpha);
front = paretofront([x y]);
hold on;
plot(x,y);
plot(x(front), y(front) , 'r');
hold off
grid on
xlabel('x');
ylabel('y');
title('Pareto Front of a circumference');
error('mex file absent, type ''mex paretofront.c'' to compile');
%but every time i am getting the following error
??? Error using ==> paretofront
Too many output arguments.
Error in ==> paretofront at 6
front = paretofront([x y]);
can anyone please help

Comment only