We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plot_dot 
**Describe the bug**
plotdot fig size doesn't behave the way I expect, in that when I set `figsize` in an axes that triple a previous one its not triple the size. There also are some minor bugs where the dots seem to be overlapping some

**To Reproduce**
```
samples = stats.beta(2,2).rvs(100)

width = 10
fig, ax = plt.subplots(figsize=(width, 10))
az.plot_dot(samples, ax=ax)
ax.set_title(f"Width: {width}")
ax.set_xlim(0,1)
```

Then try this, but see that figure is not three times the width
```
width = 30
fig, ax = plt.subplots(figsize=(width, 10))
az.plot_dot(samples, ax=ax)
ax.set_title(f"Width: {width}")
ax.set_xlim(0,1)
```

![image](https://user-images.githubusercontent.com/7213793/168452674-b1a38bf9-db25-459e-85b0-cd61348283cd.png)
![image](https://user-images.githubusercontent.com/7213793/168452677-1410fd7b-7208-4045-ac8d-cbc52c0595dd.png)


**Expected behavior**
Figsize from `plt.subplots` is respected

**Additional context**
Arviz '0.12.0'


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `arviz/plots/backends/matplotlib/dotplot.py`
Content:
```
1 """Matplotlib dotplot."""
2 import math
3 import warnings
4 import numpy as np
5 import matplotlib.pyplot as plt
6 from matplotlib import _pylab_helpers
7 
8 from ...plot_utils import _scale_fig_size
9 from . import backend_kwarg_defaults, create_axes_grid, backend_show
10 from ...plot_utils import plot_point_interval
11 from ...dotplot import wilkinson_algorithm, layout_stacks
12 
13 
14 def plot_dot(
15     values,
16     binwidth,
17     dotsize,
18     stackratio,
19     hdi_prob,
20     quartiles,
21     rotated,
22     dotcolor,
23     intervalcolor,
24     markersize,
25     markercolor,
26     marker,
27     figsize,
28     linewidth,
29     point_estimate,
30     nquantiles,
31     point_interval,
32     ax,
33     show,
34     backend_kwargs,
35     plot_kwargs,
36 ):
37     """Matplotlib dotplot."""
38     if backend_kwargs is None:
39         backend_kwargs = {}
40 
41     backend_kwargs = {**backend_kwarg_defaults(), **backend_kwargs}
42 
43     backend_kwargs.setdefault("figsize", figsize)
44     backend_kwargs["squeeze"] = True
45 
46     (figsize, _, _, _, auto_linewidth, auto_markersize) = _scale_fig_size(figsize, None)
47 
48     if plot_kwargs is None:
49         plot_kwargs = {}
50         plot_kwargs.setdefault("color", dotcolor)
51 
52     if linewidth is None:
53         linewidth = auto_linewidth
54 
55     if markersize is None:
56         markersize = auto_markersize
57 
58     if ax is None:
59         fig_manager = _pylab_helpers.Gcf.get_active()
60         if fig_manager is not None:
61             ax = fig_manager.canvas.figure.gca()
62         else:
63             _, ax = create_axes_grid(
64                 1,
65                 backend_kwargs=backend_kwargs,
66             )
67 
68     if point_interval:
69         ax = plot_point_interval(
70             ax,
71             values,
72             point_estimate,
73             hdi_prob,
74             quartiles,
75             linewidth,
76             markersize,
77             markercolor,
78             marker,
79             rotated,
80             intervalcolor,
81             "matplotlib",
82         )
83 
84     if nquantiles > values.shape[0]:
85         warnings.warn(
86             "nquantiles must be less than or equal to the number of data points", UserWarning
87         )
88         nquantiles = values.shape[0]
89     else:
90         qlist = np.linspace(1 / (2 * nquantiles), 1 - 1 / (2 * nquantiles), nquantiles)
91         values = np.quantile(values, qlist)
92 
93     if binwidth is None:
94         binwidth = math.sqrt((values[-1] - values[0] + 1) ** 2 / (2 * nquantiles * np.pi))
95 
96     ## Wilkinson's Algorithm
97     stack_locs, stack_count = wilkinson_algorithm(values, binwidth)
98     x, y = layout_stacks(stack_locs, stack_count, binwidth, stackratio, rotated)
99 
100     for (x_i, y_i) in zip(x, y):
101         dot = plt.Circle((x_i, y_i), dotsize * binwidth / 2, **plot_kwargs)
102         ax.add_patch(dot)
103 
104     if rotated:
105         ax.tick_params(bottom=False, labelbottom=False)
106     else:
107         ax.tick_params(left=False, labelleft=False)
108 
109     ax.set_aspect("equal", adjustable="box")
110     ax.autoscale()
111 
112     if backend_show(show):
113         plt.show()
114 
115     return ax
116
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/arviz/plots/backends/matplotlib/dotplot.py b/arviz/plots/backends/matplotlib/dotplot.py
--- a/arviz/plots/backends/matplotlib/dotplot.py
+++ b/arviz/plots/backends/matplotlib/dotplot.py
@@ -106,7 +106,7 @@
     else:
         ax.tick_params(left=False, labelleft=False)
 
-    ax.set_aspect("equal", adjustable="box")
+    ax.set_aspect("equal", adjustable="datalim")
     ax.autoscale()
 
     if backend_show(show):

{"golden_diff": "diff --git a/arviz/plots/backends/matplotlib/dotplot.py b/arviz/plots/backends/matplotlib/dotplot.py\n--- a/arviz/plots/backends/matplotlib/dotplot.py\n+++ b/arviz/plots/backends/matplotlib/dotplot.py\n@@ -106,7 +106,7 @@\n     else:\n         ax.tick_params(left=False, labelleft=False)\n \n-    ax.set_aspect(\"equal\", adjustable=\"box\")\n+    ax.set_aspect(\"equal\", adjustable=\"datalim\")\n     ax.autoscale()\n \n     if backend_show(show):\n", "issue": "plot_dot \n**Describe the bug**\r\nplotdot fig size doesn't behave the way I expect, in that when I set `figsize` in an axes that triple a previous one its not triple the size. There also are some minor bugs where the dots seem to be overlapping some\r\n\r\n**To Reproduce**\r\n```\r\nsamples = stats.beta(2,2).rvs(100)\r\n\r\nwidth = 10\r\nfig, ax = plt.subplots(figsize=(width, 10))\r\naz.plot_dot(samples, ax=ax)\r\nax.set_title(f\"Width: {width}\")\r\nax.set_xlim(0,1)\r\n```\r\n\r\nThen try this, but see that figure is not three times the width\r\n```\r\nwidth = 30\r\nfig, ax = plt.subplots(figsize=(width, 10))\r\naz.plot_dot(samples, ax=ax)\r\nax.set_title(f\"Width: {width}\")\r\nax.set_xlim(0,1)\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/7213793/168452674-b1a38bf9-db25-459e-85b0-cd61348283cd.png)\r\n![image](https://user-images.githubusercontent.com/7213793/168452677-1410fd7b-7208-4045-ac8d-cbc52c0595dd.png)\r\n\r\n\r\n**Expected behavior**\r\nFigsize from `plt.subplots` is respected\r\n\r\n**Additional context**\r\nArviz '0.12.0'\r\n\n", "before_files": [{"content": "\"\"\"Matplotlib dotplot.\"\"\"\nimport math\nimport warnings\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib import _pylab_helpers\n\nfrom ...plot_utils import _scale_fig_size\nfrom . import backend_kwarg_defaults, create_axes_grid, backend_show\nfrom ...plot_utils import plot_point_interval\nfrom ...dotplot import wilkinson_algorithm, layout_stacks\n\n\ndef plot_dot(\n    values,\n    binwidth,\n    dotsize,\n    stackratio,\n    hdi_prob,\n    quartiles,\n    rotated,\n    dotcolor,\n    intervalcolor,\n    markersize,\n    markercolor,\n    marker,\n    figsize,\n    linewidth,\n    point_estimate,\n    nquantiles,\n    point_interval,\n    ax,\n    show,\n    backend_kwargs,\n    plot_kwargs,\n):\n    \"\"\"Matplotlib dotplot.\"\"\"\n    if backend_kwargs is None:\n        backend_kwargs = {}\n\n    backend_kwargs = {**backend_kwarg_defaults(), **backend_kwargs}\n\n    backend_kwargs.setdefault(\"figsize\", figsize)\n    backend_kwargs[\"squeeze\"] = True\n\n    (figsize, _, _, _, auto_linewidth, auto_markersize) = _scale_fig_size(figsize, None)\n\n    if plot_kwargs is None:\n        plot_kwargs = {}\n        plot_kwargs.setdefault(\"color\", dotcolor)\n\n    if linewidth is None:\n        linewidth = auto_linewidth\n\n    if markersize is None:\n        markersize = auto_markersize\n\n    if ax is None:\n        fig_manager = _pylab_helpers.Gcf.get_active()\n        if fig_manager is not None:\n            ax = fig_manager.canvas.figure.gca()\n        else:\n            _, ax = create_axes_grid(\n                1,\n                backend_kwargs=backend_kwargs,\n            )\n\n    if point_interval:\n        ax = plot_point_interval(\n            ax,\n            values,\n            point_estimate,\n            hdi_prob,\n            quartiles,\n            linewidth,\n            markersize,\n            markercolor,\n            marker,\n            rotated,\n            intervalcolor,\n            \"matplotlib\",\n        )\n\n    if nquantiles > values.shape[0]:\n        warnings.warn(\n            \"nquantiles must be less than or equal to the number of data points\", UserWarning\n        )\n        nquantiles = values.shape[0]\n    else:\n        qlist = np.linspace(1 / (2 * nquantiles), 1 - 1 / (2 * nquantiles), nquantiles)\n        values = np.quantile(values, qlist)\n\n    if binwidth is None:\n        binwidth = math.sqrt((values[-1] - values[0] + 1) ** 2 / (2 * nquantiles * np.pi))\n\n    ## Wilkinson's Algorithm\n    stack_locs, stack_count = wilkinson_algorithm(values, binwidth)\n    x, y = layout_stacks(stack_locs, stack_count, binwidth, stackratio, rotated)\n\n    for (x_i, y_i) in zip(x, y):\n        dot = plt.Circle((x_i, y_i), dotsize * binwidth / 2, **plot_kwargs)\n        ax.add_patch(dot)\n\n    if rotated:\n        ax.tick_params(bottom=False, labelbottom=False)\n    else:\n        ax.tick_params(left=False, labelleft=False)\n\n    ax.set_aspect(\"equal\", adjustable=\"box\")\n    ax.autoscale()\n\n    if backend_show(show):\n        plt.show()\n\n    return ax\n", "path": "arviz/plots/backends/matplotlib/dotplot.py"}], "after_files": [{"content": "\"\"\"Matplotlib dotplot.\"\"\"\nimport math\nimport warnings\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib import _pylab_helpers\n\nfrom ...plot_utils import _scale_fig_size\nfrom . import backend_kwarg_defaults, create_axes_grid, backend_show\nfrom ...plot_utils import plot_point_interval\nfrom ...dotplot import wilkinson_algorithm, layout_stacks\n\n\ndef plot_dot(\n    values,\n    binwidth,\n    dotsize,\n    stackratio,\n    hdi_prob,\n    quartiles,\n    rotated,\n    dotcolor,\n    intervalcolor,\n    markersize,\n    markercolor,\n    marker,\n    figsize,\n    linewidth,\n    point_estimate,\n    nquantiles,\n    point_interval,\n    ax,\n    show,\n    backend_kwargs,\n    plot_kwargs,\n):\n    \"\"\"Matplotlib dotplot.\"\"\"\n    if backend_kwargs is None:\n        backend_kwargs = {}\n\n    backend_kwargs = {**backend_kwarg_defaults(), **backend_kwargs}\n\n    backend_kwargs.setdefault(\"figsize\", figsize)\n    backend_kwargs[\"squeeze\"] = True\n\n    (figsize, _, _, _, auto_linewidth, auto_markersize) = _scale_fig_size(figsize, None)\n\n    if plot_kwargs is None:\n        plot_kwargs = {}\n        plot_kwargs.setdefault(\"color\", dotcolor)\n\n    if linewidth is None:\n        linewidth = auto_linewidth\n\n    if markersize is None:\n        markersize = auto_markersize\n\n    if ax is None:\n        fig_manager = _pylab_helpers.Gcf.get_active()\n        if fig_manager is not None:\n            ax = fig_manager.canvas.figure.gca()\n        else:\n            _, ax = create_axes_grid(\n                1,\n                backend_kwargs=backend_kwargs,\n            )\n\n    if point_interval:\n        ax = plot_point_interval(\n            ax,\n            values,\n            point_estimate,\n            hdi_prob,\n            quartiles,\n            linewidth,\n            markersize,\n            markercolor,\n            marker,\n            rotated,\n            intervalcolor,\n            \"matplotlib\",\n        )\n\n    if nquantiles > values.shape[0]:\n        warnings.warn(\n            \"nquantiles must be less than or equal to the number of data points\", UserWarning\n        )\n        nquantiles = values.shape[0]\n    else:\n        qlist = np.linspace(1 / (2 * nquantiles), 1 - 1 / (2 * nquantiles), nquantiles)\n        values = np.quantile(values, qlist)\n\n    if binwidth is None:\n        binwidth = math.sqrt((values[-1] - values[0] + 1) ** 2 / (2 * nquantiles * np.pi))\n\n    ## Wilkinson's Algorithm\n    stack_locs, stack_count = wilkinson_algorithm(values, binwidth)\n    x, y = layout_stacks(stack_locs, stack_count, binwidth, stackratio, rotated)\n\n    for (x_i, y_i) in zip(x, y):\n        dot = plt.Circle((x_i, y_i), dotsize * binwidth / 2, **plot_kwargs)\n        ax.add_patch(dot)\n\n    if rotated:\n        ax.tick_params(bottom=False, labelbottom=False)\n    else:\n        ax.tick_params(left=False, labelleft=False)\n\n    ax.set_aspect(\"equal\", adjustable=\"datalim\")\n    ax.autoscale()\n\n    if backend_show(show):\n        plt.show()\n\n    return ax\n", "path": "arviz/plots/backends/matplotlib/dotplot.py"}]}