Logarithmic Zooming Error

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mjava

Logarithmic Zooming Error

Post by mjava » Wed Aug 20, 2003 10:28 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Aug 20, 2003 6:02 pm

Thanks for the report. Can you add it to the bug database at SourceForge?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

aloleary
Posts: 20
Joined: Wed Mar 26, 2003 4:32 pm
Location: Dublin, Ireland

I too have this problem...

Post by aloleary » Mon Jan 05, 2004 3:17 pm

Anyone found a workaround/patch... ?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Jan 06, 2004 10:54 pm

I'm not aware of one at present.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

havfrue
Posts: 29
Joined: Mon Nov 03, 2003 4:49 pm

rubber band zooming fails when axis is logarithmic

Post by havfrue » Wed Mar 31, 2004 12:49 pm

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

david.gilbert
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

Post by david.gilbert » Wed Mar 31, 2004 1:27 pm

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?
It's not something I'm working on right now. I'd like to fix all bugs, but time is limited.
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).
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...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

havfrue
Posts: 29
Joined: Mon Nov 03, 2003 4:49 pm

Is the error in zoom when using logarithmic axes fixed yet?

Post by havfrue » Mon Sep 06, 2004 7:32 am

I just wondered if the zooming error when using logatihmic axes has been fixed. And if so .. in which release?

Guest

Post by Guest » Tue Nov 02, 2004 7:04 pm

A patch is submited by keldon00

http://sourceforge.net/tracker/index.ph ... tid=115494

It seems it's working now.

Locked