A user has this nice graph of f(x) on his profile and I want to learn how to do it in matlab or Gnu octave.
f(x) = -(x*x*x +x + 1)
(0,0) = center
color(x,y) = arctan2(x, f(x))
lum(x,y) = sin(hypot(x, f(x))/alpha)
But when I try in matlab I fail:
>> y= -(x.*x.*x+x+1)
>> x = linspace(0,2*pi,100);
>> plot(x,y)
The matlab code does not make a plot that resembles the nice visual graph. I understand that I must also accomplish the effects, but can you help me on the way? Is there a program that is more or less suitable to make a plot like the above?
contour
command to reproduce the isocontour lines you have displayed, not aplot
command. Only then you can focus on thecolormap
used for obtaining such a graph but it seems to have been postprocessed with another software. $\endgroup$ – Coriolis Jun 3 '16 at 7:43