Re: comparable sizes across BubbleCharts
- To: mathgroup at smc.vnet.net
- Subject: [mg104262] Re: [mg104214] comparable sizes across BubbleCharts
- From: Brett Champion <brettc at wolfram.com>
- Date: Sun, 25 Oct 2009 01:08:16 -0400 (EDT)
- References: <200910240637.CAA07377@smc.vnet.net>
On Oct 24, 2009, at 1:37 AM, mtnMan wrote: > I am trying without success to make sizes of bubbles comparable across > charts created by BubbleChart[]. I think in order to do this, you'll need to know ahead of time the min/ max of all your sizes, and the min/max for each chart. Then you can construct a setting for BubbleSizes that uses a common scale across the charts: small = Table[{i, i, i}, {i, 10}]; smallSizes = small[[All, -1]]; big = Table[{i, i, i + 9}, {i, 10}]; bigSizes = big[[All, -1]]; min = Min[smallSizes, bigSizes]; max = Max[smallSizes, bigSizes]; size = Rescale[#, {min, max}, {0.05, 0.2}] &; BubbleChart[small, BubbleSizes -> {size[Min[smallSizes]], size[Max[smallSizes]]}] BubbleChart[big, BubbleSizes -> {size[Min[bigSizes]], size[Max[bigSizes]]}] > Also, many of the Graphics options > (such as Ticks) do not seem to work with BubbleChart despite claims in > the documentation to the contrary. Advice? This works for me: BubbleChart[RandomReal[1, {10, 3}], Axes -> True, Frame -> False, Ticks -> {Range[0, 1, 0.1], Range[0, 1, 0.05]}] Can you give an example that isn't working? Brett Champion Wolfram Research
- References:
- comparable sizes across BubbleCharts
- From: mtnMan <gary.mcclelland@gmail.com>
- comparable sizes across BubbleCharts