changeset 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 dec0447cbf2c
children 0090a86d8b72
files nextColor.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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