散点图:减小散点/x轴刻度之间的间隔 [英] Scatter plot: Decreasing spacing between scatter points/x-axis ticks
问题描述
我目前正在制作一个 2x2 子图.在每个子图中,我在X轴上有3个组.我想减小X轴上每个组之间的间距.目前,221子图的最后一个值与222子图的第一个值非常接近.
I am currently working on a 2x2 subplot figure. In each subplot, I have 3 groups on the X axis. I want to decrease the spacing between each of these groups on the X-axis. Currently, the last value on 221 subplot is very close to the first value of 222 subplot.
我已经更改了子图之间的间距,但是我希望通过减小X轴值之间的间距来使每个子图更加紧凑.X轴上的变量是非数字的.
I have changed the spacing between subplots but I would like each of the subplots to be more compact by decreasing the spacing between the X-axis values. The variable on the X-axis is non-numeric.
推荐答案
为 x 轴分配或使用数值,然后用非数字信息标记 x 轴刻度.然后,您可以使用 x 轴缩放和限制来移动 plot.
Assign or use numeric values to the x axis then label the x axis ticks with the non-numeric information. Then you can play around with x-axis scaling and limits to move the plot around.
这篇关于散点图:减小散点/x轴刻度之间的间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!