Bar Charts in MATLAB

Plotting a Bar Chart

dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #999999;">,</span>23<span style="color: #999999;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">figure(</span>1<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">bar(</span>dataCANZUK<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>

Adding Labels

dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #999999;">,</span>23<span style="color: #999999;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">figure(</span>2<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">bar(</span>dataCANZUK<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>
labels=<span style="color: #666699;">{</span><span style="color: #800080;">'</span><span style="color: #ff9900;">support</span><span style="color: #800080;">'</span><span style="color: #808080;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">don''t know</span><span style="color: #800080;">'</span><span style="color: #808080;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">oppose</span><span style="color: #800080;">'</span><span style="color: #666699;">}</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xticklabels(</span>labels<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xtickangle(</span>45<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">ylabel(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">percentage (%)</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">title(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">British Support for Freedom of Movement</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">grid(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">minor</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>

Changing the Colours of the Bars

Here we need to assign the bar chart to a variable name. We can then modify its properties:

dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #999999;">,</span>23<span style="color: #999999;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">figure(</span>2<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;"><span style="color: #000000;">mybar=</span>bar(</span>dataCANZUK<span style="color: #0000ff;">)</span><span style="color: #ff00ff;">;</span>
labels=<span style="color: #666699;">{</span><span style="color: #800080;">'</span><span style="color: #ff9900;">support</span><span style="color: #800080;">'</span><span style="color: #808080;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">don''t know</span><span style="color: #800080;">'</span><span style="color: #808080;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">oppose</span><span style="color: #800080;">'</span><span style="color: #666699;">}</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xticklabels(</span>labels<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xtickangle(</span>45<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">ylabel(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">percentage (%)</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">title(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">British Support for Freedom of Movement</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">grid(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">minor</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #0000ff;">set(</span><span style="color: #00ccff;">mybar(</span>1<span style="color: #00ccff;">)</span><span style="color: #808080;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #808080;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #808080;">,</span>1<span style="color: #808080;">,</span>0<span style="color: #0000ff;"><span style="color: #ff0000;">]</span>)</span><span style="color: #ff00ff;">;</span>

Multiple Series Grouped

<span style="color: #339966;">%% This creates a bar graph with multiple bars</span>
<span style="color: #0000ff;">figure(</span>4<span style="color: #ff00ff;"><span style="color: #0000ff;">)</span>;</span>
<span style="color: #339966;">% The data to be plotted set1 (value1, value2 and value3), set2 (value1,</span><span style="color: #339966;">
% value2 and value3) and set3 (value1, value2 and value3)</span>
dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #808080;">,</span>23<span style="color: #808080;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataUSA=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>27<span style="color: #808080;">,</span>27<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataEU=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>19<span style="color: #808080;">,</span>35<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
data=<span style="color: #ff0000;">[</span>dataCANZUK<span style="color: #ff00ff;">;</span>dataUSA<span style="color: #ff00ff;">;</span>dataEU<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Creates a Bar Chart from the data and assigns it to mybar</span>
mybar=<span style="color: #3366ff;">bar(</span>data<span style="color: #999999;">,</span> <span style="color: #800080;">'</span><span style="color: #ff9900;">grouped</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span>;
<span style="color: #339966;">% A second input argument can be used 'stacked' stacks value1, value2 and value3 in % a single bar.</span>
<span style="color: #339966;">% A second input argument can be used 'grouped' groups value1, value2 and value3 for % each set.</span>
<span style="color: #339966;">% This gives the labels</span>
labels=<span style="color: #666699;">{</span><span style="color: #800080;">'</span><span style="color: #ff9900;">CANZUK</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">USA</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EU</span><span style="color: #800080;">'</span><span style="color: #666699;">}</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This is the labels and the angles</span>
<span style="color: #3366ff;">xticklabels(</span>labels<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xtickangle(</span>45<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">ylabel(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">percentage (%)</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This adds the gridlines</span>
<span style="color: #3366ff;">grid(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">minor</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This gives the title</span>
<span style="color: #3366ff;">title(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">British Support for Freedom of Movement</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Adds a value</span>
<span style="color: #3366ff;">legend(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">support</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">don''t know</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">oppose</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">Location</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EastOutside</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span><span style="color: #339966;">
% you can use 'b', 'g', 'r' from inbuilt MATLAB colours or</span><span style="color: #339966;">
% [0,0,1], [0,1,0], [1,0,0]</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>1<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>1<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>2<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>1<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>3<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>1<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>

Multiple Series Stacked

<span style="color: #339966;">%% This creates a bar graph with multiple bars</span>
<span style="color: #0000ff;">figure(</span>5<span style="color: #ff00ff;"><span style="color: #0000ff;">)</span>;</span>
<span style="color: #339966;">% The data to be plotted set1 (value1, value2 and value3), set2 (value1,</span><span style="color: #339966;">
% value2 and value3) and set3 (value1, value2 and value3)</span>
dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #808080;">,</span>23<span style="color: #808080;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataUSA=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>27<span style="color: #808080;">,</span>27<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataEU=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>19<span style="color: #808080;">,</span>35<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
data=<span style="color: #ff0000;">[</span>dataCANZUK<span style="color: #ff00ff;">;</span>dataUSA<span style="color: #ff00ff;">;</span>dataEU<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Creates a Bar Chart from the data and assigns it to mybar</span>
mybar=<span style="color: #3366ff;">bar(</span>data<span style="color: #999999;">,</span> <span style="color: #800080;">'</span><span style="color: #ff9900;">stacked</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span>;
<span style="color: #339966;">% A second input argument can be used 'stacked' stacks value1, value2 and value3 in % a single bar.</span>
<span style="color: #339966;">% A second input argument can be used 'grouped' groups value1, value2 and value3 for % each set.</span>
<span style="color: #339966;">% This gives the labels</span>
labels=<span style="color: #666699;">{</span><span style="color: #800080;">'</span><span style="color: #ff9900;">CANZUK</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">USA</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EU</span><span style="color: #800080;">'</span><span style="color: #666699;">}</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This is the labels and the angles</span>
<span style="color: #3366ff;">xticklabels(</span>labels<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xtickangle(</span>45<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">ylabel(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">percentage (%)</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This adds the gridlines</span>
<span style="color: #3366ff;">grid(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">minor</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This gives the title</span>
<span style="color: #3366ff;">title(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">British Support for Freedom of Movement</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Adds a value</span>
<span style="color: #3366ff;">legend(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">support</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">don''t know</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">oppose</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">Location</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EastOutside</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span><span style="color: #339966;">
% you can use 'b', 'g', 'r' from inbuilt MATLAB colours or</span><span style="color: #339966;">
% [0,0,1], [0,1,0], [1,0,0]</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>1<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>1<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>2<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>1<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>3<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>1<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>

Multiple Series Grouped 2

<span style="color: #339966;">%% This creates a bar graph with multiple bars</span>
<span style="color: #0000ff;">figure(</span>6<span style="color: #ff00ff;"><span style="color: #0000ff;">)</span>;</span>
<span style="color: #339966;">% The data to be plotted set1 (value1, value2 and value3), set2 (value1,</span><span style="color: #339966;">
% value2 and value3) and set3 (value1, value2 and value3)</span>
dataCANZUK=<span style="color: #ff0000;">[</span>58<span style="color: #808080;">,</span>23<span style="color: #808080;">,</span>19<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataUSA=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>27<span style="color: #808080;">,</span>27<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
dataEU=<span style="color: #ff0000;">[</span>46<span style="color: #808080;">,</span>19<span style="color: #808080;">,</span>35<span style="color: #ff0000;">]</span><span style="color: #ff00ff;">;</span>
data=<span style="color: #ff0000;">[</span>dataCANZUK<span style="color: #ff00ff;">;</span>dataUSA<span style="color: #ff00ff;">;</span>dataEU<span style="color: #ff0000;">]'</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Creates a Bar Chart from the data and assigns it to mybar</span>
mybar=<span style="color: #3366ff;">bar(</span>data<span style="color: #999999;">,</span> <span style="color: #800080;">'</span><span style="color: #ff9900;">grouped</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span>;
<span style="color: #339966;">% A second input argument can be used 'stacked' stacks value1, value2 and value3 in % a single bar.</span>
<span style="color: #339966;">% A second input argument can be used 'grouped' groups value1, value2 and value3 for % each set.</span>
<span style="color: #339966;">% This gives the labels</span>
labels=<span style="color: #666699;">{</span><span style="color: #800080;">'</span><span style="color: #ff9900;">support</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">don''t know</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">oppose</span><span style="color: #800080;">'</span><span style="color: #666699;">}</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This is the labels and the angles</span>
<span style="color: #3366ff;">xticklabels(</span>labels<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">xtickangle(</span>45<span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">ylabel(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">percentage (%)</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This adds the gridlines</span>
<span style="color: #3366ff;">grid(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">minor</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% This gives the title</span>
<span style="color: #3366ff;">title(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">British Support for Freedom of Movement</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #339966;">% Adds a value</span>
<span style="color: #3366ff;">legend(</span><span style="color: #800080;">'</span><span style="color: #ff9900;">CANZUK</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">USA</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EU</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">Location</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">EastOutside</span><span style="color: #800080;">'</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span><span style="color: #339966;">
% you can use 'b', 'g', 'r' from inbuilt MATLAB colours or</span><span style="color: #339966;">
% [0,0,1], [0,1,0], [1,0,0]</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>1<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>1<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>2<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>0<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>1<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>
<span style="color: #3366ff;">set(</span><span style="color: #33cccc;">mybar(</span>3<span style="color: #33cccc;">)</span><span style="color: #999999;">,</span><span style="color: #800080;">'</span><span style="color: #ff9900;">FaceColor</span><span style="color: #800080;">'</span><span style="color: #999999;">,</span><span style="color: #ff0000;">[</span>1<span style="color: #999999;">,</span>0<span style="color: #999999;">,</span>0<span style="color: #ff0000;">]</span><span style="color: #3366ff;">)</span><span style="color: #ff00ff;">;</span>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.