I use for the same purpose a XYPointerAnnotation. It works fine.
An improvement would be to be able to select a background color for the text, and to be able to set a transparency coefficient on this background.
Regards.
Search found 18 matches
- Wed Dec 29, 2010 5:40 pm
- Forum: JFreeChart
- Topic: XYDrawableAnnotation modification
- Replies: 1
- Views: 2432
- Wed Dec 29, 2010 5:17 pm
- Forum: JFreeChart
- Topic: XYDrawableAnnotation modification
- Replies: 1
- Views: 2432
XYDrawableAnnotation modification
I would have been hapy the be able to modify x, y of a XYDrawableAnnotation (and whyn not height and Width). But it is not possible. In my application I can make 3D animation of a mecanical model (function of time). I also have functions depending on the time. The goal is to have a annotation moving...
- Wed Jan 10, 2007 3:54 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
Hello again, the method "setFixedDimension" did not suit my request so I found a solution which was to create a new class over "NumberAxis" to redefine the method "findMaximumTickLabelWidth" (from ValueAxis). This method retruns now a constant value. public class FunctionJFreeNumberAxis extends Numb...
- Wed Jan 10, 2007 12:15 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
Re: Vertical Tick Width
Try org.jfree.chart.plot.CombinedDomainXYPlot. It combines you two plots. You can find some examples for combined plots in the JFreeChart examples. Chris This will probably be the solution for a future version. But no time to do that at the moment. I tried : myXYPlot.getRangeAxis().setFixedDimensio...
- Wed Jan 10, 2007 10:46 am
- Forum: JFreeChart
- Topic: Set the size of a chart
- Replies: 3
- Views: 4141
I had to redefine the height of my chart (that I use in a scrollpanel as well), so I use the following command : protected final static int myHeight2G = 325; myChartPanel.setPreferredSize(new Dimension(ChartPanel.DEFAULT_WIDTH, myHeight2G)); I also modify default min max size to allow bigger chart (...
- Wed Jan 10, 2007 10:24 am
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
Vertical Tick Width
My other problem is to control the vertical tick width in order to align 2 graphics. See picture : http://img206.imageshack.us/my.php?image=gr11jk7.jpg I tried : myXYPlot.getRangeAxis().setFixedDimension(30.); But it doens't give the expected result. What else could I try ? Thanks a lot. Hugues.
- Wed Jan 10, 2007 10:08 am
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
For the next version of my software, I will try this solution : 1. I use an Homemade TickUnits : FunctionJFreeTickUnits DecimalFormat aDf11 = new DecimalFormat("##0.#####E0"); // we can add the units in any order, the TickUnits collection will // sort them... add(new NumberTickUnit(1.e-20, aDf11)); ...
- Fri Jan 05, 2007 5:20 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
A solution seems to be in the pipe (I hope so) with those few lines : NumberFormat aDF = new DecimalFormat("##0.#####E0"); NumberTickUnit aNTU = new NumberTickUnit(10.e-10); NumberAxis aAxis = (NumberAxis) myXYPlot.getRangeAxis(); aAxis.setNumberFormatOverride(aDF); aAxis.setTickUnit(aNTU); I ll hav...
- Wed Jan 03, 2007 2:04 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
- Fri Dec 22, 2006 5:26 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
- Thu Dec 21, 2006 3:16 pm
- Forum: JFreeChart
- Topic: sinusoidal curve mit JFreeChart ???
- Replies: 4
- Views: 4965
this is our java class to store the values. public class FunctionViewerData extends AbstractXYDataset{ private Vector<double[]> myXDataVector; private Vector<double[]> myYDataVector; with methods like : /* * get the number of point in a function */ public int getItemCount(int n){ ... /** * get the i...
- Thu Dec 21, 2006 10:55 am
- Forum: JFreeChart
- Topic: sinusoidal curve mit JFreeChart ???
- Replies: 4
- Views: 4965
- Wed Dec 20, 2006 6:17 pm
- Forum: JFreeChart
- Topic: Axis range limitation + Vertical Tick Width
- Replies: 9
- Views: 11540
Axis range limitation + Vertical Tick Width
Hi, when I want to display small values, I have no information on my curve's range on the Y axis. See images : this one is still OK : 1e-7 * sin(x) http://img470.imageshack.us/my.php?image=jfreelowvalues2gu9.jpg this one is not OK : 1e-8 * sin(x) http://img217.imageshack.us/my.php?image=jfreelowvalu...
- Mon Sep 18, 2006 10:24 am
- Forum: JFreeChart
- Topic: Logarithmic Axis - How can I use exponential numbers
- Replies: 5
- Views: 9091
Re: Logarithmic Axis - How can I use exponential numbers
I also have plots will low values, and with logarithmic axis or not, under 1e-7 I only have ONE value in the axis scale which is a problem.Alfi@leman wrote:Example: 0.00000001 doesn't look good. I would like to see 1.0e-9 or 10-9 or something like that.
Alfi
- Fri Sep 15, 2006 10:18 am
- Forum: JFreeChart
- Topic: behavior of abstractXYDataset
- Replies: 1
- Views: 2580