When making a plot in Matlab using errorbar(...) the color of the error bars is the same as the plot. How do I set them to be in a different color?

I tried looking for a way to do it in here:



But I couldn't find it.

  • $\begingroup$ This question seems to be about programming and not computational science, as such it would be better suited for Matlab Q&A or StackOverflow. $\endgroup$ – nicoguaro Aug 4 '19 at 4:09
  • $\begingroup$ @nicoguaro very well, is there a way to transfer it there or I have to repost it there? $\endgroup$ – TensoR Aug 6 '19 at 0:40
  • $\begingroup$ I will migrate it tomorrow to StackOverflow. $\endgroup$ – nicoguaro Aug 6 '19 at 0:43
  • $\begingroup$ @nicoguaro I can't do it myself? If so, I can just repost it there then. $\endgroup$ – TensoR Aug 6 '19 at 0:45
  • $\begingroup$ @nicoguaro I reposted the question there, so no need to transfer it. $\endgroup$ – TensoR Aug 6 '19 at 0:58

Browse other questions tagged or ask your own question.