summaryrefslogtreecommitdiff
path: root/Tutorial02-Plots/Scilab_code/change_plot_attribs.sci
diff options
context:
space:
mode:
authorP Sunthar2018-10-02 00:09:14 +0530
committerP Sunthar2018-10-02 00:09:14 +0530
commit6d39446c434cfcca02ae7a4551e2d66edf9def7f (patch)
treef0e84e8fadd28600bfdeadf1471d59be5eaee54a /Tutorial02-Plots/Scilab_code/change_plot_attribs.sci
parent4d0d95e5748137abe4636dc734b03b4e7ccfd6f5 (diff)
downloadscilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.gz
scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.bz2
scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.zip
Renamed dirs
Diffstat (limited to 'Tutorial02-Plots/Scilab_code/change_plot_attribs.sci')
-rw-r--r--Tutorial02-Plots/Scilab_code/change_plot_attribs.sci10
1 files changed, 10 insertions, 0 deletions
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