I’m plotting some data sets with linear fits. I want the linear fit to have the same color as the plotted data (error bars). How can I get that color?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might try this:
ebaris a container of artist, so you might modify the index in the last line to match the artist you want to get color from.You can also easily set the color of the errorbar, so you know exactly what color they are without checking it: