Re: comparable sizes across BubbleCharts

• To: mathgroup at smc.vnet.net
• Subject: [mg104266] Re: [mg104214] comparable sizes across BubbleCharts
• From: gary mcclelland <gary.mcclelland at gmail.com>
• Date: Sun, 25 Oct 2009 01:09:01 -0400 (EDT)
• References: <200910240637.CAA07377@smc.vnet.net>

```That scaling will work.  thanks!  But I had decided that BubbleChart[]
wasn't doing that much for me, so I generated a Table of my own Disks using
a fixed scaling across different tables.  Then using Graphics to show the
disks gave me a lot of control.

My bad (at least partially) on Ticks and some other things now working.  I
didn't realize that BubbleChart was giving me a frame instead of axes and
that I needed to turn Frame off or use FrameTicks.  in any case, everything
works now.

thanks!

gary

On Sat, Oct 24, 2009 at 11:37 AM, Brett Champion <brettc at wolfram.com> wrote:

> 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
>

```

• Prev by Date: Re: Re: Mathematica7 doesn't copy/paste metafile in vector format
• Next by Date: Summing all the elements along a dimension in a matrix
• Previous by thread: Re: comparable sizes across BubbleCharts
• Next by thread: Re: comparable sizes across BubbleCharts