I am using JFreechart to generate some plots, and I found the lines in my plot is blurry, but the demo shows that all the lines are thin and without any blurry, I was wondering if there any to generate good quality plot on a panel.
有了更多信息,我无法解释您问题中所示的渲染和重采样工件。从...开始MinMaxCategoryPlotDemo1.java
in the demo http://www.jfree.org/jfreechart/samples.html,我添加了这一行以获得PNG
显示图像。
ChartUtilities.saveChartAsPNG(new File("temp.png"), jfreechart, 1024, 768);
尤其,
我选择了更大的尺寸,因为通常情况下,像素多比像素少好重采样 https://en.wikipedia.org/wiki/Image_scaling.
I chose PNG https://en.wikipedia.org/wiki/Portable_Network_Graphics,一种无损图像格式,用于MinMaxCategoryRenderer http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/category/MinMaxCategoryRenderer.htmlAPI 图像。
点击放大:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)