Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Changing a color of a line after being plotted
Replies:
1
Last Post:
Jul 3, 2013 1:11 PM



P.O.L.
Posts:
1
Registered:
7/3/13


Changing a color of a line after being plotted
Posted:
Jul 3, 2013 12:06 PM


Hi,
I'm a bit of a novice. How do you change the color of a plotted line after being plotted?
i.e. figure; plot(x1, y1, x2, y2, x1, y3, x1, y4, 'LineWidth',2)
The plot comes up with 4 curves (all different colors), but I'd like to mess around with different colors for specific lines after plotting.
Is there a useful plot documentation out there? I'm having trouble plotting things "quickly" and find myself having to redo plots completely if I forget to something ahead of time (because I'm having trouble changing properties after plotting).
Thanks! Alex



