set de max-min at y-axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
consutes
Posts: 9
Joined: Fri Sep 14, 2007 6:06 pm

set de max-min at y-axis

Post by consutes » Fri Sep 14, 2007 6:10 pm

hi,

I need to set de max-min at y-axis, is that possible??


very thanks.

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Fri Sep 14, 2007 6:37 pm

Code: Select all

public void setRange(double lower, double upper)

consutes
Posts: 9
Joined: Fri Sep 14, 2007 6:06 pm

Post by consutes » Mon Sep 17, 2007 3:04 pm

ok,


but as I indicate that it is the y-axis?and no x-axis?



Thanks.

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Mon Sep 17, 2007 5:14 pm

consutes wrote:but as I indicate that it is the y-axis?and no x-axis?
The setRange method works for any axis whether it is the x-axis, the y-axis, or just an axis object not associated with the chart at all.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

lax4mike
Posts: 6
Joined: Thu Jan 31, 2008 11:53 pm

Post by lax4mike » Mon Feb 04, 2008 9:06 pm

how do you get the axis?

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Mon Feb 04, 2008 9:09 pm

lax4mike wrote:how do you get the axis?

Code: Select all

plot.getDomainAxis();
plot.getRangeAxis();
The JavaDoc is quite helpful in answering these questions.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

Locked