Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
boxplot 'fontsize' xlabel

Subject: boxplot 'fontsize' xlabel

From: Frank Sabouri

Date: 20 Sep, 2010 04:23:04

Message: 1 of 2

Hello,

I would like to change size of 'xlabel' in boxblot. Please let me know how I can do it.

Regards,

Frank

Subject: boxplot 'fontsize' xlabel

From: Walter Roberson

Date: 20 Sep, 2010 04:43:12

Message: 2 of 2

On 19/09/10 11:23 PM, Frank Sabouri wrote:

> I would like to change size of 'xlabel' in boxblot. Please let me know
> how I can do it.

There is an example in the xlabel documentation,
http://www.mathworks.com/help/techdoc/ref/xlabel.html


If you are perhaps talking about the size of labels given in the boxplot
'labels' parameter, then if we refer to the boxplot documentation and
see there the hint that removing labels can be done by setting the axes
xticklabel to empty, we can deduce that to change the size of such a
label would involve changing the size of an axes xtick label. Which,
according to the documentation of axes properties, is affected by the
FontSize axes property, and thus you can

set(gca, 'FontSize', 14) % or size to suit

This might affect more than you would prefer, though. If so, then I
believe people have referred to a Matlab File Exchange (FEX)
contribution that can make the tick labels in to text() objects that can
then be individually manipulated.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us