|
57 | 57 | " so.Plot(penguins, x=\"sex\", y=\"body_mass_g\", linestyle=\"species\")\n",
|
58 | 58 | " .facet(\"species\")\n",
|
59 | 59 | " .add(so.Line(marker=\"o\"), so.Agg())\n",
|
60 |
| - " .add(so.Range(), so.Est(errorbar=\"pi\"))\n", |
| 60 | + " .add(so.Range(), so.Est(errorbar=\"sd\"))\n", |
61 | 61 | ")"
|
62 | 62 | ]
|
63 | 63 | },
|
|
78 | 78 | "source": [
|
79 | 79 | "(\n",
|
80 | 80 | " penguins\n",
|
81 |
| - " .rename_axis(\"penguin\")\n", |
82 |
| - " .pipe(so.Plot, ymin=\"bill_depth_mm\", ymax=\"bill_length_mm\", x=\"penguin\")\n", |
83 |
| - " .add(so.Range(), color=\"island\", linewidth=\"body_mass_g\")\n", |
84 |
| - " .scale(x=so.Continuous().tick(count=0), linewidth=(.5, 1.5))\n", |
85 |
| - " .facet(row=\"species\", col=\"sex\")\n", |
86 |
| - " .layout(size=(8, 4))\n", |
87 |
| - " .share(x=False)\n", |
88 |
| - " .label(x=\"\", y=\"Size (mm)\")\n", |
| 81 | + " .rename_axis(index=\"penguin\")\n", |
| 82 | + " .pipe(so.Plot, x=\"penguin\", ymin=\"bill_depth_mm\", ymax=\"bill_length_mm\")\n", |
| 83 | + " .add(so.Range(), color=\"island\")\n", |
| 84 | + ")" |
| 85 | + ] |
| 86 | + }, |
| 87 | + { |
| 88 | + "cell_type": "markdown", |
| 89 | + "id": "2191bec6-a02e-48e0-b92c-69c38826049d", |
| 90 | + "metadata": {}, |
| 91 | + "source": [ |
| 92 | + "When `min`/`max` variables are neither computed as part of a transform or explicitly assigned, the range will cover the full extent of the data at each unique observation on the orient axis:" |
| 93 | + ] |
| 94 | + }, |
| 95 | + { |
| 96 | + "cell_type": "code", |
| 97 | + "execution_count": null, |
| 98 | + "id": "63c6352e-4ef5-4cff-940e-35fa5804b2c7", |
| 99 | + "metadata": {}, |
| 100 | + "outputs": [], |
| 101 | + "source": [ |
| 102 | + "(\n", |
| 103 | + " so.Plot(penguins, x=\"sex\", y=\"body_mass_g\")\n", |
| 104 | + " .facet(\"species\")\n", |
| 105 | + " .add(so.Dots(pointsize=6))\n", |
| 106 | + " .add(so.Range(linewidth=2))\n", |
89 | 107 | ")"
|
90 | 108 | ]
|
91 | 109 | },
|
92 | 110 | {
|
93 | 111 | "cell_type": "code",
|
94 | 112 | "execution_count": null,
|
95 |
| - "id": "08751ee7-d0a0-4e70-92b4-c1b38ea28890", |
| 113 | + "id": "c215deb1-e510-4631-b999-737f5f41cae2", |
96 | 114 | "metadata": {},
|
97 | 115 | "outputs": [],
|
98 | 116 | "source": []
|
|
0 commit comments