[26109] in Athena Bugs
linux 9.3.12: Matlab
daemon@ATHENA.MIT.EDU (Nayden D Kambouchev)
Sun Oct 10 23:20:27 2004
Message-Id: <200410110320.i9B3KL24023019@drno.mit.edu>
To: bugs@mit.edu
Date: Sun, 10 Oct 2004 23:20:21 -0400
From: Nayden D Kambouchev <nayden@mit.edu>
Errors-To: bugs-bounces@mit.edu
System name: drno.mit.edu
Type and version: i686 9.3.12
Display type: ATI Technologies Inc Rage 128 Pro Ultra TF
Shell: /bin/athena/tcsh
Window manager: sawfish
What were you trying to do?
Run the following code in version 7.0.1 and in version 7.0.0
**********************
clear all;
k=50;
x1=(.8-.01*((1:k)-6))/.8;
k=20;
x2=.02*(1:k)-.02;
figure(2);
clf;
[AX,H1,H2]=plotyy(x1,x1,x2,x2);
set(H1,'LineStyle','--');
set(H2,'LineStyle','-.');
legend(AX(1),'Max Pressure Rise',4);
legend(AX(2),'Inlet Distortion',2);
xlabel('Required Stability Margin [%]');
ylabel(AX(1),'$\frac{Max\;\;Pressure\;\;Rise}{Nominal\;\;Max\;\;Pressure\;\;Rise}$','Interpreter','latex');
ylabel(AX(2),'$\frac{Inlet\;\;Distortion\;\;Loss}{Nominal\;\;Max\;\;Pressure\;\;Rise}$','Interpreter','latex');
a1=get(AX(1),'Position');
a2=get(AX(2),'Position');
bmin=max(a1(1),a2(1));
bmax=min(a1(3),a2(3));
a1(1)=bmin;
a1(3)=bmax;
a2(1)=bmin;
a2(3)=bmax;
set(AX(1),'Position',a1);
set(AX(2),'Position',a2);
get(AX(1),'Position')
get(AX(2),'Position')
print -depsc formathworks
get(AX(1),'Position')
get(AX(2),'Position')
***********************************
What's wrong:
Version 7.0.1 does not print correctly. Note the last five
lines of the code. The print command should not be changing
the position of the axes, but it actually does. If you run
the code in 7.0.0 it does not change the position of the axes,
which is good and I believe the proper behavior, but of course
I cannot use it because 7.0.0 has a bug in the latex
interpreter and does not support rotation for the y labels.
What should have happened:
See above. I believe there is not anything you can do about
it, but I hope that this can be forwarded to MathWorks to fix
in the next service pack.
Please describe any relevant documentation references:
None
Nayden