java - How to change point size or shape in FastScatterPlot (JFreeChart)? -


i have large collection of 2d coordinates (i.e., in order of 100k 200k x,y pairs) visualize scatter plot. application intended for, having many points makes sense , can't/won't reduce number different reasons. plot in java, use jfreechart. have played around chartfactory.createscatterplot() , 50k randomly generated points, , while gives greatest amount of flexibility set appearance (point size/color/shape), slow displaying many points. means, takes time appear , zooming delayed/not smooth. however, once few points visible, i.e., zoomed in, visualization nicely responsive.

on contrary, fastscatterplot() allows draw 500k randomly generated 2d points appearance not nice managed set color far (using, e.g., setpaint(color.blue)) not shape or size. size problem in particular individual points small.

how can change point size or shape in fastscatterplot?

and related this, there way make chart returned chartfactory.createscatterplot() more responsive?

my data fixed , rendering must principally not change during runtime hence if there ways disconnect listeners or such improve performance, option.

thanks in advance.

for speed, might try alternate fastscatterplot calculation suggested in render() method's source comments; profile compare. size, can change rendered size in same method; following quadruple size of each point.

g2.fillrect(transx, transy, 2, 2); 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -