Log plot scale

A free public discussion forum for the JFreeChart class library.

Log plot scale

Postby lgarcia3 » Wed Jan 17, 2007 11:35 pm

I have a log-log plot and on my X axis I have a the scale set from 0.001 to 1. Now, I only see these two numbers and nothing else in between. My client would like to see some other markers (0.01, 0.1, etc). How can I make it do that?
Thanks!
lgarcia3
 
Posts: 43
Joined: Thu Jul 21, 2005 4:00 pm

Postby lgarcia3 » Thu Jan 18, 2007 5:16 pm

So, any ideas on how to do this?
Thanks!
lgarcia3
 
Posts: 43
Joined: Thu Jul 21, 2005 4:00 pm

Postby david.gilbert » Thu Jan 18, 2007 5:43 pm

I don't know the LogarithmicAxis class so well, it was contributed by another developer, and seems to be a little quirky. Looking over the code, there's nothing obvious I can suggest.

I wrote an alternative LogAxis class that you could try - it is in the 'experimental' source directory, in the package org.jfree.experimental.chart.axis. I've asked for feedback on this class before, but didn't get much back. So if you do try it, let me know how it goes...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11352
Joined: Fri Mar 14, 2003 10:29 am

Postby lgarcia3 » Thu Jan 18, 2007 5:57 pm

Thanks David! I sure will try that. How do I get to that code/direcory? What is the url? Same for the source code?
Thanks!
lgarcia3
 
Posts: 43
Joined: Thu Jul 21, 2005 4:00 pm

Postby david.gilbert » Thu Jan 18, 2007 6:02 pm

It is included in the JFreeChart download (you'll see the directory 'experimental' in the top level) and also precompiled in the jfreechart-1.0.3-experimental.jar (which is in the 'lib' directory).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11352
Joined: Fri Mar 14, 2003 10:29 am

Postby lgarcia3 » Thu Jan 18, 2007 10:43 pm

I got an out of memory error (heap error). I tried with less data and still the same. I have like 10,000 points. But with the other one it shows up very quickly and without problems.
Thanks!
lgarcia3
 
Posts: 43
Joined: Thu Jul 21, 2005 4:00 pm

Postby uvoigt » Mon Feb 12, 2007 11:08 am

Hi David,

I tried the LogAxisDemo1 demo of jfreechart-1.0.4.
I looks quite well but the zooming does not work as expected. If I try to zoom e.g. the sector 10-100 on x-Axis with the mouse the plot zooms to the range ~850-~2000.

Ulrich
uvoigt
 
Posts: 166
Joined: Mon Aug 23, 2004 10:50 am
Location: Germany

Postby david.gilbert » Mon Feb 12, 2007 2:56 pm

uvoigt wrote:I looks quite well but the zooming does not work as expected. If I try to zoom e.g. the sector 10-100 on x-Axis with the mouse the plot zooms to the range ~850-~2000.


Thanks - I'll take a look at that.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11352
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeChart - General

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 12 guests

cron