Neon colors Scilab plot

Bored with white background Scilab plots?

Have a bit of fun and setup your Scilab plots with neon colors and black background.

Neon colors Scilab plot

Image: Neon colors Scilab plot

Here are the Scilab instructions to generate it:

// Plot function
clc();
x = -%pi/8:0.01:2*%pi;
y = sin(x) ./ exp(x);
plot(x,y);
xlabel('x [rad]','FontSize',3);
ylabel('y(x)','FontSize',3);
title('y(x) = sin(x)/exp(x)','FontSize',3);
xgrid();

// Get graphic handles
hf = gcf();
ha = gca();

// Neon colors setup
// 2- blue, 3 - green, 4 - light blue, 
// 5 - red, 6 - magenta, 7 - yellow
neon1 = 2; // grid
neon2 = 3; // ticks
neon3 = 6; // text
neon4 = 4; // line plot

// Hide toolbars
hf.toolbar_visible = "off";
hf.menubar_visible = "off";
hf.infobar_visible = "off";

// Set colors
hf.background = 0; // outer area
ha.background = 0; // inner area
ha.foreground = neon1; // axes rectangle
ha.font_color = neon2; // ticks
ha.grid =[neon1,neon1]; // grid
ha.title.font_foreground = neon3; // title
ha.x_label.font_foreground = neon3; // x-label
ha.y_label.font_foreground = neon3; // y-label
ha.children.children.foreground = neon4; // line plot
ha.children.children.thickness = 3; // line thickness

You can play with the colors of the neon1, neon2, neon3 and neon4 variables to match your taste. Have fun!

For any questions, observations and queries regarding this article, use the comment form below.

Don’t forget to Like, Share and Subscribe!

Leave a Reply

Ad Blocker Detected

Dear user, Our website provides free and high quality content by displaying ads to our visitors. Please support us by disabling your Ad blocker for our site. Thank you!

Refresh