fancybox

버전 1.0.0.0 (6.23 KB) 작성자: Delyle Polet
A more flexible way to change the appearance of the axis box
다운로드 수: 61
업데이트 날짜: 2016/1/20

라이선스 보기

Key features:
- Plot the axis box as a dashed line, dotted line, etc.
- Plot tick marks, tick labels, and axis box as different colors
- Most properties of the original axis are preserved
SYNTAX:
fancybox('PropertyName',propertyvalue,...)
hb = fancybox('PropertyName',propertyvalue,...)
PROPERTIES: (Name-value pairs)
'XTickColor' - Color of the X Tick markers
'k'(default)| RGB Triplet | Color String | 'none'
'YTickColor' - Color of the Y Tick Markers
'k'(default)| RGB Triplet | Color String | 'none'
'TickColor' - Color of both X and Y markers (overrides any
assignment to YTickColor or XTickColor
Any property of the patch class (the axis box takes on these properties)

DESCRIPTION:
fancybox('PropertyName',propertyvalue,...)
Plots a more flexible axis box outline, with the option to change
color, linestyle, thickness and alpha of the box. Tick markers can
be plotted as seperate different colours. Returns a patch handle
for the box outline if an output is specified

EXAMPLE:

figure('color','w')
subplot(2,2,1)
z = peaks;
contour(z,11)
xlabel('x')
ylabel('y')
fancybox('EdgeColor','r','linestyle',':','TickColor','r')
subplot(2,2,2)
x = linspace(-2,2,101);
plot(x,2*x.^3-3*x+1);
fancybox('EdgeColor','b','linestyle','--')
subplot(2,2,3)
z = magic(15);
contourf(z)
set(gca,'ticklength',[0.03 0])
hb = fancybox('EdgeColor','g','linestyle','-.','linewidth',3,'YTickColor','g');
subplot(2,2,4)
plot(x,sin(x),'r:')
fancybox('EdgeAlpha',0.5)

This function has been tested on MATLAB 2015a and 2015b

인용 양식

Delyle Polet (2024). fancybox (https://www.mathworks.com/matlabcentral/fileexchange/55019-fancybox), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Changed file title