From a6df67e8bcd5159cde27556f4f6a315f8dc2215f Mon Sep 17 00:00:00 2001 From: shamikam Date: Mon, 16 Jan 2017 02:56:17 +0530 Subject: First Commit --- macros/show.sci | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 macros/show.sci (limited to 'macros/show.sci') diff --git a/macros/show.sci b/macros/show.sci new file mode 100644 index 0000000..aec4db8 --- /dev/null +++ b/macros/show.sci @@ -0,0 +1,18 @@ + function[] =show(Img,ColorMap) + FigureHandle = gcf(); + drawlater(); + FigureHandle.color_map = ColorMap + FigureHandle.background = -2; // sets the background to white + FigureHandle.figure_name = "Title"; + [NumberOfRows NumberOfColumns] = size(Img); + FigureHandle.axes_size = [NumberOfColumns NumberOfRows]; + delete(gca()); // previous image is deleted + Diagram = gca(); + [NumberOfRows NumberOfColumns] = size(Img); + Diagram.data_bounds = [1, 1; NumberOfColumns, NumberOfRows]; + Diagram.axes_visible = ['off' 'off' 'off']; + Diagram.isoview = 'on'; + Options = '082'; // Box is drawn around image. + Matplot(Img, Options); + drawnow(); + endfunction -- cgit