From f5a03cef4f725a6d3ce52fb7a565fedb1c05d60a Mon Sep 17 00:00:00 2001 From: has2k1 Date: Tue, 9 Jan 2024 07:18:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20has2k1/p?= =?UTF-8?q?lotnine@32f491a507d6940ef499f41391aa41cc928e4e96=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/PlotnineAnimation.out.ipynb | 6 ++-- examples/aes.out.ipynb | 6 ++-- examples/after_scale.out.ipynb | 10 +++---- examples/after_stat.out.ipynb | 12 ++++---- examples/facet_grid.out.ipynb | 22 +++++++-------- examples/facet_wrap.out.ipynb | 20 +++++++------- examples/geom_abline.out.ipynb | 14 +++++----- examples/geom_bar.out.ipynb | 4 +-- examples/geom_boxplot.out.ipynb | 10 +++---- examples/geom_col.out.ipynb | 16 +++++------ examples/geom_count.out.ipynb | 6 ++-- examples/geom_density.out.ipynb | 26 ++++++++--------- examples/geom_histogram.out.ipynb | 36 ++++++++++++------------ examples/geom_hline.out.ipynb | 14 +++++----- examples/geom_line.out.ipynb | 10 +++---- examples/geom_map.out.ipynb | 8 +++--- examples/geom_path.out.ipynb | 14 +++++----- examples/geom_point.out.ipynb | 8 +++--- examples/geom_segment.out.ipynb | 26 ++++++++--------- examples/geom_smooth.out.ipynb | 10 +++---- examples/geom_step.out.ipynb | 10 +++---- examples/geom_tile.out.ipynb | 40 +++++++++++++-------------- examples/geom_violin.out.ipynb | 20 +++++++------- examples/geom_vline.out.ipynb | 12 ++++---- examples/scale_x_continuous.out.ipynb | 10 +++---- examples/stage.out.ipynb | 14 +++++----- examples/theme.out.ipynb | 28 +++++++++---------- index.html | 2 +- 28 files changed, 207 insertions(+), 207 deletions(-) diff --git a/examples/PlotnineAnimation.out.ipynb b/examples/PlotnineAnimation.out.ipynb index 02275a080..7261e009a 100644 --- a/examples/PlotnineAnimation.out.ipynb +++ b/examples/PlotnineAnimation.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Spiral Animation \\###" ], - "id": "e12153c0-865c-47ce-8685-3177b2a6c6d5" + "id": "2306b24a-f376-4053-ae59-e862964fe81d" }, { "cell_type": "code", @@ -55,7 +55,7 @@ "with the same limits for each aesthetic, including the `x` and `y`\n", "aesthetics." ], - "id": "82a22612-a21c-4ee3-b5f0-a85488c7242a" + "id": "50053764-8588-4888-80c9-404110d60c12" }, { "cell_type": "code", @@ -2999,7 +2999,7 @@ "source": [ "The final image of the spiral" ], - "id": "c5b94394-ec74-462b-b331-0803d317e0e4" + "id": "1b582bfe-3c84-450d-b7bd-24ee4c245376" }, { "cell_type": "code", diff --git a/examples/aes.out.ipynb b/examples/aes.out.ipynb index 530f6ce65..897799eca 100644 --- a/examples/aes.out.ipynb +++ b/examples/aes.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# aes" ], - "id": "9f94b817-bf7d-4691-a4e2-17c5defc5da5" + "id": "92b524dd-fe74-4e4a-849e-0f73f161cfc2" }, { "cell_type": "code", @@ -40,7 +40,7 @@ "\n", "Mapping variables to the visual properties of a plot." ], - "id": "68ce4dbd-8d4f-435c-9c57-1b2f884e1241" + "id": "a7b9b360-fa36-4f58-8e38-822640b9a6d0" }, { "cell_type": "code", @@ -135,7 +135,7 @@ "The first two positional arguments are `x` and `y` aesthetics. Any other\n", "aesthetic must be mapped with a keyword argument." ], - "id": "49390c7a-2b87-4c90-944e-ca56a7b0f888" + "id": "0bcc1d5c-8bc6-410b-8f14-c2c4221cfadb" }, { "cell_type": "code", diff --git a/examples/after_scale.out.ipynb b/examples/after_scale.out.ipynb index e81afee6a..cc01de8d2 100644 --- a/examples/after_scale.out.ipynb +++ b/examples/after_scale.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# after_scale" ], - "id": "440f4000-24b0-4bc0-8ff5-eb9a757a28f8" + "id": "a6a4dab1-f4ed-49db-a2b0-eb2f7e2eeea3" }, { "cell_type": "code", @@ -46,7 +46,7 @@ "\n", "Start off with a mapping to the `color`." ], - "id": "6237e6d9-121f-42f7-8e51-cbe268c3b832" + "id": "b1386314-a6e1-4911-92af-c779c0fbf77e" }, { "cell_type": "code", @@ -85,7 +85,7 @@ "source": [ "We can match the `color` with the `fill`." ], - "id": "031c5321-9ed8-4980-b2ca-640215ec3f03" + "id": "31e5447b-5125-4845-a9e1-8a7fb299adb7" }, { "cell_type": "code", @@ -122,7 +122,7 @@ "modify the `color` by adding to it an alpha channel i.e. `'#AABBCC'` to\n", "`'#AABBCC66'`." ], - "id": "e0542f77-881e-400d-a436-f41513cc995d" + "id": "6d36ceb8-4555-4493-aeb5-3686ab5552ea" }, { "cell_type": "code", @@ -162,7 +162,7 @@ "\n", "With a fitting theme." ], - "id": "b97679a3-9ac9-4078-8737-e3a3cc0ba938" + "id": "d72dfec0-f3ab-425f-996c-0aa371d5cb0a" }, { "cell_type": "code", diff --git a/examples/after_stat.out.ipynb b/examples/after_stat.out.ipynb index 2cdf4f4a1..07687f1a8 100644 --- a/examples/after_stat.out.ipynb +++ b/examples/after_stat.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# after_stat" ], - "id": "e0b9367f-e10b-4c06-8eab-881ccda90c45" + "id": "49afedfb-5c8c-4435-9c02-06173f0cbabb" }, { "cell_type": "code", @@ -43,7 +43,7 @@ "`geom_bar` uses `stat_count` which by default maps the `y` aesthetic to\n", "the `count` which is the number of observations at a position." ], - "id": "e934f8ea-76fa-4402-a8dd-6029504235db" + "id": "a5f02c14-063a-404c-ba9e-b694058293aa" }, { "cell_type": "code", @@ -83,7 +83,7 @@ "Using the `after_stat` function, we can instead map to the `prop` which\n", "is the ratio of points in the panel at a position." ], - "id": "f5b8a26a-484c-47a9-b430-a95eb6a67706" + "id": "ac7923db-d886-4b3a-b540-8fd0c032cada" }, { "cell_type": "code", @@ -119,7 +119,7 @@ "With `after_stat` you can used the variables calculated by the stat in\n", "expressions. For example we use the `count` to calculated the `prop`." ], - "id": "bf59de84-1032-4ff4-bac8-c5936e04f995" + "id": "a1cab0cd-02b1-482d-864e-070aa045d980" }, { "cell_type": "code", @@ -162,7 +162,7 @@ "For example, below `fill='var1'` has no effect, but the `var1` variable\n", "has not been lost it has been turned into `x` aesthetic." ], - "id": "1f401e60-dd20-461b-b201-843aaf8a237d" + "id": "a98e0f6b-6f08-4290-9b5a-cfdaae4e2a94" }, { "cell_type": "code", @@ -198,7 +198,7 @@ "We use `after_stat` to map `fill` to the `x` aesthetic after it has been\n", "computed." ], - "id": "9d590afb-8940-4821-b140-a4c590771401" + "id": "60fe34b7-6f65-456b-a061-7d30ca29512e" }, { "cell_type": "code", diff --git a/examples/facet_grid.out.ipynb b/examples/facet_grid.out.ipynb index 604c939cc..d5f55614b 100644 --- a/examples/facet_grid.out.ipynb +++ b/examples/facet_grid.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Facet grid" ], - "id": "bfc4c9f0-f835-47a5-85ba-f87dc39bae14" + "id": "65ecdd7b-dec2-4e2c-8427-aded752fe221" }, { "cell_type": "code", @@ -46,7 +46,7 @@ "columns of the grid are set by the faceting variables. It is useful for\n", "visualising two discrete variables." ], - "id": "3ca3b4c8-3f11-470a-a046-36f4434bea3b" + "id": "c73aabe1-cca3-44b0-aedf-6893cb03f519" }, { "cell_type": "code", @@ -82,7 +82,7 @@ "source": [ "Basic scatter plot:" ], - "id": "61a6754b-cd84-4739-b9ea-5ea08d1f1b84" + "id": "1c2987a2-aa5f-49be-9ad0-4bcae97d6af2" }, { "cell_type": "code", @@ -119,7 +119,7 @@ "source": [ "Facet a discrete variable into rows:" ], - "id": "7d028939-f6c5-40a7-887b-63b5e15060b0" + "id": "c6693f92-cc16-4923-8f7b-a9dcebceb850" }, { "cell_type": "code", @@ -157,7 +157,7 @@ "source": [ "Facet a discrete variable into columns:" ], - "id": "27d441ab-6a5f-421d-8f49-07909b00961e" + "id": "c2ea4c8b-adf2-4bed-bd38-338020e58fbd" }, { "cell_type": "code", @@ -195,7 +195,7 @@ "source": [ "Facet two discrete variables into rows and columns:" ], - "id": "2577b7f9-43c4-4e02-a3f0-29c9a106f6ec" + "id": "c2a68de6-f297-4731-8fe5-7e350e4f56b4" }, { "cell_type": "code", @@ -234,7 +234,7 @@ "To change the plot order of the rows or columns in the facet grid,\n", "reorder the levels of the faceting variable in the data." ], - "id": "1b4f1096-131b-4f9e-b336-8aad1330061e" + "id": "3068b2c8-c3bf-4f56-9b9b-118ab5c2903f" }, { "cell_type": "code", @@ -292,7 +292,7 @@ "You can choose if the scale of x- and y-axes are fixed or variable by\n", "using the `scales` argument within the `facet_grid()` command:" ], - "id": "7f0741dd-9c15-4a65-9ac7-80b816b9ec96" + "id": "371ecac3-774b-42c0-ae38-a3893a18a55e" }, { "cell_type": "code", @@ -332,7 +332,7 @@ "`labeller` argument within the `facet_grid()` command. Below we use\n", "`labeller = 'label_both'` to include the column name in the facet label." ], - "id": "c4e2d677-b76b-4d76-976e-6efbae6bedce" + "id": "ab6ba9a6-7df8-42d2-98ec-d7574be56c55" }, { "cell_type": "code", @@ -370,7 +370,7 @@ "source": [ "You can add two discrete variables to a facet:" ], - "id": "ebb86507-856e-45e1-abce-78b1cae093df" + "id": "6c155ebe-7b3d-44a9-b85d-74478c95daaf" }, { "cell_type": "code", @@ -469,7 +469,7 @@ "You can also change the colour of the strip by specifying `color` in\n", "`element_text()` ." ], - "id": "dc645b5f-51f8-419e-a9e5-17599c3483ea" + "id": "650d916a-8dff-4292-9f2c-35fd6520022b" }, { "cell_type": "code", diff --git a/examples/facet_wrap.out.ipynb b/examples/facet_wrap.out.ipynb index 73fcf32ab..4a31f0d67 100644 --- a/examples/facet_wrap.out.ipynb +++ b/examples/facet_wrap.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Facet wrap" ], - "id": "740741de-9c4a-4cf2-b76c-3a5d3c02e7db" + "id": "f414e5da-15d5-43b4-8f58-299cd5e348fe" }, { "cell_type": "code", @@ -46,7 +46,7 @@ "is differentiated by the faceting variable. These plots are wrapped into\n", "a certain number of columns or rows as specified by the user." ], - "id": "5a734b9f-aa61-48a2-b0f2-e3a9ee1a9ace" + "id": "9e374ac6-4134-4a03-98b4-f68f46e914ad" }, { "cell_type": "code", @@ -82,7 +82,7 @@ "source": [ "Basic scatter plot:" ], - "id": "98b42f75-c52f-4f33-82e3-ebfd6c3b863a" + "id": "2597678c-2802-419f-b5ff-2b97bea1dd3c" }, { "cell_type": "code", @@ -119,7 +119,7 @@ "source": [ "Facet a discrete variable using `facet_wrap()`:" ], - "id": "0e706a9e-8d22-4472-a5e6-66571f15255a" + "id": "48075c12-c31d-4898-8866-fc3883437460" }, { "cell_type": "code", @@ -158,7 +158,7 @@ "Control the number of rows and columns with the options `nrow` and\n", "`ncol`:" ], - "id": "bfa8ac35-a8a0-4bea-9d8f-ab9effadbe0b" + "id": "22dacbef-a39e-4afa-a051-7f52edfc50f3" }, { "cell_type": "code", @@ -234,7 +234,7 @@ "To change the plot order of the facets, reorder the levels of the\n", "faceting variable in the data." ], - "id": "3fba7c31-b7c8-4dbb-8a02-0aed3ffa92c8" + "id": "7532eec1-2c33-4b2e-9522-df5c71d24734" }, { "cell_type": "code", @@ -293,7 +293,7 @@ "to bottom). However if you would prefer a vertical layout (facets are\n", "arranged top-to-bottom, from left to right) use the `dir` option:" ], - "id": "41becb59-f5f2-4788-b3c1-512f38406009" + "id": "789e0deb-a35b-4015-97c1-7d8751e50725" }, { "cell_type": "code", @@ -340,7 +340,7 @@ "\n", "A fixed scale is the default and does not need to be specified." ], - "id": "7ddb8fbf-3a65-474d-941e-23d82634e7ef" + "id": "75cdb512-b2e3-461e-a64f-6ca6218bb08e" }, { "cell_type": "code", @@ -384,7 +384,7 @@ "`labeller` argument within the `facet_wrap()` command. Below we use\n", "`labeller = 'label_both'` to include the column name in the facet label." ], - "id": "a35f661a-648b-4c1b-b4ec-4a21c67684b5" + "id": "49201081-55d2-49f0-a2d4-45b1f5aa551c" }, { "cell_type": "code", @@ -423,7 +423,7 @@ "source": [ "You can add two discrete variables to a facet:" ], - "id": "f9a6368b-d339-429d-ba63-184f2d3fbda6" + "id": "9120dc05-271c-4733-9882-aedfae4f75aa" }, { "cell_type": "code", diff --git a/examples/geom_abline.out.ipynb b/examples/geom_abline.out.ipynb index 2fc7ec6ff..50a2f7136 100644 --- a/examples/geom_abline.out.ipynb +++ b/examples/geom_abline.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# AB line" ], - "id": "4597a3a5-8d20-48ee-bd3a-7ce75c3d5799" + "id": "f8e2fec2-c3e6-4b46-bba0-324b2aab92eb" }, { "cell_type": "code", @@ -45,7 +45,7 @@ "`geom_abline()` draws a line when the yintercept and gradient is\n", "supplied, and is useful as a guide." ], - "id": "db7520e5-f4b0-4687-8e06-01d2708c061d" + "id": "40eb772e-de29-468f-a513-f8ed23fd3d7e" }, { "cell_type": "code", @@ -83,7 +83,7 @@ "It’s useful to use `geom_abline()` with some data, so we start with a\n", "basic scatter plot:" ], - "id": "7dd91369-a848-49a1-baf0-461586c13f72" + "id": "cab96036-e130-4faf-8c82-83b3517246d9" }, { "cell_type": "code", @@ -122,7 +122,7 @@ "`geom_abline()` requires inputs for the slope (default slope is 1) and\n", "y-intercept (default value is \\[0,0\\])." ], - "id": "de768834-2f97-4b50-af2f-c53102f8e886" + "id": "a3be5e93-387f-4b3d-9ccb-4dab09e8f8dc" }, { "cell_type": "code", @@ -162,7 +162,7 @@ "source": [ "You can plot two lines on one plot:" ], - "id": "5e2abda4-5fea-4c6c-9e9a-e522ffda456a" + "id": "a7225fac-d5d3-4001-864a-1a2f7d69f160" }, { "cell_type": "code", @@ -202,7 +202,7 @@ "source": [ "You can change the look of the line:" ], - "id": "dcf3e29e-c1cc-4872-aa20-a0b6f30c8a2e" + "id": "0f00f5b5-2cf2-4d1a-9aad-e40a57c81be4" }, { "cell_type": "code", @@ -245,7 +245,7 @@ "source": [ "`geom_abline()` can be used with a facet plot:" ], - "id": "99614570-c830-4a98-936a-9874fedf3680" + "id": "4cc6241c-668b-4c5d-a021-cd9d8a964cdd" }, { "cell_type": "code", diff --git a/examples/geom_bar.out.ipynb b/examples/geom_bar.out.ipynb index 6c87df3f9..c8a644a3c 100644 --- a/examples/geom_bar.out.ipynb +++ b/examples/geom_bar.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Bar chart" ], - "id": "56259cbd-767b-4737-a7db-0d7c7a69e60d" + "id": "517128d4-b1fa-411e-9ef7-b8cd533a719c" }, { "cell_type": "code", @@ -44,7 +44,7 @@ "*geom_bar() makes the height of the bar proportional to the number of\n", "cases in each group*" ], - "id": "75a5ee5a-826c-494b-b954-29667fa5b563" + "id": "266505b1-3f78-45bc-9c46-19378ad16622" }, { "cell_type": "code", diff --git a/examples/geom_boxplot.out.ipynb b/examples/geom_boxplot.out.ipynb index 928c6c12a..aad0a8a26 100644 --- a/examples/geom_boxplot.out.ipynb +++ b/examples/geom_boxplot.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# A box and whiskers plot" ], - "id": "a8eaac7b-a6b6-41d1-9418-a7b597646817" + "id": "6449453a-987e-4f43-8378-652d3a6d465a" }, { "cell_type": "code", @@ -48,7 +48,7 @@ "[ggplot2\n", "docs](https://ggplot2.tidyverse.org/reference/geom_boxplot.html)" ], - "id": "fc40db79-c26e-4b34-8b38-dee627f65ff0" + "id": "b6e1430a-63b9-43a7-9f73-dbfe1dd623aa" }, { "cell_type": "code", @@ -85,7 +85,7 @@ "source": [ "Basic boxplot" ], - "id": "eea2a8cb-1562-4d27-aa00-a25753d3a376" + "id": "412d52cf-0a12-47b1-8530-6faf324588c3" }, { "cell_type": "code", @@ -148,7 +148,7 @@ "source": [ "Horizontal boxplot" ], - "id": "88c06411-0101-4c00-8bfc-fea112a82c24" + "id": "2b4a08dc-0747-44c6-a5f0-854aec1beadd" }, { "cell_type": "code", @@ -190,7 +190,7 @@ "source": [ "Boxplot with jittered points:" ], - "id": "bfab1350-143a-493a-9b3b-b09abce011af" + "id": "83da82e1-33cb-41fc-a104-e8dbf5eb3a1d" }, { "cell_type": "code", diff --git a/examples/geom_col.out.ipynb b/examples/geom_col.out.ipynb index d61ee202b..4b589816a 100644 --- a/examples/geom_col.out.ipynb +++ b/examples/geom_col.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Two Variable Bar Plot" ], - "id": "8ec46c23-3725-4bfe-915c-dd1fc49ed81d" + "id": "218f8ee5-6ea7-456b-ba85-135595e186c6" }, { "cell_type": "code", @@ -51,7 +51,7 @@ "\n", "Create the data" ], - "id": "e4d60b12-c858-44ec-8e3b-5d1e9f24b693" + "id": "4c6a6b90-4bea-443c-aea4-f1e8167358d5" }, { "cell_type": "code", @@ -100,7 +100,7 @@ "First we make a simple plot with all this information and see what to\n", "draw from it." ], - "id": "dbe9ba06-b981-4bf6-ace4-feced989155c" + "id": "a218058e-1599-489f-87b2-35622299e56a" }, { "cell_type": "code", @@ -137,7 +137,7 @@ "the difference within and without the groups is not clear. The solution\n", "is to `dodge` the bars." ], - "id": "ad96234c-3eec-473e-86ec-cb04be62f91a" + "id": "539f324d-930c-41eb-9bf0-e2b6e7848025" }, { "cell_type": "code", @@ -183,7 +183,7 @@ "make space or it would get clipped. Therefore we adjust the bottom `y`\n", "limits." ], - "id": "c30b095a-a45b-4e3c-a612-ce4979d42b7b" + "id": "843c0001-ea94-4772-9ed5-141771c62a7b" }, { "cell_type": "code", @@ -224,7 +224,7 @@ "source": [ "Would it look too crowded if we add value labels on top of the bars?" ], - "id": "6495bad3-c5c1-4341-be40-bef336aa3cf4" + "id": "3b84b238-2447-4366-ba57-49cbc1bf94be" }, { "cell_type": "code", @@ -272,7 +272,7 @@ "y-axis, clear out the panel and make the `variable` and `category`\n", "labels have the same color." ], - "id": "d1d2831d-8bc2-4e1c-ba50-76ba892517fe" + "id": "2ffd3aed-0d8e-4d0b-bdb3-593f8408b72b" }, { "cell_type": "code", @@ -331,7 +331,7 @@ "forgot/misplaced the link to the source. The user considered it a minor\n", "coup." ], - "id": "0edf1812-a8cd-4c55-8e4d-69dae2886d6f" + "id": "0386d092-0884-43e9-95cf-140ddc53a3da" } ], "nbformat": 4, diff --git a/examples/geom_count.out.ipynb b/examples/geom_count.out.ipynb index 419e655a4..49d303ee8 100644 --- a/examples/geom_count.out.ipynb +++ b/examples/geom_count.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Categorized Data Plot" ], - "id": "09629f14-6169-4c32-a667-30ca61dad8f0" + "id": "519e6aff-b633-4d85-b3d6-3153c1aa1291" }, { "cell_type": "code", @@ -43,7 +43,7 @@ "*geom_count() makes the point size proportional to the number of points\n", "at a location*" ], - "id": "ed986547-c8b8-4024-81f4-70f94f8e6b82" + "id": "d4d738ce-b2d5-4942-ad22-e70d69f2c559" }, { "cell_type": "code", @@ -105,7 +105,7 @@ "source": [ "We can adjust the size range of the points with `scale_size_continuous`" ], - "id": "5038fd79-b6a1-4072-814b-1df39d14b8ba" + "id": "0467ec48-056e-40e9-8713-64b5b4d485d5" }, { "cell_type": "code", diff --git a/examples/geom_density.out.ipynb b/examples/geom_density.out.ipynb index 0e688f2cb..d417ebb2d 100644 --- a/examples/geom_density.out.ipynb +++ b/examples/geom_density.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Density Plot" ], - "id": "648337e6-1ffd-446b-8e54-a243cd584b54" + "id": "6fe3205f-dfd0-46a9-a365-844555b9cc42" }, { "cell_type": "code", @@ -46,7 +46,7 @@ "source": [ "### Density Plot" ], - "id": "15373878-81b7-4fc4-b30f-5d23e3135409" + "id": "2b34c751-2ac5-475a-8c2f-9a7242e5f2bd" }, { "cell_type": "code", @@ -82,7 +82,7 @@ "source": [ "The defaults are not exactly beautiful, but still quite clear." ], - "id": "8ff661b8-cc40-4327-85bb-3a2045d95810" + "id": "b3c9b781-4570-4026-9af0-97c2b83d18fa" }, { "cell_type": "code", @@ -119,7 +119,7 @@ "plotted as an independent PDF summing to 1, the relative size of each\n", "group will be normalized." ], - "id": "a8adeb99-ceb0-4e34-bab6-bb69f8453b69" + "id": "575419da-7b17-4b05-b95f-4c42b2f46010" }, { "cell_type": "code", @@ -155,7 +155,7 @@ "To plot multiple groups and scale them by their relative size, you can\n", "map the `y` aesthetic to `'count'` (calculated by `stat_density`)." ], - "id": "a42dc789-6f28-4572-84fd-f7daa86a7ed3" + "id": "a0ccacbc-d3cd-4d67-a48e-f7daac080e7d" }, { "cell_type": "code", @@ -205,7 +205,7 @@ "1 unit wide i.e. `binwidth=1`. The `count * binwidth` curve matches the\n", "scale of `count`s for the histogram for a give `binwidth`." ], - "id": "23f2ee73-7d12-49c5-88ad-f988e0a147d8" + "id": "e6c39c83-39bf-4d2d-a8f5-18dbb49c293b" }, { "cell_type": "code", @@ -252,7 +252,7 @@ "\n", "Create some data and plot the density" ], - "id": "c1892441-e782-4768-8eb2-49d9b26e1dbf" + "id": "fe79a991-f33d-4362-a523-177f963eb986" }, { "cell_type": "code", @@ -291,7 +291,7 @@ "Suppose we want to mark a region as special e.g. `(40, 60)`, we can use\n", "vertical lines to `annotate` it." ], - "id": "bf0c0a00-f3b5-431d-aee6-065a19e61286" + "id": "c60af4c5-f5b2-4301-80ec-915d88afbbc1" }, { "cell_type": "code", @@ -330,7 +330,7 @@ "To make it standout more we can highlight. To do that, the first thought\n", "is to use a rectangle." ], - "id": "cf1a1d16-8fe9-4d81-b3bc-0f68fc2cf12e" + "id": "9162d7ec-c0e2-4ff1-9f72-5c7326384f99" }, { "cell_type": "code", @@ -379,7 +379,7 @@ "method. First, we override but do nothing, we only inspect the data to\n", "see what we have to work with." ], - "id": "bbcf1bd4-97e9-424d-b9d0-b91930f0cce6" + "id": "c001a54f-9fe1-472d-88cd-2392b7e09d59" }, { "cell_type": "code", @@ -462,7 +462,7 @@ "that we can limit the rows to those where `x` column is within our\n", "region." ], - "id": "6bab7551-cbd9-4687-a1fa-ac03b7e9cc04" + "id": "f4656935-99d0-4043-8e93-7ec70a916e62" }, { "cell_type": "code", @@ -515,7 +515,7 @@ "source": [ "That is it, but we can make it look better." ], - "id": "297a8d4e-ae5c-4688-918b-7c956478b926" + "id": "30370ec7-c97f-49a7-bedc-5ee73f38aafb" }, { "cell_type": "code", @@ -573,7 +573,7 @@ "[question](https://github.com/has2k1/plotnine/issues/574) from github\n", "user [Rishika-Ravindran](https://github.com/Rishika-Ravindran)." ], - "id": "c0c860e9-d557-4466-b88f-6c2aeabc695a" + "id": "b11428b2-a32f-4c5a-abe4-9212bbe6aa35" } ], "nbformat": 4, diff --git a/examples/geom_histogram.out.ipynb b/examples/geom_histogram.out.ipynb index 3ccc3eae3..e233134a4 100644 --- a/examples/geom_histogram.out.ipynb +++ b/examples/geom_histogram.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Histograms" ], - "id": "949cb123-db59-4884-a3be-c0be6d756de1" + "id": "ddb1fc50-8989-45b0-be0c-af00529712ed" }, { "cell_type": "code", @@ -61,7 +61,7 @@ "Distributions can be visualised as: \\* count, \\* normalised count, \\*\n", "density, \\* normalised density, \\* scaled density as a percentage." ], - "id": "5e9aa52d-3150-4d15-b958-9cae0802d5fe" + "id": "68084492-7888-4124-baa7-5bb760173d1d" }, { "cell_type": "code", @@ -98,7 +98,7 @@ "If you create a basic histogram, you will be prompted to define the\n", "binwidth or number of bins." ], - "id": "f8fbf2e2-cd28-4a42-be96-20e8ff00be9e" + "id": "2c8e9ac9-a70c-4b35-ac48-f6e11e019691" }, { "cell_type": "code", @@ -142,7 +142,7 @@ "You can define the width of the bins, by specifying the `binwidth`\n", "inside `geom_histogram()`." ], - "id": "58bd07b3-03a5-44cb-8e4d-fe0bae9f6eef" + "id": "28bade8a-9137-4c99-823d-854538896de1" }, { "cell_type": "code", @@ -181,7 +181,7 @@ "can’t see them all because some of the bins are too small to be\n", "noticeable." ], - "id": "6f9d28d1-3ddf-4087-8d28-5d848c424bad" + "id": "147d1897-3fc2-4ef5-8ba1-d31e955ea856" }, { "cell_type": "code", @@ -219,7 +219,7 @@ "this using the `y` argument within `aes()`. In the example below I’m\n", "using the default setting: raw count with `after_stat('count')`." ], - "id": "17cff2e3-ffcd-4a84-983e-892303aea544" + "id": "11240fb5-6e02-43d5-b207-e7f3346defc8" }, { "cell_type": "code", @@ -257,7 +257,7 @@ "source": [ "You can normalise the raw count to 1 by using `after_stat('ncount')`:" ], - "id": "ea302b2a-5658-4093-88da-bcd8f482d7f3" + "id": "5ade2d87-5915-4529-b23f-134f4f5a85d4" }, { "cell_type": "code", @@ -296,7 +296,7 @@ "You can display the density of points in a bin, (this is scaled to\n", "integrate to 1) by using `after_stat('density')`:" ], - "id": "21578326-0f43-4980-b584-67da2ae7d819" + "id": "0ec6d7e5-7de6-4b40-ae98-0277de2ef8e9" }, { "cell_type": "code", @@ -335,7 +335,7 @@ "The proportion of bins can be shown, in the example below the `bin=0.5`\n", "accounts for about ~55% of the data:" ], - "id": "ebad1900-d4a3-46eb-be7b-e90385b17c1d" + "id": "02174a41-db6e-4b8e-9240-1e78b35df5d7" }, { "cell_type": "code", @@ -374,7 +374,7 @@ "We can also display counts as percentages by using the\n", "`percent_format()` which requires the `mizani.formatters` library:" ], - "id": "7a1d6313-8ed9-4fef-97ce-1989f6b6622f" + "id": "6b6f3131-128c-4412-9e20-2679f7bea3be" }, { "cell_type": "code", @@ -413,7 +413,7 @@ "`geom_histogram()`, this is useful if you want to layer a few different\n", "plots in the one figure." ], - "id": "0c1d62f7-046a-4e11-af91-06de5bc1340b" + "id": "04a6fafd-19d0-4248-ad9d-837b5e9c43c3" }, { "cell_type": "code", @@ -450,7 +450,7 @@ "source": [ "You can also flip the x-y coordinates:" ], - "id": "58bf91a9-4856-40b5-802e-67e6bfbcc711" + "id": "7c21a01f-f9f1-4ad5-8b40-b0af4dcf6c3d" }, { "cell_type": "code", @@ -487,7 +487,7 @@ "source": [ "You can visualise counts by other variables using `fill` within `aes()`:" ], - "id": "df78722c-a29a-4767-b521-211bf4996ff7" + "id": "d1c5fc72-518e-4041-b80a-cbd9eb6d2e81" }, { "cell_type": "code", @@ -526,7 +526,7 @@ "for a log-scale (similarly use `scale_x_sqrt()` and `scale_x_log10()` to\n", "transform the x-axis)." ], - "id": "3ef67897-f5b2-4982-8204-97e552034dc0" + "id": "42f93200-4831-4965-b444-5c3031c81d10" }, { "cell_type": "code", @@ -592,7 +592,7 @@ "source": [ "Change the look of your plot:" ], - "id": "c66ed449-08c8-4db7-95e8-fd0019bcd0ec" + "id": "fd660e4e-bf73-4736-883d-66c06af37595" }, { "cell_type": "code", @@ -634,7 +634,7 @@ "source": [ "Another change, this time changing the fill colours manually:" ], - "id": "8bfaa717-9acb-473c-bcf1-56585a107868" + "id": "a6519a1b-c90b-4289-aa49-d06c3dac8fe0" }, { "cell_type": "code", @@ -681,7 +681,7 @@ "normalised by each facet, and not overall. Here’s an example of a facet\n", "wrap:" ], - "id": "e0865d94-d7d3-49a8-ae6d-e9cefa4db535" + "id": "54ec93c7-b9d7-4f18-a49d-9201e8ce6b39" }, { "cell_type": "code", @@ -719,7 +719,7 @@ "Here’s an example of a facet grid with the count normalised in each\n", "grid:" ], - "id": "f0ea5eda-e389-4ead-a437-5d99dd48222d" + "id": "066b5cb5-cf09-494f-b657-57650bc4502d" }, { "cell_type": "code", diff --git a/examples/geom_hline.out.ipynb b/examples/geom_hline.out.ipynb index 5981c262f..aa7891c4e 100644 --- a/examples/geom_hline.out.ipynb +++ b/examples/geom_hline.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Horizontal line" ], - "id": "fd808335-dac2-4bcf-9672-78fbbae2f275" + "id": "8b933166-3d39-49dc-9e04-eace0cbf568c" }, { "cell_type": "code", @@ -44,7 +44,7 @@ "\n", "`geom_hline()` draws a vertical line, and is useful as a guide." ], - "id": "3a2da93a-5a9e-4812-96f0-a0637afce2f7" + "id": "616dc9d9-a8be-413a-84ec-417615e87498" }, { "cell_type": "code", @@ -81,7 +81,7 @@ "It’s useful to use `geom_hline()` with some data, so we start with a\n", "basic scatter plot:" ], - "id": "e015a27e-55d9-4fff-9bda-40396a317477" + "id": "0673a620-67cc-452d-987c-b81fec26c5e5" }, { "cell_type": "code", @@ -118,7 +118,7 @@ "source": [ "Now add a horizontal line to the scatter plot:" ], - "id": "533ba343-76c4-4f09-a6ff-da5b78640c14" + "id": "3ec39312-b473-4696-891b-0266f0f44e6b" }, { "cell_type": "code", @@ -156,7 +156,7 @@ "source": [ "You can add many horizontal lines:" ], - "id": "549acaa9-2582-4fa7-a624-cc58704b26e4" + "id": "b37eea00-4e91-4a00-af02-9fbd56b2441a" }, { "cell_type": "code", @@ -194,7 +194,7 @@ "source": [ "You can change the look of the line:" ], - "id": "46baf600-54e8-4419-8a4f-78dc8012f14e" + "id": "c3bc296d-078f-405d-b3fa-1db84821f646" }, { "cell_type": "code", @@ -236,7 +236,7 @@ "source": [ "And you can add horizontal lines to a facet plot:" ], - "id": "7ad1dec0-7fc9-4f40-873c-883cde29616c" + "id": "46307dff-90dd-4ec2-9704-908158e8bece" }, { "cell_type": "code", diff --git a/examples/geom_line.out.ipynb b/examples/geom_line.out.ipynb index 0d60ab045..019969f7d 100644 --- a/examples/geom_line.out.ipynb +++ b/examples/geom_line.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Line plots" ], - "id": "32c1fba0-4cd9-46df-9e52-92f00ab68813" + "id": "1503376f-e74d-45c2-8d8f-12933148e8a1" }, { "cell_type": "code", @@ -43,7 +43,7 @@ "\n", "`geom_line()` connects the dots, and is useful for time series data." ], - "id": "e4f015d8-adf1-4531-bf95-812c28ef49a0" + "id": "9d4900bc-96d6-4797-8f8a-0cec975640f2" }, { "cell_type": "code", @@ -108,7 +108,7 @@ "source": [ "You can put arrows at the end of a line:" ], - "id": "c0d4e029-95c3-4e4e-b05f-106c8107e58c" + "id": "bb8d1dac-8be6-413f-95b5-b843d5c2ee5c" }, { "cell_type": "code", @@ -145,7 +145,7 @@ "source": [ "The arrow can be modified for a different look:" ], - "id": "3158daae-b5e0-4c59-bb05-45ebbd1f5db5" + "id": "d84c9b39-4592-4d4b-a7fa-e125ae6ec56d" }, { "cell_type": "code", @@ -185,7 +185,7 @@ "source": [ "You can change the look of the line:" ], - "id": "b82db622-5c42-43ae-ba64-d6320c6dd8f1" + "id": "775fbe23-aa95-46e3-9fd7-990599eee99a" }, { "cell_type": "code", diff --git a/examples/geom_map.out.ipynb b/examples/geom_map.out.ipynb index ead6352d7..1b43e2283 100644 --- a/examples/geom_map.out.ipynb +++ b/examples/geom_map.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# The Political Territories of Westeros" ], - "id": "7c2e2922-a0c7-4d31-943e-e8c30fe8f0d8" + "id": "cdbd50f9-93ce-4946-b1ff-027b498aa3e9" }, { "cell_type": "code", @@ -51,7 +51,7 @@ "\n", "Read data and select features in Westeros only." ], - "id": "a9e62928-c299-415f-a28a-74bee9e41528" + "id": "84a89942-701a-475f-a043-869eb964b32d" }, { "cell_type": "code", @@ -98,7 +98,7 @@ "The `GeoDataFrame.geometry.centroid` property has the center coordinates\n", "of polygons, we use these to place the labels of the political regions." ], - "id": "4eb85985-aae8-49b3-89a5-c9fe48b7a041" + "id": "9a782af5-f395-415c-bcbe-d9956b018c87" }, { "cell_type": "code", @@ -198,7 +198,7 @@ "[cadaei](https://www.cartographersguild.com/member.php?u=95244) of the\n", "[cartographersguild](https://www.cartographersguild.com/) website forum." ], - "id": "9628d767-afe4-41a6-840b-91b267c75a64" + "id": "e181af3c-e594-4f17-b492-10f3ac142f28" } ], "nbformat": 4, diff --git a/examples/geom_path.out.ipynb b/examples/geom_path.out.ipynb index 3d2bea648..5df8cf825 100644 --- a/examples/geom_path.out.ipynb +++ b/examples/geom_path.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Path plots" ], - "id": "7dd17b20-a35f-44a8-a8d2-f67c47bd9944" + "id": "cc36ae32-2503-486c-93bf-394fb165578c" }, { "cell_type": "code", @@ -48,7 +48,7 @@ "appear in the data, this is different from `geom_line()` which connects\n", "observations in order of the variable on the x axis." ], - "id": "1914ffac-7878-4390-94b9-cd414bb9324b" + "id": "6ccf5b58-4b20-4c00-9c5c-4273a5a0398a" }, { "cell_type": "code", @@ -85,7 +85,7 @@ "Because the data is in date order `geom_path()` (in pint) produces the\n", "same result as `geom_line()` (in black):" ], - "id": "4bfdae4c-63e3-4e85-b6b2-1270dfb7d759" + "id": "3403cc36-5583-4225-bcb4-2d9f31fd5d12" }, { "cell_type": "code", @@ -127,7 +127,7 @@ "connects the observations in the order in which they appear in the data,\n", "this line is like a “journey through time”:" ], - "id": "64981fb9-eddb-49bd-a81f-172bdcfb8898" + "id": "627c8c93-b145-45db-b4ab-ed4b04c390e0" }, { "cell_type": "code", @@ -166,7 +166,7 @@ "two plots differ in what they can show: `geom_path()` shows the savings\n", "rate has gone down over time, which is not evident with `geom_path()`." ], - "id": "9dab9a24-fcdf-4cd2-8224-45783a76245a" + "id": "4cb9ff18-0102-41df-84e0-c5aa21aa9292" }, { "cell_type": "code", @@ -207,7 +207,7 @@ "The `geom_path` can be easier to interpret if time is coloured in. First\n", "convert time to a number, and use this number to colour the path:" ], - "id": "86bfc76a-e144-40c8-9c5e-823e0de34390" + "id": "46ed7479-b734-4eb5-9bc9-c4d4cef89e7f" }, { "cell_type": "code", @@ -263,7 +263,7 @@ "The path is coloured such that it changes with time using the command\n", "`aes(colour='date_as_number')` within `geom_path()`." ], - "id": "452754d4-715a-44b9-be05-3d0ff1867a90" + "id": "504ded55-53cc-472e-bc8e-630d2ee8a542" }, { "cell_type": "code", diff --git a/examples/geom_point.out.ipynb b/examples/geom_point.out.ipynb index 5e45f5c92..8a0c2f1a4 100644 --- a/examples/geom_point.out.ipynb +++ b/examples/geom_point.out.ipynb @@ -6,7 +6,7 @@ "source": [ "#" ], - "id": "41b2f9f1-0e95-4707-af83-9300398acf9e" + "id": "ba7db72f-0b3c-4cef-b319-f17f46764efe" }, { "cell_type": "code", @@ -68,7 +68,7 @@ "source": [ "Basic scatter plot" ], - "id": "f9b0ec6f-f7ae-4d9e-a648-2ec4b64119be" + "id": "fe5f235e-76dc-4769-9621-c9cf8b6b52de" }, { "cell_type": "code", @@ -102,7 +102,7 @@ "source": [ "Aesthetic mappings" ], - "id": "8b988a7a-607d-42a6-84c8-8f2df72da3d2" + "id": "94d2ea52-eea3-407c-b2b0-6ed097901c6f" }, { "cell_type": "code", @@ -185,7 +185,7 @@ "source": [ "Modify the color scale" ], - "id": "007c11a2-02de-4011-bfa7-90977ca6f293" + "id": "d7c32ffa-ed71-4283-beb9-87bef52c0a80" }, { "cell_type": "code", diff --git a/examples/geom_segment.out.ipynb b/examples/geom_segment.out.ipynb index 1e39d37ca..ad3b714a6 100644 --- a/examples/geom_segment.out.ipynb +++ b/examples/geom_segment.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Ranges of Similar Variables" ], - "id": "b739affd-0a22-47f2-a149-ecd831e40d4e" + "id": "a96a4d71-da66-48c7-8a34-a51e5f13b285" }, { "cell_type": "code", @@ -44,7 +44,7 @@ "\n", "Source: Pew Research Global Attitudes Spring 2015" ], - "id": "89981f0e-ea4a-4954-bfce-61d411ef8fe5" + "id": "df11883f-2a86-4bcc-8d76-48f3ba90ee32" }, { "cell_type": "code", @@ -311,7 +311,7 @@ "source": [ "Create age groups for users of social media" ], - "id": "e5d0bb06-8658-48ce-bbbb-07470300d1b9" + "id": "09f74ffa-3d6a-488a-90e5-9c1198aff936" }, { "cell_type": "code", @@ -503,7 +503,7 @@ "source": [ "Top 14 countries by response rate to the social media question." ], - "id": "bbb28e02-01d2-4e3f-b3dc-fac2ec014fca" + "id": "8b97377b-7dc7-4517-9ea7-dbfd3aae0cab" }, { "cell_type": "code", @@ -959,7 +959,7 @@ "Set the order of the countries along the y-axis by setting the `country`\n", "variable to an ordered categorical." ], - "id": "b3912367-11f0-4e65-93d0-3358a2d0438e" + "id": "ae13d189-8492-4180-a09a-48a0e678a689" }, { "cell_type": "code", @@ -986,7 +986,7 @@ "source": [ "First plot" ], - "id": "2fe14d75-7191-4a8b-8912-9ac7ba947955" + "id": "780cf1e3-fa28-4729-aba2-e4afc9a30e5e" }, { "cell_type": "code", @@ -1066,7 +1066,7 @@ "source": [ "Tweak it" ], - "id": "c02ca118-a06d-4f42-8baa-03ba15fb04b6" + "id": "a2fd6af1-4e07-4ad2-b326-72022ec2b852" }, { "cell_type": "code", @@ -1207,7 +1207,7 @@ "\n", "Source: World Bank - Infanct Mortality Rate (per 1,000 live births)b" ], - "id": "b31e2772-e177-49a5-a1fb-d2c2f503945e" + "id": "ea1a51fe-6dfa-4aca-b3f9-4868d2fd32d9" }, { "cell_type": "code", @@ -2548,7 +2548,7 @@ "corresponding row in the metadata table. Where the row has regional\n", "aggregate data, the `Region` column in the metadata table is `NaN`." ], - "id": "6952c797-9823-4a66-849c-cf4502c44630" + "id": "0e494d9f-85e7-4538-b591-a4698b1b5062" }, { "cell_type": "code", @@ -2786,7 +2786,7 @@ "source": [ "Remove the regional aggregates, to create a table with only country data" ], - "id": "3e86ac71-21cc-4539-957b-2392ca724073" + "id": "e5063802-a85a-4467-9343-7e8142fb6ea0" }, { "cell_type": "code", @@ -4155,7 +4155,7 @@ "We are interested in the changes in rank between 1960 and 2015. To plot\n", "a reasonable sized graph, we randomly sample 35 countries." ], - "id": "ebdc1050-ab2d-49ee-8e68-008522f666a5" + "id": "fef4151f-5962-44cc-b49b-9bc9fcad7caf" }, { "cell_type": "code", @@ -5574,7 +5574,7 @@ "source": [ "First graph" ], - "id": "ccc2e97f-5048-4ece-87e6-6099ee7f03bd" + "id": "4f34ecb2-1ace-4e80-ae22-e577148d7ba1" }, { "cell_type": "code", @@ -5614,7 +5614,7 @@ "source": [ "It has the form we want, but we need to tweak it." ], - "id": "2d31b9d2-fec2-423a-bdf2-f852db7a5722" + "id": "7e3fadae-fee0-4c7b-b651-219f215e7133" }, { "cell_type": "code", diff --git a/examples/geom_smooth.out.ipynb b/examples/geom_smooth.out.ipynb index 51e01528b..1fa3ce03e 100644 --- a/examples/geom_smooth.out.ipynb +++ b/examples/geom_smooth.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Smoothed conditional means" ], - "id": "e9c45310-cb3d-432c-af49-a3bb490fd790" + "id": "9f2f7531-714a-4dca-ba7e-0813fc4e737f" }, { "cell_type": "code", @@ -43,7 +43,7 @@ "\n", "*Aids the eye in seeing patterns in the presence of overplotting.*" ], - "id": "301ea2da-4d54-4f78-bf34-27b97960d24b" + "id": "18c4250d-3f01-4524-9555-80ee08ddc3dd" }, { "cell_type": "code", @@ -112,7 +112,7 @@ "small numbers make a wigglier curve, larger numbers make a smoother\n", "curve." ], - "id": "0ef95d23-5e82-4555-91ce-a5504aa05f87" + "id": "c1049dd5-e892-4c55-ade5-732968c44a2a" }, { "cell_type": "code", @@ -150,7 +150,7 @@ "source": [ "You can remove confidence interval around smooth with `se=False`:" ], - "id": "3cf25592-ce02-4fc3-9881-e45e96c08f48" + "id": "6994f1cb-7e13-438e-9e8c-32f5167417bf" }, { "cell_type": "code", @@ -188,7 +188,7 @@ "source": [ "Instead of a loess smooth, you can use any other modelling function:" ], - "id": "b779349f-80d1-453a-89a0-f712f770b063" + "id": "7715cdbb-f164-4d0c-80a8-a77825b355b7" }, { "cell_type": "code", diff --git a/examples/geom_step.out.ipynb b/examples/geom_step.out.ipynb index 958d70768..d70226555 100644 --- a/examples/geom_step.out.ipynb +++ b/examples/geom_step.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Step plots" ], - "id": "744d3916-1e15-4929-8513-b6a9590c3526" + "id": "43dcaa57-b73e-4e72-86e0-ded22a7d9aa8" }, { "cell_type": "code", @@ -45,7 +45,7 @@ "\n", "`geom_step()` connects points using ‘steps’ instead of a line." ], - "id": "df988278-d87f-44e7-af8c-e8e7ec94a504" + "id": "38232d28-8a76-4e2b-831a-932cd3697027" }, { "cell_type": "code", @@ -83,7 +83,7 @@ "Plot a step plot using `geom_plot()`. Notice from the first point the\n", "line travels vertically then horizontally:" ], - "id": "2b9b5b6e-ecac-4a19-bfd4-cabad5805724" + "id": "2580e544-3952-425a-96e8-6de7c29c95cb" }, { "cell_type": "code", @@ -123,7 +123,7 @@ "You can see how `geom_path()` (shown in pink) differs from `geom_line()`\n", "(black):" ], - "id": "b5f87d0f-cdee-48d4-9c85-b5db76980913" + "id": "bbefab24-ae78-42b0-928d-f8de1d2586b9" }, { "cell_type": "code", @@ -168,7 +168,7 @@ "Below `direction='vh'` is shown in black with the default\n", "`direction='hv'` shown in pink:" ], - "id": "933aa08a-03c5-456c-b41e-96736934be40" + "id": "90ab0bc7-cfbd-423d-8fd5-8f1eab87f15a" }, { "cell_type": "code", diff --git a/examples/geom_tile.out.ipynb b/examples/geom_tile.out.ipynb index 5cc21dff2..c54c03bde 100644 --- a/examples/geom_tile.out.ipynb +++ b/examples/geom_tile.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Periodic Table of Elements" ], - "id": "ba88e647-6817-479f-bd4d-c1e321e2276e" + "id": "48279d3d-d18d-47e3-9923-9ff0c150ba2f" }, { "cell_type": "code", @@ -53,7 +53,7 @@ "\n", "Read the data." ], - "id": "98c6199b-c4ac-4622-9417-85266a16d2df" + "id": "8c579017-c0f2-4705-98f2-66aff4f2c809" }, { "cell_type": "code", @@ -93,7 +93,7 @@ "Alter the data types of the information that will be plotted. This makes\n", "it convenient to work with." ], - "id": "d08b022b-e7da-4c81-bc49-6e4db3b975b5" + "id": "52fb5e5f-825b-4503-9529-90bec838e96f" }, { "cell_type": "code", @@ -123,7 +123,7 @@ "the `top` have groups, and those in the `bottom` have no groups. We make\n", "separate dataframes for both – they have different alignments." ], - "id": "55bd9c18-d7fd-4730-bd57-378e066ae2ed" + "id": "f9d2ffc8-5266-49f2-b81c-3c885ac3a40d" }, { "cell_type": "code", @@ -150,7 +150,7 @@ "The `top` table is nice and well behaving. The `x` location of the\n", "elements indicate the group and the `y` locations the period." ], - "id": "5b653be2-c64b-4e1b-87b3-4aeca1c288af" + "id": "7a165df9-1a21-4dd3-9569-d7c3cef13ab1" }, { "cell_type": "code", @@ -181,7 +181,7 @@ "We add a vertical shift to give us a good `y` location that gives the\n", "appearance of two tables." ], - "id": "ce3a2772-2cd5-4d4d-b821-10aeef224cc7" + "id": "2d90b8bb-8035-42c0-adc7-91be8ee66726" }, { "cell_type": "code", @@ -213,7 +213,7 @@ "of space. To get a good effect, the tile dimensions should be less than\n", "1." ], - "id": "3861a01a-b78f-40fa-aeb3-9cb132ffe72d" + "id": "24e7c913-d373-4b9c-9aa8-a14e071f8ea4" }, { "cell_type": "code", @@ -239,7 +239,7 @@ "source": [ "First peak" ], - "id": "ad6cff80-173a-4be8-af3e-9f72c27734d6" + "id": "f527792c-97c2-47f7-9643-ab2a9eebb722" }, { "cell_type": "code", @@ -277,7 +277,7 @@ "`y` locations since the periods are drawn in descending order. But, we\n", "can fix that with a `reverse` scale." ], - "id": "86a4be34-fb68-4655-b662-ae755631226b" + "id": "8f55c852-6b26-44fb-96d2-c19d90b0c143" }, { "cell_type": "code", @@ -314,7 +314,7 @@ "source": [ "Let us apply some color to it." ], - "id": "2a154168-ab23-4334-94e2-1eaffaeb7c9d" + "id": "e0419081-e271-43a3-8e4d-28c5e3293f10" }, { "cell_type": "code", @@ -362,7 +362,7 @@ "\n", "We use a function that accepts a dataframe, and returns a list of geoms." ], - "id": "b7b36de3-5d5f-4639-8080-fe305b81b623" + "id": "1dad493f-9b4e-4672-9d5b-d3e3a63fe1b6" }, { "cell_type": "code", @@ -427,7 +427,7 @@ "the `theme` create a larger figure. `coord_equal` give us equal units\n", "along the axes, this makes the tiles square." ], - "id": "046a5f75-22d8-4321-acb6-a7b16f365789" + "id": "a4c83f4f-a4e4-406f-a0ce-66579da8072a" }, { "cell_type": "code", @@ -475,7 +475,7 @@ "`y` locations. We create a dataframe with this information to create a\n", "half-tile. A half-tile is centered at the quarter mark." ], - "id": "8fb66a40-e978-478d-91b4-74884a86df7e" + "id": "c4a2c282-3a6a-4313-a73c-980f55d5de57" }, { "cell_type": "code", @@ -540,7 +540,7 @@ "Change the `fill` color for a different look and use a `theme` that\n", "clears out all the clutter." ], - "id": "c13a1667-5a19-4e21-9cf0-d20ff6e9b433" + "id": "cf9b160d-7226-4cdb-9322-e081bf782ed4" }, { "cell_type": "code", @@ -590,7 +590,7 @@ "\n", "For the period number, we set the `breaks` on the `y scale`." ], - "id": "9e1249a6-2ba3-4e56-95c0-03e41e1a81bc" + "id": "364fff21-cde5-433f-ad94-b1b5f923d197" }, { "cell_type": "code", @@ -621,7 +621,7 @@ "source": [ "Finally," ], - "id": "f5ad543a-21d4-4dc7-888a-b9a020faa6de" + "id": "62de4bbb-93f6-4f27-a680-e3a4113885cb" }, { "cell_type": "code", @@ -685,7 +685,7 @@ "\n", "Read data" ], - "id": "ab774960-ae4f-448a-932d-638dce025712" + "id": "e41daec5-7400-4a54-95d5-6144298521a6" }, { "cell_type": "code", @@ -759,7 +759,7 @@ "passenger numbers. We use `pd.cut` to partition the number of passengers\n", "into two *discrete* groups." ], - "id": "41fcbabb-4d2d-4589-bac0-9d1f8b099e6f" + "id": "758bf13c-cf31-43a1-bc3a-0db6dd081d5c" }, { "cell_type": "code", @@ -826,7 +826,7 @@ "Last tweaks, put `January` at the top and remove the axis ticks and plot\n", "background." ], - "id": "f3699456-8832-4764-8a7e-2deeaa096238" + "id": "f0a261ec-ad1e-4d9d-858d-b31059bcf326" }, { "cell_type": "code", @@ -881,7 +881,7 @@ "seaborn](https://seaborn.pydata.org/examples/heatmap_annotation.html)\n", "example." ], - "id": "ee52c040-8348-4c2b-bc1e-8378ed97214e" + "id": "26ce9c57-48e1-49b0-9cd8-3b807141879e" } ], "nbformat": 4, diff --git a/examples/geom_violin.out.ipynb b/examples/geom_violin.out.ipynb index bd00f94b0..5ce6ddf10 100644 --- a/examples/geom_violin.out.ipynb +++ b/examples/geom_violin.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Violins, Boxes, Points and Lines" ], - "id": "913b0917-3020-43ad-bf56-550fef9b3ca5" + "id": "bf4036e0-df5e-4ddd-857f-95af5fb8e799" }, { "cell_type": "code", @@ -56,7 +56,7 @@ "For demonstration we shall generate data with a `before` measurement and\n", "an `after` measurement." ], - "id": "07439aa1-63af-4104-9035-6bb733a4d23b" + "id": "b4261d57-63d3-4e4a-984b-a14144fa8f4f" }, { "cell_type": "code", @@ -107,7 +107,7 @@ "source": [ "A basic violin plot shows distributions of the two sets of data." ], - "id": "6bce7089-5999-4a91-ac99-1bca32fed33c" + "id": "af2add90-5d73-4846-80c4-d23f7c11374d" }, { "cell_type": "code", @@ -142,7 +142,7 @@ "source": [ "Add the original data in form of points." ], - "id": "1a9dc58d-92a8-4da7-979a-bedd643eea9b" + "id": "225c00a8-1b44-4523-b0e4-1afbabbbb41c" }, { "cell_type": "code", @@ -181,7 +181,7 @@ "in half and choose to alternate with the left half for the first one and\n", "the right half for the second." ], - "id": "81b3739a-00ad-4f6a-9625-acab995622d0" + "id": "e5d24cf4-584a-4020-bb50-2d8c09b46706" }, { "cell_type": "code", @@ -217,7 +217,7 @@ "source": [ "Link up the points to get a sense of how the data the moves." ], - "id": "2f94ebeb-77ad-411c-b022-3df5e9930633" + "id": "7d10fb75-c6ca-47af-be9c-9797445d6c18" }, { "cell_type": "code", @@ -266,7 +266,7 @@ "`1, 2, 3, ...`, so we use that move objects of adjacent groups in\n", "opposite directions i.e \\$(-1)^1, (-1)^2, (-1)^3 … = -1, 1, -1… \\$" ], - "id": "af693581-a643-4b16-8539-297be6c9d834" + "id": "621a8c1a-5a6f-44e5-a6e6-d282145363f1" }, { "cell_type": "code", @@ -316,7 +316,7 @@ "and the center of the points is `2 * shift`, so we can use the `shift`\n", "to control the width of the boxplot." ], - "id": "0a06f21c-1dea-46e0-9de3-e125bec228f4" + "id": "64fe19fe-ae41-4102-99fe-a88a71a608d3" }, { "cell_type": "code", @@ -354,7 +354,7 @@ "source": [ "Finall, style it up." ], - "id": "9bf96574-0f33-4785-89ca-cd46acad3a1d" + "id": "c3ad48af-d5b5-4d84-8856-84916f9ddd95" }, { "cell_type": "code", @@ -401,7 +401,7 @@ "Langen](https://github.com/jorvlan) (@jorvlan) at\n", "https://github.com/jorvlan/open-visualizations." ], - "id": "6ea7c85e-4747-4031-8fe5-ca7eb90f128e" + "id": "084819d5-ccbc-4370-8b6a-a7f8b2f0a2b3" } ], "nbformat": 4, diff --git a/examples/geom_vline.out.ipynb b/examples/geom_vline.out.ipynb index 1594fb3b6..45c908f74 100644 --- a/examples/geom_vline.out.ipynb +++ b/examples/geom_vline.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Vertical line" ], - "id": "2267e39d-18da-4059-99de-f7cb8ff64560" + "id": "a21d89d3-669f-4635-8888-73eab49a0883" }, { "cell_type": "code", @@ -44,7 +44,7 @@ "\n", "`geom_vline()` draws a vertical line, and is useful as a guide." ], - "id": "744ba5af-d10c-45e4-a01e-58656a91c463" + "id": "0059f792-080a-4c80-bcda-a238f816f058" }, { "cell_type": "code", @@ -81,7 +81,7 @@ "It’s useful to use `geom_vline()` with some data, so we start with a\n", "basic scatter plot:" ], - "id": "e4322461-8ec5-45eb-bbe1-d908602a3a86" + "id": "7633659d-02a6-4603-bced-2a0aff7d8d29" }, { "cell_type": "code", @@ -118,7 +118,7 @@ "source": [ "Add a vertical line to the scatter plot:" ], - "id": "01969821-f0ff-4720-b723-27877c2580b2" + "id": "ac4283db-2fc5-40df-9a68-a702be687aed" }, { "cell_type": "code", @@ -156,7 +156,7 @@ "source": [ "You can add many vertical lines:" ], - "id": "3b131757-c0c8-42f7-ba94-77ab857eb7da" + "id": "64218c5d-7ccd-4f4b-a7c1-868839a84c79" }, { "cell_type": "code", @@ -228,7 +228,7 @@ "source": [ "Add vertical lines to a facet plot:" ], - "id": "7f07e59e-7d97-4382-9b53-f4aa23d189c5" + "id": "b255856d-a04d-4214-a90a-43ba779741b6" }, { "cell_type": "code", diff --git a/examples/scale_x_continuous.out.ipynb b/examples/scale_x_continuous.out.ipynb index b4a3d85cb..2b1cb0588 100644 --- a/examples/scale_x_continuous.out.ipynb +++ b/examples/scale_x_continuous.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# Guitar Neck \\###" ], - "id": "192fc78f-8f28-48ad-ad05-2c666e41787a" + "id": "9a9ed8ab-fe4e-44be-b938-423afa304279" }, { "cell_type": "code", @@ -53,7 +53,7 @@ "The key parts of *any* transform object are the `transform` and\n", "`inverse` functions." ], - "id": "d691a2ac-2a67-457a-8362-58db8c0d0aac" + "id": "a1c7af4d-fa2f-4bd6-99f6-4c74a0e9aa42" }, { "cell_type": "code", @@ -112,7 +112,7 @@ "\n", "Some chord Data" ], - "id": "da080462-7f9f-49b5-8107-36518859fff0" + "id": "dc834a6f-df47-4a9e-bb6f-7e4b72727e83" }, { "cell_type": "code", @@ -151,7 +151,7 @@ "source": [ "Visualizing the chord" ], - "id": "f3585379-0d80-4b13-bf14-9460cfbc893b" + "id": "aae4b236-bbaf-4093-98fb-4c6d2a5422d0" }, { "cell_type": "code", @@ -210,7 +210,7 @@ "Vitale](https://github.com/jonvitale) who wanted to create graphics for\n", "a guitar scale trainer." ], - "id": "4f22f468-2efa-44f4-93d6-7e16727ce29c" + "id": "628aa693-e917-4efb-a612-139e115504b5" } ], "nbformat": 4, diff --git a/examples/stage.out.ipynb b/examples/stage.out.ipynb index 7223a341f..c83b5ec2b 100644 --- a/examples/stage.out.ipynb +++ b/examples/stage.out.ipynb @@ -6,7 +6,7 @@ "source": [ "# stage" ], - "id": "ca3d0db3-61c3-4a1b-b75d-25fd8ea32361" + "id": "3af6c178-4d9f-45cc-92d5-66a33d7cabff" }, { "cell_type": "code", @@ -47,7 +47,7 @@ "source": [ "### stage" ], - "id": "d78b7566-e6fb-4bb0-a914-964ddce29847" + "id": "806abbe1-4f65-4a7b-b60f-99604eb86698" }, { "cell_type": "code", @@ -87,7 +87,7 @@ "source": [ "Add the corresponding count on top of each bar." ], - "id": "d5c2a3c0-bdf2-4b94-a468-8f5d59d11129" + "id": "03f4fb15-8544-4897-a45c-a35cd6d3d38f" }, { "cell_type": "code", @@ -123,7 +123,7 @@ "source": [ "Adjust the `y` position so that the counts do not overlap the bars." ], - "id": "56482b75-1a1d-4a43-8f3a-3d1b76482dd9" + "id": "788c132f-c82a-4cc1-92b5-0b34762fac75" }, { "cell_type": "code", @@ -160,7 +160,7 @@ "Note that this will work even nicely for stacked bars where adjustig the\n", "position with `nudge_y=0.1` would not." ], - "id": "9bf6ac56-89e6-45eb-98a6-80d4c675033b" + "id": "af976469-d190-4e5e-9061-a54e6e27bf2a" }, { "cell_type": "code", @@ -197,7 +197,7 @@ "source": [ "## Create a binned 2d plot with counts" ], - "id": "c22cbfef-b795-478e-8018-5e7b739520a5" + "id": "ae66e444-cecf-4e52-84a9-45ff63a9f94c" }, { "cell_type": "code", @@ -265,7 +265,7 @@ "Note that the binning parameters for the `geom` and `stat` combination\n", "must be the same. In this case it is the `binwidth`." ], - "id": "d705a175-78a9-4993-8de9-d13b4e9a3060" + "id": "9fa079be-8abb-4b16-9bd9-34470179d7c3" }, { "cell_type": "code", diff --git a/examples/theme.out.ipynb b/examples/theme.out.ipynb index ad271b064..30ba032d9 100644 --- a/examples/theme.out.ipynb +++ b/examples/theme.out.ipynb @@ -6,7 +6,7 @@ "source": [ "#" ], - "id": "11d56d89-1c43-4b57-be74-a7578b466b1c" + "id": "dc1bd2c9-5e77-4419-acc5-d499ba626f7c" }, { "cell_type": "code", @@ -81,7 +81,7 @@ "source": [ "The base plots we will use for the demonstation and some colors." ], - "id": "eea56686-5e2e-4690-9abc-f8c661d6615b" + "id": "21e4d861-2ec2-4a09-8984-42c2bee68432" }, { "cell_type": "code", @@ -120,7 +120,7 @@ "source": [ "What the plots look like unmodified (unthemed)." ], - "id": "b873f830-71af-4864-a1c4-f63da5495798" + "id": "77ab4ada-5352-4dc1-8884-32559e3f762e" }, { "cell_type": "code", @@ -188,7 +188,7 @@ "\n", "**text**" ], - "id": "71325a31-93a8-4188-aff1-3fbad63b1bc0" + "id": "434d006e-da7c-4ddb-b1b5-2f865a53d4b5" }, { "cell_type": "code", @@ -223,7 +223,7 @@ "source": [ "**rect**" ], - "id": "9bf91d90-7448-4c63-93c1-b0c1d9b51845" + "id": "f45ccaf2-721f-4580-85fa-52f8810fdb97" }, { "cell_type": "code", @@ -258,7 +258,7 @@ "source": [ "**line**" ], - "id": "9af6fac6-04f0-472f-a849-c76cb0fe9569" + "id": "ee7e9244-b4b3-4098-a2ca-7b26d968b3a9" }, { "cell_type": "code", @@ -295,7 +295,7 @@ "\n", "### axis_line and axis_text" ], - "id": "484a290c-5e0a-4962-8810-322fca6d22f2" + "id": "2184aa71-c3ff-456c-926b-220c84f2bcdc" }, { "cell_type": "code", @@ -379,7 +379,7 @@ "source": [ "### axis_title and axis_ticks_pad" ], - "id": "ad44be21-7512-4b08-bdae-b727eaab238a" + "id": "66a8d477-e125-4369-a676-8ea3e2693da1" }, { "cell_type": "code", @@ -424,7 +424,7 @@ "source": [ "### axis_ticks_direction" ], - "id": "a6f7cc2a-911a-4dc3-ab6a-0cdf53cec6cc" + "id": "e45ca4a6-f9e8-44b7-b297-6b5e3d638945" }, { "cell_type": "code", @@ -466,7 +466,7 @@ "\n", "Not all themeables that affect the legend box are demonstrated" ], - "id": "f02a150e-fbae-48d6-8d5c-0cbb9e5cfa86" + "id": "29add5b7-1293-4acb-bf49-96818bf569e4" }, { "cell_type": "code", @@ -523,7 +523,7 @@ "source": [ "### plot_background, panel_background and panel_border" ], - "id": "2c052594-f7b8-4ba9-88dc-82462e6558bf" + "id": "b81c020a-d07c-4dc1-9c99-182111490f6b" }, { "cell_type": "code", @@ -563,7 +563,7 @@ "source": [ "### panel_grid" ], - "id": "dff058c7-a1a9-43d4-b59e-cbd745f26aa6" + "id": "6ff75d50-544c-4521-93f0-2fc578c72b32" }, { "cell_type": "code", @@ -608,7 +608,7 @@ "source": [ "### strip_background, strip_margin and strip_text" ], - "id": "ebffae85-5c51-4b67-aab9-31a8319b126d" + "id": "59626474-4dcd-4af7-9589-fe9d3bde612e" }, { "cell_type": "code", @@ -663,7 +663,7 @@ "height = figure_size[0] * aspect_ratio\n", "```" ], - "id": "ffa0ceeb-ae4f-4d8f-bee7-02ff9896452d" + "id": "30e3a9f9-b5b9-4a3c-99a5-6c060a13be09" }, { "cell_type": "code", diff --git a/index.html b/index.html index 312c1b5e0..2b4739f24 100644 --- a/index.html +++ b/index.html @@ -212,7 +212,7 @@

A Grammar of Graphics for Python

Plotting with a grammar of graphics is powerful. Custom (and otherwise complex) plots are easy to think about and build incremently, while the simple plots remain simple to create.

Example

-
+
from plotnine import ggplot, geom_point, aes, stat_smooth, facet_wrap
 from plotnine.data import mtcars