In this article, I demonstrate how to write code to create an X-Y plot or line graph.
在本文中,我演示了如何编写代码来创建X - Y坐标图和线形图。
Once you understand the technique behind an X-Y plot, you should be able to chart out other plotters, like bar and pie.
一旦知道了绘制X - Y坐标图的技术,就应该能够绘制出其他图形,比如条形图和饼图。
And I'm drawing here the X-Y plane. And I'm gonna put, plot all the points that satisfy that first equation.
我在这里画上x - Y坐标平面,画上所有的点满足第一个方程。
Since when we called plot, I gave it only the y-values, it used default values for x.
因为让我们调用plot的时候,我只给了它y的值,所以x的取值是默认的。
By default, the plot command plots against the x and y-axes.
默认情况下,plot命令以x 轴和 y 轴绘图。
At times, a real-life data set may not have all the points — there may be an x-value but the corresponding y-value may be missing for the column you are trying to plot.
有时,真实的数据可能没有包含所有的点——对于要绘图的列,可能有x值,但缺少相应的y值。
y So, for each x and y, I plot a point at height given with the value of the a function.
对每个x和,在高度为函数值的地方描点。
y So, for each x and y, I plot a point at height given with the value of the a function.
对每个x和,在高度为函数值的地方描点。
应用推荐