# Zoom fit for an aggregated dot plot

**URL:** <https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486>\
**Category:** Questions\
**Tags:** aggregate\
**Created:** [January 26, 2021, 4:33pm UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486 "2021-01-26T16:33:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NatalieV\_MEI](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nataliev_mei/32/860_2.png) [@NatalieV\_MEI](https://cl.desmos.com/u/NatalieV_MEI)\
**Post date:** [January 26, 2021, 4:33pm UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/1 "2021-01-26T16:33:05Z")

</div>

Hi - I am trying to set up a dot plot that aggregates samples means collected from the group. I can make the dot plot work but I can’t get my bounds to automatically change based on the input … and I will need it, particularly on the y axis, for a large group.

Please can someone tell me what I’m doing wrong?  
[My activity](https://teacher.desmos.com/activitybuilder/custom/6010428c204eea0d12f4f5ba)

I tried to base it on [this](https://teacher.desmos.com/activitybuilder/custom/5d59ed0e5b6ec71a06e68e59) activity from Jay - but I have clearly made an error somewhere!

Thank you!  
Natalie

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [January 27, 2021, 12:01am UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/2 "2021-01-27T00:01:22Z")

</div>

I played around with this a little and changed a few things. I don’t know that there was any issues with the original, but when I tested out the changes I made and noticed it didn’t really work with only one data point. I generated a bunch of random data sets and it did seem to work correctly. I know it’s annoying, but I would try running a single session and then typing in a set of numbers using fake student accounts to make sure.

Here’s what I worked on. I commented some of the changes to the graph. Most of them are not needed for your example since you are using aggregate.

> **[\[Copy of\] Aggregating sample means • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6010a78bd0d2944914379330#preview/24e9327f-6b21-4854-8287-823b23017f7f)**
>
> by Craig Winske

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [January 27, 2021, 3:21am UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/3 "2021-01-27T03:21:28Z")

</div>

I usually just # the aggregate code in my CL and use fake data lists. You can make a full list of fake data, but use another list that determines the bounds (I think M was one of her lists) that only uses 1…n, where n could be taken from an input to test if the bounds change. Also a bit hacky, but seems easier than using multiple fake accounts.

```auto
F_{ake}=[2,5,8,3,8,9,11,56]
M=F_{ake}[1...n]

```

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [January 27, 2021, 10:52am UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/4 "2021-01-27T10:52:00Z")

</div>

I didn’t know you could generate numberLists in the CL! I know this wasn’t possible at one point.

I guess I essentially did what you are describing but through the calculator.

Edit: Actually I think you were talking about putting those in the calculator too. I still think you can’t type a numberList into the CL.

---

<div class="post-metadata">

**Author:** ![NatalieV\_MEI](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nataliev_mei/32/860_2.png) [@NatalieV\_MEI](https://cl.desmos.com/u/NatalieV_MEI)\
**Post date:** [January 27, 2021, 11:04am UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/5 "2021-01-27T11:04:34Z")

</div>

Thank you - that is a really great way to check it works!

---

<div class="post-metadata">

**Author:** ![NatalieV\_MEI](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nataliev_mei/32/860_2.png) [@NatalieV\_MEI](https://cl.desmos.com/u/NatalieV_MEI)\
**Post date:** [January 27, 2021, 11:04am UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/6 "2021-01-27T11:04:46Z")

</div>

Thanks so much - this is brilliant!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [January 27, 2021, 6:26pm UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/7 "2021-01-27T18:26:04Z")

</div>

Yes, I meant in the graph. But define n in the CL.

---

<div class="post-metadata">

**Author:** ![nolanfossum](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nolanfossum/32/1792_2.png) [@nolanfossum](https://cl.desmos.com/u/nolanfossum)\
**Post date:** [January 29, 2021, 4:39pm UTC](https://cl.desmos.com/t/zoom-fit-for-an-aggregated-dot-plot/2486/8 "2021-01-29T16:39:42Z")

</div>

Oh man! I learn so many helpful things here after I spend a lot of time doing things inefficiently. Thank you!
