Point Symbols/Markers/Shapes

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
andyt
Posts: 4
Joined: Fri Oct 27, 2006 5:58 pm
Contact:

Point Symbols/Markers/Shapes

Post by andyt » Tue Oct 31, 2006 12:56 pm

Hello,

Is there a library of different Point Symbols/Markers/Shapes and an easy way to use them instead of circles in a ScatterPlot? There was some talk of this on another thread some time ago:
http://jfree.org/phpBB2/viewtopic.php?p ... a7db182089

Ideally I would like to use crosses which are mainly transparent as many of the points in the data I am displaying overlap. Using crosses for example should make it clearer as to where all the data is.

Many thanks for your help,

Andy

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 Oct 31, 2006 2:54 pm

The default set of shapes used by JFreeChart is created in the createStandardSeriesShapes() method of the DefaultDrawingSupplier class. The renderer looks these up on an as-needed basis.

You always, of course, have the option of supplying your own shape to the renderer via the setSeriesShape(int, Shape) method - just pass in any Shape instance that is centered on (0, 0).
David Gilbert
JFreeChart Project Leader

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

Locked