Multi-value functions?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
blueser
Posts: 23
Joined: Wed Sep 14, 2005 5:05 pm

Multi-value functions?

Post by blueser » Fri Jul 06, 2007 11:26 pm

Hi all,

this is probably (hopefully! :wink:) a newbie question :)

I need to plot some "multi-value functions", which means that for a given x I might have multiple y values, e.g. f(x) --> {y1, y2,...}.

Is it possible? If so, what's the recommended way to do it?

TIA

Andre

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 » Mon Jul 09, 2007 12:45 pm

ChartFactory.createScatterPlot()?
David Gilbert
JFreeChart Project Leader

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

blueser
Posts: 23
Joined: Wed Sep 14, 2005 5:05 pm

Post by blueser » Mon Jul 09, 2007 4:01 pm

Hi David, thks for the reply. My description of the problem was not accurate, my bad. Actually, I just realized I might have no problem at all :D

ScatterPlot would indeed allow f(x) = {y1, y2, ...}, but that's not really what I need. What I really need is to be able to plot eg. an "alpha-shaped" curve. In other words, x-values need to be able to go back and forth, with arbitrary y-values (repetitions allowed for both x and y values). I just tested and good old plain XYSeries with autoSort = false fits the bill just fine ;) I was really missing something very basic :oops:

Thks again,

Andre

Locked