I have 2 questions
1) I am trying to draw an arc on XYplot using form annotation. I used the XYLine annotation to draw a line, and I want the arc to start where the line ends. I am having some problems with the parameters. I want the arc to have a height of 17, a width of 44, and start at the point (3.0, 17) of the graph (the line ends here). But the code below does not work. Can someone please tell me what is wrong with the code?
Arc2D.Double arc = new Arc2D.Double(3.0, 16.9, 44.0, 17.04, 180.0, 180.0, Arc2D.OPEN ); plot.addAnnotation(new XYShapeAnnotation(arc, new BasicStroke(2.0f), Color.white)); XYLineAnnotation a1 = new XYLineAnnotation(3.0, 0.0, 3.0, 16.9, new BasicStroke(2.0f), Color.white);
2) How can I draw a similar figure on a polar plot?
thanks
annotations draw jfreechart geometric-arc
jpo
source share