简体   繁体   English

Excel图表中的刻度轴

[英]Scale axis in Excel chart

I have made a record of some samples at different seconds: 我在不同的时间记录了一些样本:

50  40  36  33  32  30  28  25  22  20  17  15  13  10  7   5

When I create a line chart with markers in Excel, the x-axis is based on these values, but of course they are not normalised in the sense that there is the same distance from 50 to 40 than from 22 to 20. 当我在Excel中创建带有标记的折线图时,x轴基于这些值,但是从50到40的距离与22到20的距离相同的意义上,它们当然没有被标准化。

Is there a way I can draw the line with the markers only at the positions I have recorded and that is properly scaled in the x-axis? 有没有一种方法可以只在已记录的位置并在x轴上正确缩放才能用标记画线? (so from 50 to 40 there is no data in the middle but the line does not go down to "0", it should just link to the value at 40 smoothly. Format Axis does not seem to do anything here) (因此,从50到40,中间没有数据,但该行不会下降到“ 0”,它应该平滑地链接到40处的值。“ Format Axis在这里似乎没有任何作用)

EDIT - see graph 编辑-查看图表

在此处输入图片说明

Example of Scatter with Smooth Lines and Markers: 带有平滑线和标记的散布示例:

SO21739028例子

As the @Jon Peltier has kindly mentioned, prior to this edit I had incorrectly described the above as Scatter with Straight Lines and Markers. 正如@Jon Peltier所提到的那样,在进行此编辑之前,我错误地将上述内容描述为带有直线和标记的散点图。

Jon has also pointed out how this happens to be an example of the potential for smooth lines to be deceptive. 乔恩还指出,这是如何使平滑线条具有欺骗性的例子。 If the vertical scale were percentages then anything over 100 might not be possible, though the 'bump' in the chart would indicate otherwise! 如果垂直标度是百分比,则超过100的任何值都不可能,尽管图表中的“凸点”表示相反!

An alternative with Straight lines is shown below, where 'B' values as displayed have been changed to represent the sum of A and B values, as possibly nearer the OP's requirement: 带有直线的替代方法如下所示,其中显示的“ B”值已更改为代表A和B值的总和 ,可能接近OP的要求:

SO21739028第二个例子

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

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