Labels out of the box in figures

4 ビュー (過去 30 日間)
Guilherme
Guilherme 2017 年 1 月 20 日
編集済み: Guilherme 2017 年 1 月 21 日
Hello,
When I try to resize the box figure, using Matlab 2016, the labels go out of the box (See xlabel in the bodeplot bellow). I didn't have this problem in any of the Matlab previous versions. Can I fix this? How should I proceed?
Even the axis get cut depending on how I resize the figure (shown in figure bellow).
  2 件のコメント
John Chilleri
John Chilleri 2017 年 1 月 20 日
編集済み: John Chilleri 2017 年 1 月 20 日
I've had similar encounters, but when I save the figure as an image, it has always included everything.
Guilherme
Guilherme 2017 年 1 月 20 日
In my computer, this problem happens in the figure (.fig) and when I save it as an image.

サインインしてコメントする。

回答 (1 件)

Niels
Niels 2017 年 1 月 20 日
Hi,
you can access the properties of the axis and change the fontsizes (there are lots off/ + multipliers) Axes Properties
read the paragraph about Font Style and the following about Title, Axis Labels, and Legend
you can do it by either the Children prop of the figure or the Parent prop of the plot
Fig1=figure; % then plot something, set label etc
Fig1.Children.FontSize=??? % whatever
or
h=plot(...)
h.Parent.FontSize=???
  3 件のコメント
Niels
Niels 2017 年 1 月 21 日
編集済み: Niels 2017 年 1 月 21 日
pls put the code of what you have tried/ changed so far in a comment
Guilherme
Guilherme 2017 年 1 月 21 日
編集済み: Guilherme 2017 年 1 月 21 日
I tried changing position with the code bellow, but also tried many configurations in the figure properties window, such as changing: font, resize 'on/off', paper size...
The figure is attached in this message, could you please test it?
aa=get(gca,'OuterPosition')
set(gca,'OuterPosition',[aa(1) aa(2) + 0.1 aa(3) aa(4)])

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by