Different Fontsize of texts in stackedplot()

조회 수: 3 (최근 30일)
Ashishkumar Gupta
Ashishkumar Gupta 2023년 1월 26일
편집: dpb 2023년 1월 27일
I want different Fontsize & style for ylabels, xlabels, legends and title in stackedplot().
How should i do it?
TIA

답변 (1개)

dpb
dpb 2023년 1월 26일
편집: dpb 2023년 1월 27일
If you mean you want them to be different for each type object, sorry, "no can do". There's only one global 'fontsize' and 'fontname' property for the object. The stackedplot object is what TMW calls a "Standalone Visualization" -- to quote from the doc "More about" section,
Standalone Visualization
A standalone visualization is a chart designed for a special purpose that works independently from other charts. Unlike other charts such as plot and surf, a standalone visualization has a preconfigured axes object built into it, and some customizations are not available. A standalone visualization also has these characteristics:
  • It cannot be combined with other graphics elements, such as lines, patches, or surfaces. Thus, the hold command is not supported.
  • The gca function can return the chart object as the current axes.
All these newer thingies are pretty-much neutered for user customization; even poking at them with Yair Altman's undocumented function to uncover hidden handles is generally a wasted exercise; there simply isn't much that can be done with them beyond look at them the way they are.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by