From 6d39446c434cfcca02ae7a4551e2d66edf9def7f Mon Sep 17 00:00:00 2001 From: P Sunthar Date: Tue, 2 Oct 2018 00:09:14 +0530 Subject: Renamed dirs --- Tutorial02-Plots/Scilab_code/change_plot_attribs.sci | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tutorial02-Plots/Scilab_code/change_plot_attribs.sci (limited to 'Tutorial02-Plots/Scilab_code/change_plot_attribs.sci') diff --git a/Tutorial02-Plots/Scilab_code/change_plot_attribs.sci b/Tutorial02-Plots/Scilab_code/change_plot_attribs.sci new file mode 100644 index 0000000..68a04bd --- /dev/null +++ b/Tutorial02-Plots/Scilab_code/change_plot_attribs.sci @@ -0,0 +1,10 @@ +function change_plot_attribs(xlab,ylab,caption,labelsize,capsize,fontsize) + attrib_axes = gca(); //Attributes of axes of active handle + attrib_axes.x_label.text = xlab; //X-label + attrib_axes.y_label.text = ylab; //Y-label + attrib_axes.title.text = caption; //Title of the plot + attrib_axes.x_label.font_size = labelsize; //X_label font size + attrib_axes.y_label.font_size = labelsize; //Y_label font size + attrib_axes.title.font_size = capsize; //Title font size + attrib_axes.font_size = fontsize; //Font size of x-axis and y-axis +endfunction -- cgit