This API takes the (x,y) starting point and the text. You do this for each of the data points, creating a bar graph with a label below it for each.
您对每个数据点都执行这个操作,为每个数据点创建一个柱状图,其下带有一个标签。
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坐标平面,画上所有的点满足第一个方程。
At the top of the file, I create a version of the ITransform interface that transforms dollar values along the Y-axis and transforms day values along the X-axis into SVG points.
文件的一开始创建了ITransform接口的一个版本,它把美元值沿着y轴、当日价格沿着x轴转化成SVG的点。
OK, as I said, I want equality in the case of points to be, are the x- and y- coordinates the same?
好,正如我所说,我想要这个例子中的,点相等的意思是?
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
y A square it's called X, another square it's called y and now this time I'm doing pointers to int not points to char.
一个叫做x,另外一个叫做,这一次是int型指针,不是char型指针。
应用推荐