How to change the Z axis scale of the landscape?
2 次查看(过去 30 天)
显示 更早的评论
I used Matlab 6.5 to draw 3D energy landscape. The minima is coming somewhere close to zero while the actual minima is -50.0 kcal/mol. I tried to push the landscape done, but of no use. I used the following codes % Load the data and extract the X, Y, and Z information load mcle60_proj.txt X = mcle60_proj(:,1); Y = mcle60_proj(:,2); Z = mcle60_proj(:,3); colormap('jet');
% Determine the minimum and maximum X and Y values
minX = min(X); minY = min(Y); minZ = min(Z);
maxX = max(X); maxY = max(Y); maxZ = max(Z);
axis([minX maxX minY maxY minZ maxZ]);
% [Xi,Yi] = meshgrid([minX:.31:maxX],[minY:.31:maxY])
[Xi,Yi] = meshgrid([minX:.282:maxX],[minY:.282:maxY])
rotate3d on;
Zi = griddata(X,Y,Z,Xi,Yi);
contour(Xi,Yi,Zi);
My X and Y axis are first two principal coordinates. Can anyone suggest me to figure out the problem? Thank you Ramya
0 个评论
回答(1 个)
Jan
2011-7-11
I do not understand, what the problem is.
"The minima is coming somewhere close to zero while the actual minima is -50.0 kcal/mol."
What is the difference between minima and actual minima ?
I tried to push the landscape done, but of no use.
How did you try to push the landscape down (?) and what exactly does "no use" mean?
Do you want to change the limits of the Z-axis or the Z-values?
PS. Sorry, this is actually a comment to the question. But without formatting it looked too ugly.
2 个评论
Jan
2011-7-11
@Ramya: At least for me the problem is not clear. If you change the Z-axis limits, the appearence of the figure *must* be changed. Is this correct: The data have a minimum of 0 (please check this again by "min(Zi(:))"), but the lower Z-axis-limit is 52? And does "set(AxesHandle, 'ZLim', [0, inf])" (or another suiting upper value) help?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bounding Regions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!