incanter - jFreechart: force to show all tick labels of a Symbolaxis? -
incanter - jFreechart: force to show all tick labels of a Symbolaxis? -
i'm using (clojure's) incanter's heat-map show pivot value of (x, y), x, , y represents products , applications respectively. in terms heat-map utilize xyplot work. utilize symbolaxis show products , applications, on x-axis, , y-axis respectively.
with default setting (auto range of value axis set true), labels on value axis not complete, depends on size of java window, lebels shown, while others omitted. seems rule show one, hid fixed number of labels, show another, repeating,.... maybe, it's save relestate avoid label text collide each other.
but i'd want show labels, enlarge heat-map size in order show them all.
could please teach me how to: 1) forcefulness show labels of symbolaxis, or 2) enlarge heat-map size accomodte tick labels. 3) cut down size of tick laebl's font size save more space more labels.
it seems me jfreechart not have detailed documentation such nuance. not able locate spot of source code figure out yet.
here sample of heat-map:
in diagram attcahed, quarter of labels shown. partial labels, heat-map create much sense.
note: tried setautorange false, it's worse, first row starting bottom shown.
thanks lot help!
1) forcefulness labels display, need modify refreshtickshorizontal() , refreshticksvertical() methods in symbolaxis class (note can click through source code via javadocs, click on method name). within methods, search comment // don't draw tick label
, you'll see code needs changing.
2) jfreechart adapts chart drawing fit size specified externally (either chartpanel gets size swing layout manager, or caller asking jfreechart generate image, svg, pdf etc @ specific size).
3) symbolaxis inherits setticklabelfont() method axis base of operations class, can utilize create labels utilize smaller font.
jfreechart incanter
Comments
Post a Comment