I have a icon in JFreeChart:
BufferedImage torreIcon = null;
try {
torreIcon = ImageIO.read(getClass().getClassLoader().getResource(
"Resources/Imagenes/torre_control_2.png"));
} catch (IOException e) {
e.printStackTrace();
}
}
And I have added this icon to the XYPlot:
XYAnnotation xyannotation = new XYImageAnnotation(0, 1900, torreIcon);
this.xyplot.addAnnotation(xyannotation);
And the result in the chart is:
The problem is when I make zoom in:
I would like that the icon always be next to the x axis, without space, and with the same size of course. Is it possible?


