1 %>@ingroup graphicsapi globals idata assert
3 %>@brief Initializes globals COLORS, FONT, MARKERS, etc,
if not present.
5 %> Please check the source code
for reference on variables and
default values.
7 global COLORS MARKERS MARKERSIZES FONT FONTSIZE LINESTYLES SCALE COLORS_STACKEDHIST;
10 %Multiplier for MARKERSIZES, FONTSIZE, line widths etc
15 % Sequence of colors for general purpose
27 a = round(a/255*1000)/1000;
28 COLORS = mat2cell(a, ones(1, size(a, 1)), 3);
31 if isempty(LINESTYLES)
32 % Sequence of line styles
33 LINESTYLES = {
'-',
'--',
'-.'};
36 % Sequence of markers
for scatterplots etc.
37 MARKERS =
'so^dvp<h>';
38 % Sequence of marker sizes. Must match @c MARKERS in number of elements.
39 MARKERSIZES = 2*[3 3 3 3 3 3 3 3 3];
42 % Font
for figure axis labels, legend, title etc.
46 % Font size
for figure axis labels, legend, title etc.
48 % FONTSIZE = 40; % Becomes aprox. 16.5 when a 300dpi PNG is exported and made 18cm wide in Word.
49 % % PS: I think it goes well on my 1650x... monitor but a different screen size would need another FONTSIZE
50 % % to achieve the same effect (i.e. font size of 16.5 in Word)
51 % % This is good provision
for potential reduction when the figure goes to the paper
54 if isempty(COLORS_STACKEDHIST)
60 %---------------------------------
62 % This is the colormap that was used
for the stacked histograms
66 f = (cos(linspace(0, 2*pi, 10))*.1+1)
';
67 cm = bsxfun(@times, cm, f);
69 cm = round(cm*1000)/1000;
71 c = mat2cell(cm, ones(1, 10), 3);
function make_colors_stackedhist()
function draw_stacked(in x, in histss, in no_informative, in colors, in x_hint, in hint, in peakd, in flag_trace_minalt, in flag_draw_peaks, in flag_print_peaks, in flag_text)