diff nextColor.m @ 769:e958ed76e484 feature/grids

Add function to find next color of a plot
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 26 Jun 2018 16:59:03 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nextColor.m	Tue Jun 26 16:59:03 2018 +0200
@@ -0,0 +1,5 @@
+function c = nextColor(ah)
+    default_arg('ah', gca);
+
+    c = ah.ColorOrder(ah.ColorOrderIndex, :);
+end
\ No newline at end of file