Hello!
I'm using JFreeChart Version 0.9.9.11. I've got some problems in zooming when I use logarithmic axes. For demonstation purposes I added zooming to XYLogAxesDemo.java:
. . .
XYPlot plot = chart.getXYPlot();
NumberAxis domainAxis = new NumberAxis("x");
NumberAxis rangeAxis = new LogarithmicAxis("Log(y)");
plot.setDomainAxis(domainAxis);
plot.setRangeAxis(rangeAxis);
chart.setBackgroundPaint(Color.white);
plot.setOutlinePaint(Color.black);
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
setContentPane(chartPanel);
chartPanel.setMouseZoomable(true,false);
....
After dragging a zoomwindow it shows me a wrong area. It seems as the zoom function jumps to a different coordinate than I selected with the zoom window.
I want to know if anyone knows a patch for this problem.
thanks
mjava
Logarithmic Zooming Error
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Thanks for the report. Can you add it to the bug database at SourceForge?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


I too have this problem...
Anyone found a workaround/patch... ?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I'm not aware of one at present.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


rubber band zooming fails when axis is logarithmic
Hi,
This problem still occurs in JFreeChart 0.9.16. (I tried it with a logarithmic axis along y and a linear number axis along x). Will this bug be fixed anytime soon?
I would also like to be able to use rubberband zooming if I move the mouse upwards or to the left - not only when you drag the mouse to the right and downwards. Do you have any plans to implement this (or to change the already implemented code).
Best regards,
Elisabeth
This problem still occurs in JFreeChart 0.9.16. (I tried it with a logarithmic axis along y and a linear number axis along x). Will this bug be fixed anytime soon?
I would also like to be able to use rubberband zooming if I move the mouse upwards or to the left - not only when you drag the mouse to the right and downwards. Do you have any plans to implement this (or to change the already implemented code).
Best regards,
Elisabeth
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: rubber band zooming fails when axis is logarithmic
It's not something I'm working on right now. I'd like to fix all bugs, but time is limited.havfrue wrote:This problem still occurs in JFreeChart 0.9.16. (I tried it with a logarithmic axis along y and a linear number axis along x). Will this bug be fixed anytime soon?
I don't plan to work on this in the near term, mostly for lack of time. I'm pretty sure it wouldn't be a difficult change to make though...havfrue wrote:I would also like to be able to use rubberband zooming if I move the mouse upwards or to the left - not only when you drag the mouse to the right and downwards. Do you have any plans to implement this (or to change the already implemented code).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Is the error in zoom when using logarithmic axes fixed yet?
I just wondered if the zooming error when using logatihmic axes has been fixed. And if so .. in which release?
A patch is submited by keldon00
http://sourceforge.net/tracker/index.ph ... tid=115494
It seems it's working now.
http://sourceforge.net/tracker/index.ph ... tid=115494
It seems it's working now.