Mathematica中文论坛-非官方

标题: 豆粑粑 一个图,两个子图,两个colormap [打印本页]

作者: meatball1982    时间: 2016-7-25 23:57
标题: 豆粑粑 一个图,两个子图,两个colormap
两个subplot
两个子图,两个不同的colormap

  1. clear all
  2. clc

  3. [x1,y1,z1]=peaks(30);

  4. [x2,y2,z2]=peaks(40);


  5. h=gcf;
  6. set(h,'position',[1000,100,400,800]);

  7. sp1=subplot(2,1,1)
  8. surf(x1,y1,z1,'edgecolor','none')
  9. colormap(sp1,'cool')

  10. sp2=subplot(2,1,2)
  11. surf(x2,y2,z2,'edgecolor','none')
  12. colormap(sp2,'hot')
复制代码


fig_2sub_plot.jpg (103.22 KB, 下载次数: 930)

fig_2sub_plot.jpg





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2