标签: matlab plot matlab-figure axis figure
使用此命令select extract(day from dt) as day_in_month, count(*) from generate_series(date '2016-01-01', date '2016-06-01', interval '1' day) as g(dt) group by extract(day from dt) order by 1; ,我们可以设置x轴和y轴的范围。
select extract(day from dt) as day_in_month, count(*) from generate_series(date '2016-01-01', date '2016-06-01', interval '1' day) as g(dt) group by extract(day from dt) order by 1;
是否有任何方法可以缩放一个特定的绘图轴,而另一个设置为自动缩放?
答案 0 :(得分:5)
检查xlim,ylim和zlim是否手动设置每个轴的限制。
xlim
ylim
zlim
例如:
x = 0:0.1:2*pi; y = sin(x); plot(x,y); XMIN = 0; XMAX = pi; xlim([XMIN XMAX]);
这是输出: