Fancy DualGraphs

버전 1.0.0.0 (4.46 KB) 작성자: Frequency Domain
Create double axis to use with matlab plotting tools, and automatically draw markers.
다운로드 수: 527
업데이트 날짜: 2012/4/23

라이선스 보기

Most dual axis functions take the data to be plot as arguments, thus, losing the flexibility given by existing plotting functions. Moreover, they are not suited for Black/White printing.

Fancy DualGraphs separates the dual-axis feature, from plotting, so you can keep using your plotting tools and options, but in a dual axis fashion. Moreover, it has the option of adding elliptical markers onto data, pointing to the proper axis. This improves the readibility, mainly in B/W prints.

The horizontal position of the markers, as well as their size, are configurable in a simple and documented fashion.

The code of the screenshot is as simple as follows

[ax] = dualCreate();

% Left axis
plot(ax(1), x, y1)
ylabel(ax(1),'Output 1')

% Right axis
plot(ax(2), x, y2,'g')
hold(ax(2), 'on')
plot(ax(2), x, y3,'r')

ylabel(ax(2),'Output 2')
grid(ax(2),'on')

% Figure parameters
xlabel('Input')
title('Tile')
legend('Line 1','Line 2','Line 3')

% Finalize graph
dualFinalize(ax, [0.2 0.8], 0.1,[1 -1]);

% Some makeup
fancyGraph(gcf)

If you have any suggestions or bug reports, please let me know!
Thank you

인용 양식

Frequency Domain (2024). Fancy DualGraphs (https://www.mathworks.com/matlabcentral/fileexchange/36324-fancy-dualgraphs), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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