KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LineSpecIterator Class Reference

LinSpecIterator: Small helper class to automatically iterate through different line styles/markers/colors. More...

Detailed Description

LinSpecIterator: Small helper class to automatically iterate through different line styles/markers/colors.

Author
Daniel Wirtz
Date
2012-06-08
New in 0.6:
(Daniel Wirtz, 2012-07-26) Can now also iterate through colors with the option of excluding some.
New in 0.6:
(Daniel Wirtz, 2012-06-08) Added this class.

This class is part of the framework

KerMor - Model Order Reduction using Kernels

Definition at line 17 of file LineSpecIterator.m.

Public Member Functions

 LineSpecIterator (ncolors, seed)
 
function
markerstyle = 
nextMarkerStyle ()
 
function
linestyle = 
nextLineStyle ()
 
function ls = nextColorLineStyle ()
 
function c = nextShortColor (linestyle)
 
function color = nextColor ()
 
function  excludeColor (data)
 

Public Attributes

 MarkerStyles = {"'s','d','o','*','p','x','+','^','v','<','>','.','h'"}
 
 LineStyles = {"'-',':','-.','--'"}
 
 Colors
 start of custom colors More...
 
 ShortColors = {"'r','g','b','c','m','y','k'"}
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs. More...
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects. More...
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends. More...
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function. More...
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function. More...
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects. More...
 
 findprop
 Returns a meta.property objects associated with the specified property name. More...
 
 fields
 Returns a cell array of string containing the names of public properties. More...
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function. More...
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass. More...
 
 eq
 Relational functions example. See details for more information. More...
 
 transpose
 Transposes the elements of the handle object array. More...
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function. More...
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function. More...
 
 sort
 ort the handle objects in any array in ascending or descending order. More...
 

Constructor & Destructor Documentation

LineSpecIterator.LineSpecIterator (   ncolors,
  seed 
)

Definition at line 96 of file LineSpecIterator.m.

References Colors.

Member Function Documentation

function LineSpecIterator.excludeColor (   data)

Definition at line 190 of file LineSpecIterator.m.

function color = LineSpecIterator.nextColor ( )

Definition at line 166 of file LineSpecIterator.m.

References Colors.

function ls = LineSpecIterator.nextColorLineStyle ( )

Definition at line 151 of file LineSpecIterator.m.

References nextLineStyle(), and ShortColors.

Here is the call graph for this function:

function linestyle = LineSpecIterator.nextLineStyle ( )

Definition at line 145 of file LineSpecIterator.m.

References LineStyles.

Referenced by nextColorLineStyle().

Here is the caller graph for this function:

function markerstyle = LineSpecIterator.nextMarkerStyle ( )

Definition at line 139 of file LineSpecIterator.m.

References MarkerStyles.

function c = LineSpecIterator.nextShortColor (   linestyle)

Definition at line 157 of file LineSpecIterator.m.

References ShortColors.

Member Data Documentation

LineSpecIterator.Colors
Initial value:
= "[ 0 0 1.0000,\
0 0.5000 0,\
1.0000 0 0,\
0 0.7500 0.7500,\
0.7500 0 0.7500,\
0.7500 0.7500 0,\
0.2500 0.2500 0.2500,\
0 1 0,\
.75 .75 .75,\
.9 .6 0,\
.2 1 .2,\
.5 .5 1]"

start of custom colors


Default: "[ 0 0 1.0000,\ 0 0.5000 0,\ 1.0000 0 0,\ 0 0.7500 0.7500,\ 0.7500 0 0.7500,\ 0.7500 0.7500 0,\ 0.2500 0.2500 0.2500,\ 0 1 0,\ .75 .75 .75,\ .9 .6 0,\ .2 1 .2,\ .5 .5 1]"

Definition at line 48 of file LineSpecIterator.m.

Referenced by LineSpecIterator(), and nextColor().

LineSpecIterator.LineStyles = {"'-',':','-.','--'"}

Definition at line 45 of file LineSpecIterator.m.

Referenced by nextLineStyle().

LineSpecIterator.MarkerStyles = {"'s','d','o','*','p','x','+','^','v','<','>','.','h'"}

Definition at line 42 of file LineSpecIterator.m.

Referenced by nextMarkerStyle().

LineSpecIterator.ShortColors = {"'r','g','b','c','m','y','k'"}

Definition at line 78 of file LineSpecIterator.m.

Referenced by nextColorLineStyle(), and nextShortColor().


The documentation for this class was generated from the following file: