function scatter_plots(X,xp,vnames,plotsymbol, fnam, dirname, figtitle, xparam1, DynareOptions)
%
% Written by Marco Ratto
% Joint Research Centre, The European Commission,
% marco.ratto@ec.europa.eu
%
% Copyright © 2017 European Commission
% Copyright © 2017 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see
i plot(X(:,i),X(:,j),[plotsymbol,'b']) else plot(X(:,i),X(:,j),[plotsymbol,'b']) end set(h,'Tag','scatter') %% if ~isoctave % Define a context menu; it is not attached to anything hcmenu = uicontextmenu('Callback','pick','Tag','Run viewer'); % Define callbacks for context menu % items that change linestyle hcb1 = 'scatter_callback'; % hcb2 = ['set(gco,''LineStyle'','':'')']; % hcb3 = ['set(gco,''LineStyle'',''-'')']; % % Define the context menu items and install their callbacks item1 = uimenu(hcmenu,'Label','save','Callback',hcb1,'Tag','save params'); item2 = uimenu(hcmenu,'Label','eval','Callback',hcb1,'Tag','eval params'); % item3 = uimenu(hcmenu,'Label','solid','Callback',hcb3); % Locate line objects hlines = findall(h,'Type','line'); % Attach the context menu to each line for line = 1:length(hlines) set(hlines(line),'uicontextmenu',hcmenu) end end %% if ~isempty(xparam1) hold on, plot(xparam1(i),xparam1(j),'s','MarkerFaceColor',[0 0.75 0],'MarkerEdgeColor',[0 0.75 0]) end hold off; % axis([-0.1 1.1 -0.1 1.1]) if i