Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JFreeChart如何直接在x轴上打印散点?_Jfreechart_Scatter Plot_Scatter - Fatal编程技术网

JFreeChart如何直接在x轴上打印散点?

JFreeChart如何直接在x轴上打印散点?,jfreechart,scatter-plot,scatter,Jfreechart,Scatter Plot,Scatter,我试着做一个散点图,但数据点并不完全在(2,0)坐标上,而且只有部分可见。 此图显示JFreeChart生成的输出: 但它应该是这样的(用GIMP制作): 有人知道怎么做吗 谢谢你的帮助 对于其他人来说,这是一个解决方案,虽然不能完全让我满意,但可以接受: 有趣的代码行是: plot.setAxisOffset(new RectangleInsets(0, 0, 0, 0)); plot.getRangeAxis().setLowerMargin(0);

我试着做一个散点图,但数据点并不完全在(2,0)坐标上,而且只有部分可见。 此图显示JFreeChart生成的输出:

但它应该是这样的(用GIMP制作):

有人知道怎么做吗


谢谢你的帮助

对于其他人来说,这是一个解决方案,虽然不能完全让我满意,但可以接受:

有趣的代码行是:

plot.setAxisOffset(new RectangleInsets(0, 0, 0, 0));
plot.getRangeAxis().setLowerMargin(0);