Gibberish

Posts tagged ‘illustration’

Matplotlib color chart

Here is the color chart for using inside matplotlib

 

lfzum

Image gotten from a discussion on stack: https://stackoverflow.com/questions/22408237/named-colors-in-matplotlib

Advertisements

Illustration: back to school

2014-08-19Recently I like to doodle something vintage different from the old way. Normally I draw like I usually do, then go to Photoshop and apply a vintage effect on it. But this one is created originally by choosing the exact colors from the beginning.

The result is not bad.

Anyway, the summer is going to end soon. Time to get back to work and stop complaining already, me.

Adding point to Matlab plot

Here is the code to plot a data point to a 2D diagram.

plot(x,y) %plot the line
yi=interp1(x,y,a)
% a is a real number of the
% x-axis value of the data point
hold on
plot(a,yi,'*')

For example:

x=[0:0.01:1];
y=[0:10:1000];
plot(x,y);
% Now add a data point with x=0.25
yi=interp1(x,y,0.25);
hold on;
plot(0.25,yi,'*')

Tag Cloud

%d bloggers like this: