简体   繁体   English

八度使打印的对象更小

[英]Octave making plotted objects smaller

Is there a way to make a function I plotted smaller?有没有办法让我绘制的 function 更小? I have to make this smiley face:我必须做出这个笑脸:1

I created something that somewhat looks like the mouth and the eyebrows the only problem is it's too big.我创造了一些看起来有点像嘴巴和眉毛的东西,唯一的问题是它太大了。

2

Is there a way I can make it smaller when plotting?有没有办法在绘图时让它变小? This is my code so far:到目前为止,这是我的代码:

x = 0:0.1:2*pi;
y = sin(x);
v = [x(:) y(:)];
for i = 0:0.0555555556:0.5
  figure(1);
  plot(x, y+i);
  %plot(x + 1.5, y+i);
  hold on;
  grid on;
  axis([-0.5 6.5 -4 4.5], "square");
endfor

Thanks!谢谢!

After some experimenting I found that if I write x/2 in plot it will be smaller.经过一些实验,我发现如果我在 plot 中写 x/2 它会更小。 plot(x/2, y+i);绘图(x/2,y+i); Thanks for your help!谢谢你的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM