Skip to content

Instantly share code, notes, and snippets.

@rsimd
Created October 25, 2022 03:39
Show Gist options
  • Save rsimd/b940557dd8566b81e702b70984490be0 to your computer and use it in GitHub Desktop.
Save rsimd/b940557dd8566b81e702b70984490be0 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## IRIS dataset \n",
"\n",
"https://archive.ics.uci.edu/ml/datasets/iris\n",
"\n",
"ヤマメの花のデータセット\n",
"\n",
"\n",
"> This is perhaps the best known database to be found in the pattern recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.\n",
"> \n",
"> Predicted attribute: class of iris plant.\n",
"> \n",
"> This is an exceedingly simple domain.\n",
"> \n",
"> This data differs from the data presented in Fishers article (identified by Steve Chadwick, spchadwick '@' espeedaz.net ). The 35th sample should be: 4.9,3.1,1.5,0.2,\"Iris-setosa\" where the error is in the fourth feature. The 38th sample: 4.9,3.6,1.4,0.1,\"Iris-setosa\" where the errors are in the second and third features.\n",
"\n",
"翻訳: \n",
"これはおそらく、パターン認識の文献で最もよく知られたデータベースである。Fisherの論文はこの分野の古典であり、今日でも頻繁に参照されている(例えばDuda & Hartを参照)。(データセットには50インスタンスずつの3つのクラスがあり、各クラスはアヤメ科の植物の種類を表している。1つのクラスは、他の2つのクラスから線形分離可能で、後者は互いに線形分離不可能である。\n",
"\n",
"予測される属性:アヤメ科のクラス。\n",
"\n",
"これは非常に単純な領域である。\n",
"\n",
"このデータはFishersの記事で紹介されたデータ(Steve Chadwick, spchadwick '@' espeedaz.net )と異なる。35番目のサンプルは、次のようになっているはずです。4.9,3.1,1.5,0.2, \"Iris-setosa\" のはずですが、4番目の特徴に誤りがあります。38番目のサンプル。4.9,3.6,1.4,0.1, \"Iris-setosa\" ここで、エラーは2番目と3番目の特徴にあります。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### データフレーム化の手順\n",
"\n",
"https://archive.ics.uci.edu/ml/machine-learning-databases/iris/ からiris.dataをダウンロードしてください。このファイルが今回のターゲットです。このファイルは綺麗なCSV形式になっており、欠損値がありません。また、CSVファイルには最初の数行にheaderとして情報が書かれている場合がありますが、このファイルにはそのような記述もありません。更には、column(列)の名前も無いので、そのままダウンロードしてDataFrameで読み込んだ後に、必要ならばcolumn name(特徴量の名前)を追加することを考えます。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": 101,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np \n",
"import pandas as pd \n",
"import plotly.express as px\n",
"import requests\n",
"from io import StringIO"
]
},
{
"cell_type": "code",
"execution_count": 102,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>2</th>\n",
" <th>3</th>\n",
" <th>4</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>5.1</td>\n",
" <td>3.5</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>4.9</td>\n",
" <td>3.0</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>4.7</td>\n",
" <td>3.2</td>\n",
" <td>1.3</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4.6</td>\n",
" <td>3.1</td>\n",
" <td>1.5</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5.0</td>\n",
" <td>3.6</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>145</th>\n",
" <td>6.7</td>\n",
" <td>3.0</td>\n",
" <td>5.2</td>\n",
" <td>2.3</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>146</th>\n",
" <td>6.3</td>\n",
" <td>2.5</td>\n",
" <td>5.0</td>\n",
" <td>1.9</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>147</th>\n",
" <td>6.5</td>\n",
" <td>3.0</td>\n",
" <td>5.2</td>\n",
" <td>2.0</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>148</th>\n",
" <td>6.2</td>\n",
" <td>3.4</td>\n",
" <td>5.4</td>\n",
" <td>2.3</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>149</th>\n",
" <td>5.9</td>\n",
" <td>3.0</td>\n",
" <td>5.1</td>\n",
" <td>1.8</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>150 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" 0 1 2 3 4\n",
"0 5.1 3.5 1.4 0.2 Iris-setosa\n",
"1 4.9 3.0 1.4 0.2 Iris-setosa\n",
"2 4.7 3.2 1.3 0.2 Iris-setosa\n",
"3 4.6 3.1 1.5 0.2 Iris-setosa\n",
"4 5.0 3.6 1.4 0.2 Iris-setosa\n",
".. ... ... ... ... ...\n",
"145 6.7 3.0 5.2 2.3 Iris-virginica\n",
"146 6.3 2.5 5.0 1.9 Iris-virginica\n",
"147 6.5 3.0 5.2 2.0 Iris-virginica\n",
"148 6.2 3.4 5.4 2.3 Iris-virginica\n",
"149 5.9 3.0 5.1 1.8 Iris-virginica\n",
"\n",
"[150 rows x 5 columns]"
]
},
"execution_count": 102,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"iris_url = \"http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data\"\n",
"\n",
"# データをurlから取得する\n",
"raw_data = requests.get(iris_url, stream=True)\n",
"# データをデータフレーム形式に保管\n",
"# 注意: headerをNoneとしないと、データの最初の1行目が、headerとなる\n",
"df = pd.read_csv(StringIO(raw_data.text),header =None)\n",
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"https://archive.ics.uci.edu/ml/datasets/iris に以下の記述があるので、特徴量はそれぞれ \n",
"[\"sepal length in cm\",\"sepal width in cm\",\"petal length in cm\",\"petal width in cm\"] \n",
"であることがわかります。\n",
"\n",
"> Attribute Information:\n",
"> \n",
"> 1. sepal length in cm\n",
"> 2. sepal width in cm\n",
"> 3. petal length in cm\n",
"> 4. petal width in cm\n",
"> 5. class: \n",
"> -- Iris Setosa \n",
"> -- Iris Versicolour \n",
"> -- Iris Virginica "
]
},
{
"cell_type": "code",
"execution_count": 103,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sepal length</th>\n",
" <th>sepal width</th>\n",
" <th>petal length</th>\n",
" <th>petal width</th>\n",
" <th>class</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>5.1</td>\n",
" <td>3.5</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>4.9</td>\n",
" <td>3.0</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>4.7</td>\n",
" <td>3.2</td>\n",
" <td>1.3</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4.6</td>\n",
" <td>3.1</td>\n",
" <td>1.5</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5.0</td>\n",
" <td>3.6</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>145</th>\n",
" <td>6.7</td>\n",
" <td>3.0</td>\n",
" <td>5.2</td>\n",
" <td>2.3</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>146</th>\n",
" <td>6.3</td>\n",
" <td>2.5</td>\n",
" <td>5.0</td>\n",
" <td>1.9</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>147</th>\n",
" <td>6.5</td>\n",
" <td>3.0</td>\n",
" <td>5.2</td>\n",
" <td>2.0</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>148</th>\n",
" <td>6.2</td>\n",
" <td>3.4</td>\n",
" <td>5.4</td>\n",
" <td>2.3</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>149</th>\n",
" <td>5.9</td>\n",
" <td>3.0</td>\n",
" <td>5.1</td>\n",
" <td>1.8</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>150 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" sepal length sepal width petal length petal width class\n",
"0 5.1 3.5 1.4 0.2 Iris-setosa\n",
"1 4.9 3.0 1.4 0.2 Iris-setosa\n",
"2 4.7 3.2 1.3 0.2 Iris-setosa\n",
"3 4.6 3.1 1.5 0.2 Iris-setosa\n",
"4 5.0 3.6 1.4 0.2 Iris-setosa\n",
".. ... ... ... ... ...\n",
"145 6.7 3.0 5.2 2.3 Iris-virginica\n",
"146 6.3 2.5 5.0 1.9 Iris-virginica\n",
"147 6.5 3.0 5.2 2.0 Iris-virginica\n",
"148 6.2 3.4 5.4 2.3 Iris-virginica\n",
"149 5.9 3.0 5.1 1.8 Iris-virginica\n",
"\n",
"[150 rows x 5 columns]"
]
},
"execution_count": 103,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.columns = [\"sepal length\",\"sepal width\",\"petal length\",\"petal width\",\"class\"]\n",
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"これでiris dataをDataFrameとして読み込むことができました。さて、DataFrameの情報を確認します。"
]
},
{
"cell_type": "code",
"execution_count": 104,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 150 entries, 0 to 149\n",
"Data columns (total 5 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 sepal length 150 non-null float64\n",
" 1 sepal width 150 non-null float64\n",
" 2 petal length 150 non-null float64\n",
" 3 petal width 150 non-null float64\n",
" 4 class 150 non-null object \n",
"dtypes: float64(4), object(1)\n",
"memory usage: 6.0+ KB\n"
]
}
],
"source": [
"df.info()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"データは全て数値型(float64)であり、欠損値(null)が無いことがわかります。classについては特徴量というよりはラベルなので考えないことにします。また、データは全部で150個あるようです。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[コラム] \n",
"\n",
"浮動小数点数の型は複数あり、それぞれが対応する精度が異なります。numpyのそれぞれの浮動小数点型の表現できる最大値・最小値などの情報はnp.finfo関数で確認します。"
]
},
{
"cell_type": "code",
"execution_count": 105,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Machine parameters for float64\n",
"---------------------------------------------------------------\n",
"precision = 15 resolution = 1.0000000000000001e-15\n",
"machep = -52 eps = 2.2204460492503131e-16\n",
"negep = -53 epsneg = 1.1102230246251565e-16\n",
"minexp = -1022 tiny = 2.2250738585072014e-308\n",
"maxexp = 1024 max = 1.7976931348623157e+308\n",
"nexp = 11 min = -max\n",
"smallest_normal = 2.2250738585072014e-308 smallest_subnormal = 4.9406564584124654e-324\n",
"---------------------------------------------------------------\n",
"\n",
"Machine parameters for float32\n",
"---------------------------------------------------------------\n",
"precision = 6 resolution = 1.0000000e-06\n",
"machep = -23 eps = 1.1920929e-07\n",
"negep = -24 epsneg = 5.9604645e-08\n",
"minexp = -126 tiny = 1.1754944e-38\n",
"maxexp = 128 max = 3.4028235e+38\n",
"nexp = 8 min = -max\n",
"smallest_normal = 1.1754944e-38 smallest_subnormal = 1.4012985e-45\n",
"---------------------------------------------------------------\n",
"\n",
"Machine parameters for float16\n",
"---------------------------------------------------------------\n",
"precision = 3 resolution = 1.00040e-03\n",
"machep = -10 eps = 9.76562e-04\n",
"negep = -11 epsneg = 4.88281e-04\n",
"minexp = -14 tiny = 6.10352e-05\n",
"maxexp = 16 max = 6.55040e+04\n",
"nexp = 5 min = -max\n",
"smallest_normal = 6.10352e-05 smallest_subnormal = 5.96046e-08\n",
"---------------------------------------------------------------\n",
"\n"
]
}
],
"source": [
"print(np.finfo(np.float64))\n",
"print(np.finfo(np.float32))\n",
"print(np.finfo(np.float16))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"それぞれのfloat Nbitが何桁までの浮動小数点数を安全に表現できるのかについては注意が必要です。また、NumPyではCPUバックエンドのみが利用可能ですので、現代のモダンな計算機であればfloat64がデフォルトになるはずです。通常(データサイエンスや機械学習など)であれば、NumPyではfloat64を利用することになるでしょう。ただし、後述する(可能性のある)GPUをバックエンドにした計算をする場合はfloat32がデフォルトになります。GPUを利用する場合はNumPyを参考にして作られたTensorFlowやPyTorch、JAX、CuPyのようなライブラリを利用することになりますが、これらではより型を意識したプログラミングが必要になります。"
]
},
{
"cell_type": "code",
"execution_count": 106,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sepal length</th>\n",
" <th>sepal width</th>\n",
" <th>petal length</th>\n",
" <th>petal width</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td>150.000000</td>\n",
" <td>150.000000</td>\n",
" <td>150.000000</td>\n",
" <td>150.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td>5.843333</td>\n",
" <td>3.054000</td>\n",
" <td>3.758667</td>\n",
" <td>1.198667</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td>0.828066</td>\n",
" <td>0.433594</td>\n",
" <td>1.764420</td>\n",
" <td>0.763161</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td>4.300000</td>\n",
" <td>2.000000</td>\n",
" <td>1.000000</td>\n",
" <td>0.100000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td>5.100000</td>\n",
" <td>2.800000</td>\n",
" <td>1.600000</td>\n",
" <td>0.300000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td>5.800000</td>\n",
" <td>3.000000</td>\n",
" <td>4.350000</td>\n",
" <td>1.300000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td>6.400000</td>\n",
" <td>3.300000</td>\n",
" <td>5.100000</td>\n",
" <td>1.800000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td>7.900000</td>\n",
" <td>4.400000</td>\n",
" <td>6.900000</td>\n",
" <td>2.500000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" sepal length sepal width petal length petal width\n",
"count 150.000000 150.000000 150.000000 150.000000\n",
"mean 5.843333 3.054000 3.758667 1.198667\n",
"std 0.828066 0.433594 1.764420 0.763161\n",
"min 4.300000 2.000000 1.000000 0.100000\n",
"25% 5.100000 2.800000 1.600000 0.300000\n",
"50% 5.800000 3.000000 4.350000 1.300000\n",
"75% 6.400000 3.300000 5.100000 1.800000\n",
"max 7.900000 4.400000 6.900000 2.500000"
]
},
"execution_count": 106,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 棒グラフ"
]
},
{
"cell_type": "code",
"execution_count": 107,
"metadata": {},
"outputs": [],
"source": [
"from plotly.subplots import make_subplots"
]
},
{
"cell_type": "code",
"execution_count": 108,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
5.1,
4.9,
4.7,
4.6,
5,
5.4,
4.6,
5,
4.4,
4.9,
5.4,
4.8,
4.8,
4.3,
5.8,
5.7,
5.4,
5.1,
5.7,
5.1,
5.4,
5.1,
4.6,
5.1,
4.8,
5,
5,
5.2,
5.2,
4.7,
4.8,
5.4,
5.2,
5.5,
4.9,
5,
5.5,
4.9,
4.4,
5.1,
5,
4.5,
4.4,
5,
5.1,
4.8,
5.1,
4.6,
5.3,
5
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
7,
6.4,
6.9,
5.5,
6.5,
5.7,
6.3,
4.9,
6.6,
5.2,
5,
5.9,
6,
6.1,
5.6,
6.7,
5.6,
5.8,
6.2,
5.6,
5.9,
6.1,
6.3,
6.1,
6.4,
6.6,
6.8,
6.7,
6,
5.7,
5.5,
5.5,
5.8,
6,
5.4,
6,
6.7,
6.3,
5.6,
5.5,
5.5,
6.1,
5.8,
5,
5.6,
5.7,
5.7,
6.2,
5.1,
5.7
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
6.3,
5.8,
7.1,
6.3,
6.5,
7.6,
4.9,
7.3,
6.7,
7.2,
6.5,
6.4,
6.8,
5.7,
5.8,
6.4,
6.5,
7.7,
7.7,
6,
6.9,
5.6,
7.7,
6.3,
6.7,
7.2,
6.2,
6.1,
6.4,
7.2,
7.4,
7.9,
6.4,
6.3,
6.1,
7.7,
6.3,
6.4,
6,
6.9,
6.7,
6.9,
5.8,
6.8,
6.7,
6.7,
6.3,
6.5,
6.2,
5.9
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
7.9
],
"title": {
"text": "sepal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
3.5,
3,
3.2,
3.1,
3.6,
3.9,
3.4,
3.4,
2.9,
3.1,
3.7,
3.4,
3,
3,
4,
4.4,
3.9,
3.5,
3.8,
3.8,
3.4,
3.7,
3.6,
3.3,
3.4,
3,
3.4,
3.5,
3.4,
3.2,
3.1,
3.4,
4.1,
4.2,
3.1,
3.2,
3.5,
3.1,
3,
3.4,
3.5,
2.3,
3.2,
3.5,
3.8,
3,
3.8,
3.2,
3.7,
3.3
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
3.2,
3.2,
3.1,
2.3,
2.8,
2.8,
3.3,
2.4,
2.9,
2.7,
2,
3,
2.2,
2.9,
2.9,
3.1,
3,
2.7,
2.2,
2.5,
3.2,
2.8,
2.5,
2.8,
2.9,
3,
2.8,
3,
2.9,
2.6,
2.4,
2.4,
2.7,
2.7,
3,
3.4,
3.1,
2.3,
3,
2.5,
2.6,
3,
2.6,
2.3,
2.7,
3,
2.9,
2.9,
2.5,
2.8
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
3.3,
2.7,
3,
2.9,
3,
3,
2.5,
2.9,
2.5,
3.6,
3.2,
2.7,
3,
2.5,
2.8,
3.2,
3,
3.8,
2.6,
2.2,
3.2,
2.8,
2.8,
2.7,
3.3,
3.2,
2.8,
3,
2.8,
3,
2.8,
3.8,
2.8,
2.8,
2.6,
3,
3.4,
3.1,
3,
3.1,
3.1,
3.1,
2.7,
3.2,
3.3,
3,
2.5,
3,
3.4,
3
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
7.9
],
"title": {
"text": "sepal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
1.4,
1.4,
1.3,
1.5,
1.4,
1.7,
1.4,
1.5,
1.4,
1.5,
1.5,
1.6,
1.4,
1.1,
1.2,
1.5,
1.3,
1.4,
1.7,
1.5,
1.7,
1.5,
1,
1.7,
1.9,
1.6,
1.6,
1.5,
1.4,
1.6,
1.6,
1.5,
1.5,
1.4,
1.5,
1.2,
1.3,
1.5,
1.3,
1.5,
1.3,
1.3,
1.3,
1.6,
1.9,
1.4,
1.6,
1.4,
1.5,
1.4
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
4.7,
4.5,
4.9,
4,
4.6,
4.5,
4.7,
3.3,
4.6,
3.9,
3.5,
4.2,
4,
4.7,
3.6,
4.4,
4.5,
4.1,
4.5,
3.9,
4.8,
4,
4.9,
4.7,
4.3,
4.4,
4.8,
5,
4.5,
3.5,
3.8,
3.7,
3.9,
5.1,
4.5,
4.5,
4.7,
4.4,
4.1,
4,
4.4,
4.6,
4,
3.3,
4.2,
4.2,
4.2,
4.3,
3,
4.1
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
6,
5.1,
5.9,
5.6,
5.8,
6.6,
4.5,
6.3,
5.8,
6.1,
5.1,
5.3,
5.5,
5,
5.1,
5.3,
5.5,
6.7,
6.9,
5,
5.7,
4.9,
6.7,
4.9,
5.7,
6,
4.8,
4.9,
5.6,
5.8,
6.1,
6.4,
5.6,
5.1,
5.6,
6.1,
5.6,
5.5,
4.8,
5.4,
5.6,
5.1,
5.1,
5.9,
5.7,
5.2,
5,
5.2,
5.4,
5.1
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
7.9
],
"title": {
"text": "petal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
0.2,
0.2,
0.2,
0.2,
0.2,
0.4,
0.3,
0.2,
0.2,
0.1,
0.2,
0.2,
0.1,
0.1,
0.2,
0.4,
0.4,
0.3,
0.3,
0.3,
0.2,
0.4,
0.2,
0.5,
0.2,
0.2,
0.4,
0.2,
0.2,
0.2,
0.2,
0.4,
0.1,
0.2,
0.1,
0.2,
0.2,
0.1,
0.2,
0.2,
0.3,
0.3,
0.2,
0.6,
0.4,
0.3,
0.2,
0.2,
0.2,
0.2
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
1.4,
1.5,
1.5,
1.3,
1.5,
1.3,
1.6,
1,
1.3,
1.4,
1,
1.5,
1,
1.4,
1.3,
1.4,
1.5,
1,
1.5,
1.1,
1.8,
1.3,
1.5,
1.2,
1.3,
1.4,
1.4,
1.7,
1.5,
1,
1.1,
1,
1.2,
1.6,
1.5,
1.6,
1.5,
1.3,
1.3,
1.3,
1.2,
1.4,
1.2,
1,
1.3,
1.2,
1.3,
1.3,
1.1,
1.3
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
2.5,
1.9,
2.1,
1.8,
2.2,
2.1,
1.7,
1.8,
1.8,
2.5,
2,
1.9,
2.1,
2,
2.4,
2.3,
1.8,
2.2,
2.3,
1.5,
2.3,
2,
2,
1.8,
2.1,
1.8,
1.8,
1.8,
2.1,
1.6,
1.9,
2,
2.2,
1.5,
1.4,
2.3,
2.4,
1.8,
1.8,
2.1,
2.4,
2.3,
1.9,
2.3,
2.5,
2.3,
1.9,
2,
2.3,
1.8
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
7.9
],
"title": {
"text": "petal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"def barplot_for_iris(df, yrange=None):\n",
" if yrange is None:\n",
" max_val = df.iloc[:,:-1].max().max()\n",
" yrange = [0, max_val]\n",
" \n",
" for ix, feature_name in enumerate(df.columns[:-1]):\n",
" bar = px.bar(\n",
" df, \n",
" x=np.arange(len(df)), y=feature_name,\n",
" color=\"class\",\n",
" title=f\"bar chart of {feature_name}\",\n",
" height=300,\n",
" width=900,\n",
" )\n",
" bar.update_yaxes(range=yrange)\n",
" bar.show()\n",
"\n",
"barplot_for_iris(df)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### ヒストグラムと箱ひげ図"
]
},
{
"cell_type": "code",
"execution_count": 109,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
5.1,
4.9,
4.7,
4.6,
5,
5.4,
4.6,
5,
4.4,
4.9,
5.4,
4.8,
4.8,
4.3,
5.8,
5.7,
5.4,
5.1,
5.7,
5.1,
5.4,
5.1,
4.6,
5.1,
4.8,
5,
5,
5.2,
5.2,
4.7,
4.8,
5.4,
5.2,
5.5,
4.9,
5,
5.5,
4.9,
4.4,
5.1,
5,
4.5,
4.4,
5,
5.1,
4.8,
5.1,
4.6,
5.3,
5,
3.5,
3,
3.2,
3.1,
3.6,
3.9,
3.4,
3.4,
2.9,
3.1,
3.7,
3.4,
3,
3,
4,
4.4,
3.9,
3.5,
3.8,
3.8,
3.4,
3.7,
3.6,
3.3,
3.4,
3,
3.4,
3.5,
3.4,
3.2,
3.1,
3.4,
4.1,
4.2,
3.1,
3.2,
3.5,
3.1,
3,
3.4,
3.5,
2.3,
3.2,
3.5,
3.8,
3,
3.8,
3.2,
3.7,
3.3,
1.4,
1.4,
1.3,
1.5,
1.4,
1.7,
1.4,
1.5,
1.4,
1.5,
1.5,
1.6,
1.4,
1.1,
1.2,
1.5,
1.3,
1.4,
1.7,
1.5,
1.7,
1.5,
1,
1.7,
1.9,
1.6,
1.6,
1.5,
1.4,
1.6,
1.6,
1.5,
1.5,
1.4,
1.5,
1.2,
1.3,
1.5,
1.3,
1.5,
1.3,
1.3,
1.3,
1.6,
1.9,
1.4,
1.6,
1.4,
1.5,
1.4,
0.2,
0.2,
0.2,
0.2,
0.2,
0.4,
0.3,
0.2,
0.2,
0.1,
0.2,
0.2,
0.1,
0.1,
0.2,
0.4,
0.4,
0.3,
0.3,
0.3,
0.2,
0.4,
0.2,
0.5,
0.2,
0.2,
0.4,
0.2,
0.2,
0.2,
0.2,
0.4,
0.1,
0.2,
0.1,
0.2,
0.2,
0.1,
0.2,
0.2,
0.3,
0.3,
0.2,
0.6,
0.4,
0.3,
0.2,
0.2,
0.2,
0.2
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa"
},
"name": "Iris-setosa",
"notched": true,
"offsetgroup": "Iris-setosa",
"showlegend": false,
"type": "box",
"x": [
5.1,
4.9,
4.7,
4.6,
5,
5.4,
4.6,
5,
4.4,
4.9,
5.4,
4.8,
4.8,
4.3,
5.8,
5.7,
5.4,
5.1,
5.7,
5.1,
5.4,
5.1,
4.6,
5.1,
4.8,
5,
5,
5.2,
5.2,
4.7,
4.8,
5.4,
5.2,
5.5,
4.9,
5,
5.5,
4.9,
4.4,
5.1,
5,
4.5,
4.4,
5,
5.1,
4.8,
5.1,
4.6,
5.3,
5,
3.5,
3,
3.2,
3.1,
3.6,
3.9,
3.4,
3.4,
2.9,
3.1,
3.7,
3.4,
3,
3,
4,
4.4,
3.9,
3.5,
3.8,
3.8,
3.4,
3.7,
3.6,
3.3,
3.4,
3,
3.4,
3.5,
3.4,
3.2,
3.1,
3.4,
4.1,
4.2,
3.1,
3.2,
3.5,
3.1,
3,
3.4,
3.5,
2.3,
3.2,
3.5,
3.8,
3,
3.8,
3.2,
3.7,
3.3,
1.4,
1.4,
1.3,
1.5,
1.4,
1.7,
1.4,
1.5,
1.4,
1.5,
1.5,
1.6,
1.4,
1.1,
1.2,
1.5,
1.3,
1.4,
1.7,
1.5,
1.7,
1.5,
1,
1.7,
1.9,
1.6,
1.6,
1.5,
1.4,
1.6,
1.6,
1.5,
1.5,
1.4,
1.5,
1.2,
1.3,
1.5,
1.3,
1.5,
1.3,
1.3,
1.3,
1.6,
1.9,
1.4,
1.6,
1.4,
1.5,
1.4,
0.2,
0.2,
0.2,
0.2,
0.2,
0.4,
0.3,
0.2,
0.2,
0.1,
0.2,
0.2,
0.1,
0.1,
0.2,
0.4,
0.4,
0.3,
0.3,
0.3,
0.2,
0.4,
0.2,
0.5,
0.2,
0.2,
0.4,
0.2,
0.2,
0.2,
0.2,
0.4,
0.1,
0.2,
0.1,
0.2,
0.2,
0.1,
0.2,
0.2,
0.3,
0.3,
0.2,
0.6,
0.4,
0.3,
0.2,
0.2,
0.2,
0.2
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
7,
6.4,
6.9,
5.5,
6.5,
5.7,
6.3,
4.9,
6.6,
5.2,
5,
5.9,
6,
6.1,
5.6,
6.7,
5.6,
5.8,
6.2,
5.6,
5.9,
6.1,
6.3,
6.1,
6.4,
6.6,
6.8,
6.7,
6,
5.7,
5.5,
5.5,
5.8,
6,
5.4,
6,
6.7,
6.3,
5.6,
5.5,
5.5,
6.1,
5.8,
5,
5.6,
5.7,
5.7,
6.2,
5.1,
5.7,
3.2,
3.2,
3.1,
2.3,
2.8,
2.8,
3.3,
2.4,
2.9,
2.7,
2,
3,
2.2,
2.9,
2.9,
3.1,
3,
2.7,
2.2,
2.5,
3.2,
2.8,
2.5,
2.8,
2.9,
3,
2.8,
3,
2.9,
2.6,
2.4,
2.4,
2.7,
2.7,
3,
3.4,
3.1,
2.3,
3,
2.5,
2.6,
3,
2.6,
2.3,
2.7,
3,
2.9,
2.9,
2.5,
2.8,
4.7,
4.5,
4.9,
4,
4.6,
4.5,
4.7,
3.3,
4.6,
3.9,
3.5,
4.2,
4,
4.7,
3.6,
4.4,
4.5,
4.1,
4.5,
3.9,
4.8,
4,
4.9,
4.7,
4.3,
4.4,
4.8,
5,
4.5,
3.5,
3.8,
3.7,
3.9,
5.1,
4.5,
4.5,
4.7,
4.4,
4.1,
4,
4.4,
4.6,
4,
3.3,
4.2,
4.2,
4.2,
4.3,
3,
4.1,
1.4,
1.5,
1.5,
1.3,
1.5,
1.3,
1.6,
1,
1.3,
1.4,
1,
1.5,
1,
1.4,
1.3,
1.4,
1.5,
1,
1.5,
1.1,
1.8,
1.3,
1.5,
1.2,
1.3,
1.4,
1.4,
1.7,
1.5,
1,
1.1,
1,
1.2,
1.6,
1.5,
1.6,
1.5,
1.3,
1.3,
1.3,
1.2,
1.4,
1.2,
1,
1.3,
1.2,
1.3,
1.3,
1.1,
1.3
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B"
},
"name": "Iris-versicolor",
"notched": true,
"offsetgroup": "Iris-versicolor",
"showlegend": false,
"type": "box",
"x": [
7,
6.4,
6.9,
5.5,
6.5,
5.7,
6.3,
4.9,
6.6,
5.2,
5,
5.9,
6,
6.1,
5.6,
6.7,
5.6,
5.8,
6.2,
5.6,
5.9,
6.1,
6.3,
6.1,
6.4,
6.6,
6.8,
6.7,
6,
5.7,
5.5,
5.5,
5.8,
6,
5.4,
6,
6.7,
6.3,
5.6,
5.5,
5.5,
6.1,
5.8,
5,
5.6,
5.7,
5.7,
6.2,
5.1,
5.7,
3.2,
3.2,
3.1,
2.3,
2.8,
2.8,
3.3,
2.4,
2.9,
2.7,
2,
3,
2.2,
2.9,
2.9,
3.1,
3,
2.7,
2.2,
2.5,
3.2,
2.8,
2.5,
2.8,
2.9,
3,
2.8,
3,
2.9,
2.6,
2.4,
2.4,
2.7,
2.7,
3,
3.4,
3.1,
2.3,
3,
2.5,
2.6,
3,
2.6,
2.3,
2.7,
3,
2.9,
2.9,
2.5,
2.8,
4.7,
4.5,
4.9,
4,
4.6,
4.5,
4.7,
3.3,
4.6,
3.9,
3.5,
4.2,
4,
4.7,
3.6,
4.4,
4.5,
4.1,
4.5,
3.9,
4.8,
4,
4.9,
4.7,
4.3,
4.4,
4.8,
5,
4.5,
3.5,
3.8,
3.7,
3.9,
5.1,
4.5,
4.5,
4.7,
4.4,
4.1,
4,
4.4,
4.6,
4,
3.3,
4.2,
4.2,
4.2,
4.3,
3,
4.1,
1.4,
1.5,
1.5,
1.3,
1.5,
1.3,
1.6,
1,
1.3,
1.4,
1,
1.5,
1,
1.4,
1.3,
1.4,
1.5,
1,
1.5,
1.1,
1.8,
1.3,
1.5,
1.2,
1.3,
1.4,
1.4,
1.7,
1.5,
1,
1.1,
1,
1.2,
1.6,
1.5,
1.6,
1.5,
1.3,
1.3,
1.3,
1.2,
1.4,
1.2,
1,
1.3,
1.2,
1.3,
1.3,
1.1,
1.3
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
6.3,
5.8,
7.1,
6.3,
6.5,
7.6,
4.9,
7.3,
6.7,
7.2,
6.5,
6.4,
6.8,
5.7,
5.8,
6.4,
6.5,
7.7,
7.7,
6,
6.9,
5.6,
7.7,
6.3,
6.7,
7.2,
6.2,
6.1,
6.4,
7.2,
7.4,
7.9,
6.4,
6.3,
6.1,
7.7,
6.3,
6.4,
6,
6.9,
6.7,
6.9,
5.8,
6.8,
6.7,
6.7,
6.3,
6.5,
6.2,
5.9,
3.3,
2.7,
3,
2.9,
3,
3,
2.5,
2.9,
2.5,
3.6,
3.2,
2.7,
3,
2.5,
2.8,
3.2,
3,
3.8,
2.6,
2.2,
3.2,
2.8,
2.8,
2.7,
3.3,
3.2,
2.8,
3,
2.8,
3,
2.8,
3.8,
2.8,
2.8,
2.6,
3,
3.4,
3.1,
3,
3.1,
3.1,
3.1,
2.7,
3.2,
3.3,
3,
2.5,
3,
3.4,
3,
6,
5.1,
5.9,
5.6,
5.8,
6.6,
4.5,
6.3,
5.8,
6.1,
5.1,
5.3,
5.5,
5,
5.1,
5.3,
5.5,
6.7,
6.9,
5,
5.7,
4.9,
6.7,
4.9,
5.7,
6,
4.8,
4.9,
5.6,
5.8,
6.1,
6.4,
5.6,
5.1,
5.6,
6.1,
5.6,
5.5,
4.8,
5.4,
5.6,
5.1,
5.1,
5.9,
5.7,
5.2,
5,
5.2,
5.4,
5.1,
2.5,
1.9,
2.1,
1.8,
2.2,
2.1,
1.7,
1.8,
1.8,
2.5,
2,
1.9,
2.1,
2,
2.4,
2.3,
1.8,
2.2,
2.3,
1.5,
2.3,
2,
2,
1.8,
2.1,
1.8,
1.8,
1.8,
2.1,
1.6,
1.9,
2,
2.2,
1.5,
1.4,
2.3,
2.4,
1.8,
1.8,
2.1,
2.4,
2.3,
1.9,
2.3,
2.5,
2.3,
1.9,
2,
2.3,
1.8
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96"
},
"name": "Iris-virginica",
"notched": true,
"offsetgroup": "Iris-virginica",
"showlegend": false,
"type": "box",
"x": [
6.3,
5.8,
7.1,
6.3,
6.5,
7.6,
4.9,
7.3,
6.7,
7.2,
6.5,
6.4,
6.8,
5.7,
5.8,
6.4,
6.5,
7.7,
7.7,
6,
6.9,
5.6,
7.7,
6.3,
6.7,
7.2,
6.2,
6.1,
6.4,
7.2,
7.4,
7.9,
6.4,
6.3,
6.1,
7.7,
6.3,
6.4,
6,
6.9,
6.7,
6.9,
5.8,
6.8,
6.7,
6.7,
6.3,
6.5,
6.2,
5.9,
3.3,
2.7,
3,
2.9,
3,
3,
2.5,
2.9,
2.5,
3.6,
3.2,
2.7,
3,
2.5,
2.8,
3.2,
3,
3.8,
2.6,
2.2,
3.2,
2.8,
2.8,
2.7,
3.3,
3.2,
2.8,
3,
2.8,
3,
2.8,
3.8,
2.8,
2.8,
2.6,
3,
3.4,
3.1,
3,
3.1,
3.1,
3.1,
2.7,
3.2,
3.3,
3,
2.5,
3,
3.4,
3,
6,
5.1,
5.9,
5.6,
5.8,
6.6,
4.5,
6.3,
5.8,
6.1,
5.1,
5.3,
5.5,
5,
5.1,
5.3,
5.5,
6.7,
6.9,
5,
5.7,
4.9,
6.7,
4.9,
5.7,
6,
4.8,
4.9,
5.6,
5.8,
6.1,
6.4,
5.6,
5.1,
5.6,
6.1,
5.6,
5.5,
4.8,
5.4,
5.6,
5.1,
5.1,
5.9,
5.7,
5.2,
5,
5.2,
5.4,
5.1,
2.5,
1.9,
2.1,
1.8,
2.2,
2.1,
1.7,
1.8,
1.8,
2.5,
2,
1.9,
2.1,
2,
2.4,
2.3,
1.8,
2.2,
2.3,
1.5,
2.3,
2,
2,
1.8,
2.1,
1.8,
1.8,
1.8,
2.1,
1.6,
1.9,
2,
2.2,
1.5,
1.4,
2.3,
2.4,
1.8,
1.8,
2.1,
2.4,
2.3,
1.9,
2.3,
2.5,
2.3,
1.9,
2,
2.3,
1.8
],
"xaxis": "x2",
"yaxis": "y2"
}
],
"layout": {
"barmode": "overlay",
"height": 800,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Histogram of iris data set"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "value"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0,
1
],
"matches": "x",
"showgrid": true,
"showticklabels": false
},
"yaxis": {
"anchor": "x",
"domain": [
0,
0.7326
],
"title": {
"text": "count"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.7426,
1
],
"matches": "y2",
"showgrid": false,
"showline": false,
"showticklabels": false,
"ticks": ""
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"histgram = px.histogram(\n",
" df, \n",
" color=\"class\",\n",
" height=800, \n",
" width=900,\n",
" title=\"Histogram of iris data set\",\n",
" barmode='overlay',\n",
" marginal='box',\n",
" )\n",
"histgram.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Pairplot (散布図)"
]
},
{
"cell_type": "code",
"execution_count": 110,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/mriki/.pyenv/versions/miniforge3-4.10.3-10/lib/python3.9/site-packages/plotly/express/_core.py:279: FutureWarning:\n",
"\n",
"iteritems is deprecated and will be removed in a future version. Use .items instead.\n",
"\n"
]
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"dimensions": [
{
"axis": {
"matches": true
},
"label": "sepal length",
"values": [
5.1,
4.9,
4.7,
4.6,
5,
5.4,
4.6,
5,
4.4,
4.9,
5.4,
4.8,
4.8,
4.3,
5.8,
5.7,
5.4,
5.1,
5.7,
5.1,
5.4,
5.1,
4.6,
5.1,
4.8,
5,
5,
5.2,
5.2,
4.7,
4.8,
5.4,
5.2,
5.5,
4.9,
5,
5.5,
4.9,
4.4,
5.1,
5,
4.5,
4.4,
5,
5.1,
4.8,
5.1,
4.6,
5.3,
5
]
},
{
"axis": {
"matches": true
},
"label": "sepal width",
"values": [
3.5,
3,
3.2,
3.1,
3.6,
3.9,
3.4,
3.4,
2.9,
3.1,
3.7,
3.4,
3,
3,
4,
4.4,
3.9,
3.5,
3.8,
3.8,
3.4,
3.7,
3.6,
3.3,
3.4,
3,
3.4,
3.5,
3.4,
3.2,
3.1,
3.4,
4.1,
4.2,
3.1,
3.2,
3.5,
3.1,
3,
3.4,
3.5,
2.3,
3.2,
3.5,
3.8,
3,
3.8,
3.2,
3.7,
3.3
]
},
{
"axis": {
"matches": true
},
"label": "petal length",
"values": [
1.4,
1.4,
1.3,
1.5,
1.4,
1.7,
1.4,
1.5,
1.4,
1.5,
1.5,
1.6,
1.4,
1.1,
1.2,
1.5,
1.3,
1.4,
1.7,
1.5,
1.7,
1.5,
1,
1.7,
1.9,
1.6,
1.6,
1.5,
1.4,
1.6,
1.6,
1.5,
1.5,
1.4,
1.5,
1.2,
1.3,
1.5,
1.3,
1.5,
1.3,
1.3,
1.3,
1.6,
1.9,
1.4,
1.6,
1.4,
1.5,
1.4
]
}
],
"hovertemplate": "class=Iris-setosa<br>%{xaxis.title.text}=%{x}<br>%{yaxis.title.text}=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"name": "Iris-setosa",
"showlegend": true,
"type": "splom"
},
{
"dimensions": [
{
"axis": {
"matches": true
},
"label": "sepal length",
"values": [
7,
6.4,
6.9,
5.5,
6.5,
5.7,
6.3,
4.9,
6.6,
5.2,
5,
5.9,
6,
6.1,
5.6,
6.7,
5.6,
5.8,
6.2,
5.6,
5.9,
6.1,
6.3,
6.1,
6.4,
6.6,
6.8,
6.7,
6,
5.7,
5.5,
5.5,
5.8,
6,
5.4,
6,
6.7,
6.3,
5.6,
5.5,
5.5,
6.1,
5.8,
5,
5.6,
5.7,
5.7,
6.2,
5.1,
5.7
]
},
{
"axis": {
"matches": true
},
"label": "sepal width",
"values": [
3.2,
3.2,
3.1,
2.3,
2.8,
2.8,
3.3,
2.4,
2.9,
2.7,
2,
3,
2.2,
2.9,
2.9,
3.1,
3,
2.7,
2.2,
2.5,
3.2,
2.8,
2.5,
2.8,
2.9,
3,
2.8,
3,
2.9,
2.6,
2.4,
2.4,
2.7,
2.7,
3,
3.4,
3.1,
2.3,
3,
2.5,
2.6,
3,
2.6,
2.3,
2.7,
3,
2.9,
2.9,
2.5,
2.8
]
},
{
"axis": {
"matches": true
},
"label": "petal length",
"values": [
4.7,
4.5,
4.9,
4,
4.6,
4.5,
4.7,
3.3,
4.6,
3.9,
3.5,
4.2,
4,
4.7,
3.6,
4.4,
4.5,
4.1,
4.5,
3.9,
4.8,
4,
4.9,
4.7,
4.3,
4.4,
4.8,
5,
4.5,
3.5,
3.8,
3.7,
3.9,
5.1,
4.5,
4.5,
4.7,
4.4,
4.1,
4,
4.4,
4.6,
4,
3.3,
4.2,
4.2,
4.2,
4.3,
3,
4.1
]
}
],
"hovertemplate": "class=Iris-versicolor<br>%{xaxis.title.text}=%{x}<br>%{yaxis.title.text}=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"name": "Iris-versicolor",
"showlegend": true,
"type": "splom"
},
{
"dimensions": [
{
"axis": {
"matches": true
},
"label": "sepal length",
"values": [
6.3,
5.8,
7.1,
6.3,
6.5,
7.6,
4.9,
7.3,
6.7,
7.2,
6.5,
6.4,
6.8,
5.7,
5.8,
6.4,
6.5,
7.7,
7.7,
6,
6.9,
5.6,
7.7,
6.3,
6.7,
7.2,
6.2,
6.1,
6.4,
7.2,
7.4,
7.9,
6.4,
6.3,
6.1,
7.7,
6.3,
6.4,
6,
6.9,
6.7,
6.9,
5.8,
6.8,
6.7,
6.7,
6.3,
6.5,
6.2,
5.9
]
},
{
"axis": {
"matches": true
},
"label": "sepal width",
"values": [
3.3,
2.7,
3,
2.9,
3,
3,
2.5,
2.9,
2.5,
3.6,
3.2,
2.7,
3,
2.5,
2.8,
3.2,
3,
3.8,
2.6,
2.2,
3.2,
2.8,
2.8,
2.7,
3.3,
3.2,
2.8,
3,
2.8,
3,
2.8,
3.8,
2.8,
2.8,
2.6,
3,
3.4,
3.1,
3,
3.1,
3.1,
3.1,
2.7,
3.2,
3.3,
3,
2.5,
3,
3.4,
3
]
},
{
"axis": {
"matches": true
},
"label": "petal length",
"values": [
6,
5.1,
5.9,
5.6,
5.8,
6.6,
4.5,
6.3,
5.8,
6.1,
5.1,
5.3,
5.5,
5,
5.1,
5.3,
5.5,
6.7,
6.9,
5,
5.7,
4.9,
6.7,
4.9,
5.7,
6,
4.8,
4.9,
5.6,
5.8,
6.1,
6.4,
5.6,
5.1,
5.6,
6.1,
5.6,
5.5,
4.8,
5.4,
5.6,
5.1,
5.1,
5.9,
5.7,
5.2,
5,
5.2,
5.4,
5.1
]
}
],
"hovertemplate": "class=Iris-virginica<br>%{xaxis.title.text}=%{x}<br>%{yaxis.title.text}=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"symbol": "circle"
},
"name": "Iris-virginica",
"showlegend": true,
"type": "splom"
}
],
"layout": {
"dragmode": "select",
"height": 800,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Scatter matrix of iris data set"
},
"width": 900
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"pairplot = px.scatter_matrix(df,\n",
" dimensions=df.columns[:3],\n",
" color=\"class\",\n",
" height=800, \n",
" width=900,\n",
" title=\"Scatter matrix of iris data set\",\n",
" )\n",
"pairplot.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### ここまでの可視化で分かったこと\n",
"\n",
"四つの特徴は、クラスごとに差分がありそうです。また特徴毎にスケールが違うようです。\n",
"クラス分類などを目的に機械学習モデルにこのままデータを入れた場合、特徴ごとに不要なスケールの違いを除去した方が良さそうですね。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## データの前処理"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Min Max Normalization (Min Max Scaling)\n",
"\n",
"ある特徴量$\\vec{x}$が与えられた時、値が0~1の範囲で収まるように変形した特徴量を作る。\n",
"\\begin{equation}\n",
"\\vec{x}_{n e w}=\\frac{\\vec{x}-\\min (\\vec{x})}{\\max (\\vec{x})-\\min (\\vec{x})}\n",
"\\end{equation}\n",
"\n",
"式の通りにpandasのメソッドを使って実装してみよう。"
]
},
{
"cell_type": "code",
"execution_count": 111,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sepal length</th>\n",
" <th>sepal width</th>\n",
" <th>petal length</th>\n",
" <th>petal width</th>\n",
" <th>class</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.222222</td>\n",
" <td>0.625000</td>\n",
" <td>0.067797</td>\n",
" <td>0.041667</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>0.166667</td>\n",
" <td>0.416667</td>\n",
" <td>0.067797</td>\n",
" <td>0.041667</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.111111</td>\n",
" <td>0.500000</td>\n",
" <td>0.050847</td>\n",
" <td>0.041667</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>0.083333</td>\n",
" <td>0.458333</td>\n",
" <td>0.084746</td>\n",
" <td>0.041667</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0.194444</td>\n",
" <td>0.666667</td>\n",
" <td>0.067797</td>\n",
" <td>0.041667</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>145</th>\n",
" <td>0.666667</td>\n",
" <td>0.416667</td>\n",
" <td>0.711864</td>\n",
" <td>0.916667</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>146</th>\n",
" <td>0.555556</td>\n",
" <td>0.208333</td>\n",
" <td>0.677966</td>\n",
" <td>0.750000</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>147</th>\n",
" <td>0.611111</td>\n",
" <td>0.416667</td>\n",
" <td>0.711864</td>\n",
" <td>0.791667</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>148</th>\n",
" <td>0.527778</td>\n",
" <td>0.583333</td>\n",
" <td>0.745763</td>\n",
" <td>0.916667</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>149</th>\n",
" <td>0.444444</td>\n",
" <td>0.416667</td>\n",
" <td>0.694915</td>\n",
" <td>0.708333</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>150 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" sepal length sepal width petal length petal width class\n",
"0 0.222222 0.625000 0.067797 0.041667 Iris-setosa\n",
"1 0.166667 0.416667 0.067797 0.041667 Iris-setosa\n",
"2 0.111111 0.500000 0.050847 0.041667 Iris-setosa\n",
"3 0.083333 0.458333 0.084746 0.041667 Iris-setosa\n",
"4 0.194444 0.666667 0.067797 0.041667 Iris-setosa\n",
".. ... ... ... ... ...\n",
"145 0.666667 0.416667 0.711864 0.916667 Iris-virginica\n",
"146 0.555556 0.208333 0.677966 0.750000 Iris-virginica\n",
"147 0.611111 0.416667 0.711864 0.791667 Iris-virginica\n",
"148 0.527778 0.583333 0.745763 0.916667 Iris-virginica\n",
"149 0.444444 0.416667 0.694915 0.708333 Iris-virginica\n",
"\n",
"[150 rows x 5 columns]"
]
},
"execution_count": 111,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2 = df.iloc[:,:-1]\n",
"\n",
"normalized_df = (df2 - df2.min()) / (df2.max() - df2.min())\n",
"normalized_df[\"class\"] = df[\"class\"]\n",
"normalized_df"
]
},
{
"cell_type": "code",
"execution_count": 112,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
0.22222222222222213,
0.1666666666666668,
0.11111111111111119,
0.08333333333333327,
0.19444444444444448,
0.30555555555555564,
0.08333333333333327,
0.19444444444444448,
0.027777777777777922,
0.1666666666666668,
0.30555555555555564,
0.13888888888888887,
0.13888888888888887,
0,
0.41666666666666663,
0.38888888888888895,
0.30555555555555564,
0.22222222222222213,
0.38888888888888895,
0.22222222222222213,
0.30555555555555564,
0.22222222222222213,
0.08333333333333327,
0.22222222222222213,
0.13888888888888887,
0.19444444444444448,
0.19444444444444448,
0.25000000000000006,
0.25000000000000006,
0.11111111111111119,
0.13888888888888887,
0.30555555555555564,
0.25000000000000006,
0.3333333333333333,
0.1666666666666668,
0.19444444444444448,
0.3333333333333333,
0.1666666666666668,
0.027777777777777922,
0.22222222222222213,
0.19444444444444448,
0.055555555555555594,
0.027777777777777922,
0.19444444444444448,
0.22222222222222213,
0.13888888888888887,
0.22222222222222213,
0.08333333333333327,
0.27777777777777773,
0.19444444444444448
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.7499999999999999,
0.5833333333333334,
0.7222222222222222,
0.3333333333333333,
0.611111111111111,
0.38888888888888895,
0.5555555555555555,
0.1666666666666668,
0.6388888888888887,
0.25000000000000006,
0.19444444444444448,
0.44444444444444453,
0.4722222222222222,
0.4999999999999999,
0.361111111111111,
0.6666666666666666,
0.361111111111111,
0.41666666666666663,
0.5277777777777778,
0.361111111111111,
0.44444444444444453,
0.4999999999999999,
0.5555555555555555,
0.4999999999999999,
0.5833333333333334,
0.6388888888888887,
0.6944444444444443,
0.6666666666666666,
0.4722222222222222,
0.38888888888888895,
0.3333333333333333,
0.3333333333333333,
0.41666666666666663,
0.4722222222222222,
0.30555555555555564,
0.4722222222222222,
0.6666666666666666,
0.5555555555555555,
0.361111111111111,
0.3333333333333333,
0.3333333333333333,
0.4999999999999999,
0.41666666666666663,
0.19444444444444448,
0.361111111111111,
0.38888888888888895,
0.38888888888888895,
0.5277777777777778,
0.22222222222222213,
0.38888888888888895
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
0.5555555555555555,
0.41666666666666663,
0.7777777777777776,
0.5555555555555555,
0.611111111111111,
0.9166666666666665,
0.1666666666666668,
0.8333333333333333,
0.6666666666666666,
0.8055555555555556,
0.611111111111111,
0.5833333333333334,
0.6944444444444443,
0.38888888888888895,
0.41666666666666663,
0.5833333333333334,
0.611111111111111,
0.9444444444444444,
0.9444444444444444,
0.4722222222222222,
0.7222222222222222,
0.361111111111111,
0.9444444444444444,
0.5555555555555555,
0.6666666666666666,
0.8055555555555556,
0.5277777777777778,
0.4999999999999999,
0.5833333333333334,
0.8055555555555556,
0.8611111111111112,
1,
0.5833333333333334,
0.5555555555555555,
0.4999999999999999,
0.9444444444444444,
0.5555555555555555,
0.5833333333333334,
0.4722222222222222,
0.7222222222222222,
0.6666666666666666,
0.7222222222222222,
0.41666666666666663,
0.6944444444444443,
0.6666666666666666,
0.6666666666666666,
0.5555555555555555,
0.611111111111111,
0.5277777777777778,
0.44444444444444453
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
1
],
"title": {
"text": "sepal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
0.6249999999999999,
0.41666666666666663,
0.5,
0.4583333333333333,
0.6666666666666666,
0.7916666666666665,
0.5833333333333333,
0.5833333333333333,
0.3749999999999999,
0.4583333333333333,
0.7083333333333333,
0.5833333333333333,
0.41666666666666663,
0.41666666666666663,
0.8333333333333333,
1,
0.7916666666666665,
0.6249999999999999,
0.7499999999999998,
0.7499999999999998,
0.5833333333333333,
0.7083333333333333,
0.6666666666666666,
0.5416666666666665,
0.5833333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.5833333333333333,
0.5,
0.4583333333333333,
0.5833333333333333,
0.8749999999999998,
0.9166666666666666,
0.4583333333333333,
0.5,
0.6249999999999999,
0.4583333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.1249999999999999,
0.5,
0.6249999999999999,
0.7499999999999998,
0.41666666666666663,
0.7499999999999998,
0.5,
0.7083333333333333,
0.5416666666666665
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.5,
0.5,
0.4583333333333333,
0.1249999999999999,
0.3333333333333332,
0.3333333333333332,
0.5416666666666665,
0.1666666666666666,
0.3749999999999999,
0.2916666666666667,
0,
0.41666666666666663,
0.0833333333333334,
0.3749999999999999,
0.3749999999999999,
0.4583333333333333,
0.41666666666666663,
0.2916666666666667,
0.0833333333333334,
0.20833333333333331,
0.5,
0.3333333333333332,
0.20833333333333331,
0.3333333333333332,
0.3749999999999999,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3749999999999999,
0.25,
0.1666666666666666,
0.1666666666666666,
0.2916666666666667,
0.2916666666666667,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.1249999999999999,
0.41666666666666663,
0.20833333333333331,
0.25,
0.41666666666666663,
0.25,
0.1249999999999999,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.3749999999999999,
0.20833333333333331,
0.3333333333333332
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
0.5416666666666665,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.41666666666666663,
0.41666666666666663,
0.20833333333333331,
0.3749999999999999,
0.20833333333333331,
0.6666666666666666,
0.5,
0.2916666666666667,
0.41666666666666663,
0.20833333333333331,
0.3333333333333332,
0.5,
0.41666666666666663,
0.7499999999999998,
0.25,
0.0833333333333334,
0.5,
0.3333333333333332,
0.3333333333333332,
0.2916666666666667,
0.5416666666666665,
0.5,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.7499999999999998,
0.3333333333333332,
0.3333333333333332,
0.25,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.41666666666666663,
0.4583333333333333,
0.4583333333333333,
0.4583333333333333,
0.2916666666666667,
0.5,
0.5416666666666665,
0.41666666666666663,
0.20833333333333331,
0.41666666666666663,
0.5833333333333333,
0.41666666666666663
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
1
],
"title": {
"text": "sepal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
0.06779661016949151,
0.06779661016949151,
0.05084745762711865,
0.0847457627118644,
0.06779661016949151,
0.11864406779661016,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.0847457627118644,
0.1016949152542373,
0.06779661016949151,
0.016949152542372895,
0.033898305084745756,
0.0847457627118644,
0.05084745762711865,
0.06779661016949151,
0.11864406779661016,
0.0847457627118644,
0.11864406779661016,
0.0847457627118644,
0,
0.11864406779661016,
0.15254237288135591,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.06779661016949151,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.033898305084745756,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.05084745762711865,
0.05084745762711865,
0.1016949152542373,
0.15254237288135591,
0.06779661016949151,
0.1016949152542373,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.6271186440677966,
0.5932203389830508,
0.6610169491525424,
0.5084745762711864,
0.6101694915254237,
0.5932203389830508,
0.6271186440677966,
0.38983050847457623,
0.6101694915254237,
0.4915254237288135,
0.423728813559322,
0.5423728813559322,
0.5084745762711864,
0.6271186440677966,
0.4406779661016949,
0.576271186440678,
0.5932203389830508,
0.5254237288135593,
0.5932203389830508,
0.4915254237288135,
0.6440677966101694,
0.5084745762711864,
0.6610169491525424,
0.6271186440677966,
0.559322033898305,
0.576271186440678,
0.6440677966101694,
0.6779661016949152,
0.5932203389830508,
0.423728813559322,
0.47457627118644063,
0.4576271186440678,
0.4915254237288135,
0.6949152542372881,
0.5932203389830508,
0.5932203389830508,
0.6271186440677966,
0.576271186440678,
0.5254237288135593,
0.5084745762711864,
0.576271186440678,
0.6101694915254237,
0.5084745762711864,
0.38983050847457623,
0.5423728813559322,
0.5423728813559322,
0.5423728813559322,
0.559322033898305,
0.3389830508474576,
0.5254237288135593
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
0.847457627118644,
0.6949152542372881,
0.8305084745762712,
0.7796610169491525,
0.8135593220338982,
0.9491525423728813,
0.5932203389830508,
0.8983050847457626,
0.8135593220338982,
0.8644067796610169,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.6779661016949152,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.9661016949152542,
1,
0.6779661016949152,
0.7966101694915254,
0.6610169491525424,
0.9661016949152542,
0.6610169491525424,
0.7966101694915254,
0.847457627118644,
0.6440677966101694,
0.6610169491525424,
0.7796610169491525,
0.8135593220338982,
0.8644067796610169,
0.9152542372881356,
0.7796610169491525,
0.6949152542372881,
0.7796610169491525,
0.8644067796610169,
0.7796610169491525,
0.7627118644067796,
0.6440677966101694,
0.7457627118644068,
0.7796610169491525,
0.6949152542372881,
0.6949152542372881,
0.8305084745762712,
0.7966101694915254,
0.711864406779661,
0.6779661016949152,
0.711864406779661,
0.7457627118644068,
0.6949152542372881
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
1
],
"title": {
"text": "petal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0,
0.04166666666666667,
0.12500000000000003,
0.12500000000000003,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.16666666666666669,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.20833333333333334,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.5416666666666666,
0.5833333333333334,
0.5833333333333334,
0.5,
0.5833333333333334,
0.5,
0.625,
0.375,
0.5,
0.5416666666666666,
0.375,
0.5833333333333334,
0.375,
0.5416666666666666,
0.5,
0.5416666666666666,
0.5833333333333334,
0.375,
0.5833333333333334,
0.4166666666666667,
0.7083333333333334,
0.5,
0.5833333333333334,
0.4583333333333333,
0.5,
0.5416666666666666,
0.5416666666666666,
0.6666666666666666,
0.5833333333333334,
0.375,
0.4166666666666667,
0.375,
0.4583333333333333,
0.625,
0.5833333333333334,
0.625,
0.5833333333333334,
0.5,
0.5,
0.5,
0.4583333333333333,
0.5416666666666666,
0.4583333333333333,
0.375,
0.5,
0.4583333333333333,
0.5,
0.5,
0.4166666666666667,
0.5
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
1,
0.75,
0.8333333333333334,
0.7083333333333334,
0.8750000000000001,
0.8333333333333334,
0.6666666666666666,
0.7083333333333334,
0.7083333333333334,
1,
0.7916666666666666,
0.75,
0.8333333333333334,
0.7916666666666666,
0.9583333333333333,
0.9166666666666666,
0.7083333333333334,
0.8750000000000001,
0.9166666666666666,
0.5833333333333334,
0.9166666666666666,
0.7916666666666666,
0.7916666666666666,
0.7083333333333334,
0.8333333333333334,
0.7083333333333334,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.625,
0.75,
0.7916666666666666,
0.8750000000000001,
0.5833333333333334,
0.5416666666666666,
0.9166666666666666,
0.9583333333333333,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.9583333333333333,
0.9166666666666666,
0.75,
0.9166666666666666,
1,
0.9166666666666666,
0.75,
0.7916666666666666,
0.9166666666666666,
0.7083333333333334
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
0,
1
],
"title": {
"text": "petal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"barplot_for_iris(normalized_df)"
]
},
{
"cell_type": "code",
"execution_count": 113,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
0.22222222222222213,
0.1666666666666668,
0.11111111111111119,
0.08333333333333327,
0.19444444444444448,
0.30555555555555564,
0.08333333333333327,
0.19444444444444448,
0.027777777777777922,
0.1666666666666668,
0.30555555555555564,
0.13888888888888887,
0.13888888888888887,
0,
0.41666666666666663,
0.38888888888888895,
0.30555555555555564,
0.22222222222222213,
0.38888888888888895,
0.22222222222222213,
0.30555555555555564,
0.22222222222222213,
0.08333333333333327,
0.22222222222222213,
0.13888888888888887,
0.19444444444444448,
0.19444444444444448,
0.25000000000000006,
0.25000000000000006,
0.11111111111111119,
0.13888888888888887,
0.30555555555555564,
0.25000000000000006,
0.3333333333333333,
0.1666666666666668,
0.19444444444444448,
0.3333333333333333,
0.1666666666666668,
0.027777777777777922,
0.22222222222222213,
0.19444444444444448,
0.055555555555555594,
0.027777777777777922,
0.19444444444444448,
0.22222222222222213,
0.13888888888888887,
0.22222222222222213,
0.08333333333333327,
0.27777777777777773,
0.19444444444444448,
0.6249999999999999,
0.41666666666666663,
0.5,
0.4583333333333333,
0.6666666666666666,
0.7916666666666665,
0.5833333333333333,
0.5833333333333333,
0.3749999999999999,
0.4583333333333333,
0.7083333333333333,
0.5833333333333333,
0.41666666666666663,
0.41666666666666663,
0.8333333333333333,
1,
0.7916666666666665,
0.6249999999999999,
0.7499999999999998,
0.7499999999999998,
0.5833333333333333,
0.7083333333333333,
0.6666666666666666,
0.5416666666666665,
0.5833333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.5833333333333333,
0.5,
0.4583333333333333,
0.5833333333333333,
0.8749999999999998,
0.9166666666666666,
0.4583333333333333,
0.5,
0.6249999999999999,
0.4583333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.1249999999999999,
0.5,
0.6249999999999999,
0.7499999999999998,
0.41666666666666663,
0.7499999999999998,
0.5,
0.7083333333333333,
0.5416666666666665,
0.06779661016949151,
0.06779661016949151,
0.05084745762711865,
0.0847457627118644,
0.06779661016949151,
0.11864406779661016,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.0847457627118644,
0.1016949152542373,
0.06779661016949151,
0.016949152542372895,
0.033898305084745756,
0.0847457627118644,
0.05084745762711865,
0.06779661016949151,
0.11864406779661016,
0.0847457627118644,
0.11864406779661016,
0.0847457627118644,
0,
0.11864406779661016,
0.15254237288135591,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.06779661016949151,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.033898305084745756,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.05084745762711865,
0.05084745762711865,
0.1016949152542373,
0.15254237288135591,
0.06779661016949151,
0.1016949152542373,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0,
0.04166666666666667,
0.12500000000000003,
0.12500000000000003,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.16666666666666669,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.20833333333333334,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa"
},
"name": "Iris-setosa",
"notched": true,
"offsetgroup": "Iris-setosa",
"showlegend": false,
"type": "box",
"x": [
0.22222222222222213,
0.1666666666666668,
0.11111111111111119,
0.08333333333333327,
0.19444444444444448,
0.30555555555555564,
0.08333333333333327,
0.19444444444444448,
0.027777777777777922,
0.1666666666666668,
0.30555555555555564,
0.13888888888888887,
0.13888888888888887,
0,
0.41666666666666663,
0.38888888888888895,
0.30555555555555564,
0.22222222222222213,
0.38888888888888895,
0.22222222222222213,
0.30555555555555564,
0.22222222222222213,
0.08333333333333327,
0.22222222222222213,
0.13888888888888887,
0.19444444444444448,
0.19444444444444448,
0.25000000000000006,
0.25000000000000006,
0.11111111111111119,
0.13888888888888887,
0.30555555555555564,
0.25000000000000006,
0.3333333333333333,
0.1666666666666668,
0.19444444444444448,
0.3333333333333333,
0.1666666666666668,
0.027777777777777922,
0.22222222222222213,
0.19444444444444448,
0.055555555555555594,
0.027777777777777922,
0.19444444444444448,
0.22222222222222213,
0.13888888888888887,
0.22222222222222213,
0.08333333333333327,
0.27777777777777773,
0.19444444444444448,
0.6249999999999999,
0.41666666666666663,
0.5,
0.4583333333333333,
0.6666666666666666,
0.7916666666666665,
0.5833333333333333,
0.5833333333333333,
0.3749999999999999,
0.4583333333333333,
0.7083333333333333,
0.5833333333333333,
0.41666666666666663,
0.41666666666666663,
0.8333333333333333,
1,
0.7916666666666665,
0.6249999999999999,
0.7499999999999998,
0.7499999999999998,
0.5833333333333333,
0.7083333333333333,
0.6666666666666666,
0.5416666666666665,
0.5833333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.5833333333333333,
0.5,
0.4583333333333333,
0.5833333333333333,
0.8749999999999998,
0.9166666666666666,
0.4583333333333333,
0.5,
0.6249999999999999,
0.4583333333333333,
0.41666666666666663,
0.5833333333333333,
0.6249999999999999,
0.1249999999999999,
0.5,
0.6249999999999999,
0.7499999999999998,
0.41666666666666663,
0.7499999999999998,
0.5,
0.7083333333333333,
0.5416666666666665,
0.06779661016949151,
0.06779661016949151,
0.05084745762711865,
0.0847457627118644,
0.06779661016949151,
0.11864406779661016,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.0847457627118644,
0.1016949152542373,
0.06779661016949151,
0.016949152542372895,
0.033898305084745756,
0.0847457627118644,
0.05084745762711865,
0.06779661016949151,
0.11864406779661016,
0.0847457627118644,
0.11864406779661016,
0.0847457627118644,
0,
0.11864406779661016,
0.15254237288135591,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.06779661016949151,
0.1016949152542373,
0.1016949152542373,
0.0847457627118644,
0.0847457627118644,
0.06779661016949151,
0.0847457627118644,
0.033898305084745756,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.0847457627118644,
0.05084745762711865,
0.05084745762711865,
0.05084745762711865,
0.1016949152542373,
0.15254237288135591,
0.06779661016949151,
0.1016949152542373,
0.06779661016949151,
0.0847457627118644,
0.06779661016949151,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0,
0.04166666666666667,
0.12500000000000003,
0.12500000000000003,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.16666666666666669,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.12500000000000003,
0,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0,
0.04166666666666667,
0.04166666666666667,
0.08333333333333333,
0.08333333333333333,
0.04166666666666667,
0.20833333333333334,
0.12500000000000003,
0.08333333333333333,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667,
0.04166666666666667
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
0.7499999999999999,
0.5833333333333334,
0.7222222222222222,
0.3333333333333333,
0.611111111111111,
0.38888888888888895,
0.5555555555555555,
0.1666666666666668,
0.6388888888888887,
0.25000000000000006,
0.19444444444444448,
0.44444444444444453,
0.4722222222222222,
0.4999999999999999,
0.361111111111111,
0.6666666666666666,
0.361111111111111,
0.41666666666666663,
0.5277777777777778,
0.361111111111111,
0.44444444444444453,
0.4999999999999999,
0.5555555555555555,
0.4999999999999999,
0.5833333333333334,
0.6388888888888887,
0.6944444444444443,
0.6666666666666666,
0.4722222222222222,
0.38888888888888895,
0.3333333333333333,
0.3333333333333333,
0.41666666666666663,
0.4722222222222222,
0.30555555555555564,
0.4722222222222222,
0.6666666666666666,
0.5555555555555555,
0.361111111111111,
0.3333333333333333,
0.3333333333333333,
0.4999999999999999,
0.41666666666666663,
0.19444444444444448,
0.361111111111111,
0.38888888888888895,
0.38888888888888895,
0.5277777777777778,
0.22222222222222213,
0.38888888888888895,
0.5,
0.5,
0.4583333333333333,
0.1249999999999999,
0.3333333333333332,
0.3333333333333332,
0.5416666666666665,
0.1666666666666666,
0.3749999999999999,
0.2916666666666667,
0,
0.41666666666666663,
0.0833333333333334,
0.3749999999999999,
0.3749999999999999,
0.4583333333333333,
0.41666666666666663,
0.2916666666666667,
0.0833333333333334,
0.20833333333333331,
0.5,
0.3333333333333332,
0.20833333333333331,
0.3333333333333332,
0.3749999999999999,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3749999999999999,
0.25,
0.1666666666666666,
0.1666666666666666,
0.2916666666666667,
0.2916666666666667,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.1249999999999999,
0.41666666666666663,
0.20833333333333331,
0.25,
0.41666666666666663,
0.25,
0.1249999999999999,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.3749999999999999,
0.20833333333333331,
0.3333333333333332,
0.6271186440677966,
0.5932203389830508,
0.6610169491525424,
0.5084745762711864,
0.6101694915254237,
0.5932203389830508,
0.6271186440677966,
0.38983050847457623,
0.6101694915254237,
0.4915254237288135,
0.423728813559322,
0.5423728813559322,
0.5084745762711864,
0.6271186440677966,
0.4406779661016949,
0.576271186440678,
0.5932203389830508,
0.5254237288135593,
0.5932203389830508,
0.4915254237288135,
0.6440677966101694,
0.5084745762711864,
0.6610169491525424,
0.6271186440677966,
0.559322033898305,
0.576271186440678,
0.6440677966101694,
0.6779661016949152,
0.5932203389830508,
0.423728813559322,
0.47457627118644063,
0.4576271186440678,
0.4915254237288135,
0.6949152542372881,
0.5932203389830508,
0.5932203389830508,
0.6271186440677966,
0.576271186440678,
0.5254237288135593,
0.5084745762711864,
0.576271186440678,
0.6101694915254237,
0.5084745762711864,
0.38983050847457623,
0.5423728813559322,
0.5423728813559322,
0.5423728813559322,
0.559322033898305,
0.3389830508474576,
0.5254237288135593,
0.5416666666666666,
0.5833333333333334,
0.5833333333333334,
0.5,
0.5833333333333334,
0.5,
0.625,
0.375,
0.5,
0.5416666666666666,
0.375,
0.5833333333333334,
0.375,
0.5416666666666666,
0.5,
0.5416666666666666,
0.5833333333333334,
0.375,
0.5833333333333334,
0.4166666666666667,
0.7083333333333334,
0.5,
0.5833333333333334,
0.4583333333333333,
0.5,
0.5416666666666666,
0.5416666666666666,
0.6666666666666666,
0.5833333333333334,
0.375,
0.4166666666666667,
0.375,
0.4583333333333333,
0.625,
0.5833333333333334,
0.625,
0.5833333333333334,
0.5,
0.5,
0.5,
0.4583333333333333,
0.5416666666666666,
0.4583333333333333,
0.375,
0.5,
0.4583333333333333,
0.5,
0.5,
0.4166666666666667,
0.5
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B"
},
"name": "Iris-versicolor",
"notched": true,
"offsetgroup": "Iris-versicolor",
"showlegend": false,
"type": "box",
"x": [
0.7499999999999999,
0.5833333333333334,
0.7222222222222222,
0.3333333333333333,
0.611111111111111,
0.38888888888888895,
0.5555555555555555,
0.1666666666666668,
0.6388888888888887,
0.25000000000000006,
0.19444444444444448,
0.44444444444444453,
0.4722222222222222,
0.4999999999999999,
0.361111111111111,
0.6666666666666666,
0.361111111111111,
0.41666666666666663,
0.5277777777777778,
0.361111111111111,
0.44444444444444453,
0.4999999999999999,
0.5555555555555555,
0.4999999999999999,
0.5833333333333334,
0.6388888888888887,
0.6944444444444443,
0.6666666666666666,
0.4722222222222222,
0.38888888888888895,
0.3333333333333333,
0.3333333333333333,
0.41666666666666663,
0.4722222222222222,
0.30555555555555564,
0.4722222222222222,
0.6666666666666666,
0.5555555555555555,
0.361111111111111,
0.3333333333333333,
0.3333333333333333,
0.4999999999999999,
0.41666666666666663,
0.19444444444444448,
0.361111111111111,
0.38888888888888895,
0.38888888888888895,
0.5277777777777778,
0.22222222222222213,
0.38888888888888895,
0.5,
0.5,
0.4583333333333333,
0.1249999999999999,
0.3333333333333332,
0.3333333333333332,
0.5416666666666665,
0.1666666666666666,
0.3749999999999999,
0.2916666666666667,
0,
0.41666666666666663,
0.0833333333333334,
0.3749999999999999,
0.3749999999999999,
0.4583333333333333,
0.41666666666666663,
0.2916666666666667,
0.0833333333333334,
0.20833333333333331,
0.5,
0.3333333333333332,
0.20833333333333331,
0.3333333333333332,
0.3749999999999999,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3749999999999999,
0.25,
0.1666666666666666,
0.1666666666666666,
0.2916666666666667,
0.2916666666666667,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.1249999999999999,
0.41666666666666663,
0.20833333333333331,
0.25,
0.41666666666666663,
0.25,
0.1249999999999999,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.3749999999999999,
0.20833333333333331,
0.3333333333333332,
0.6271186440677966,
0.5932203389830508,
0.6610169491525424,
0.5084745762711864,
0.6101694915254237,
0.5932203389830508,
0.6271186440677966,
0.38983050847457623,
0.6101694915254237,
0.4915254237288135,
0.423728813559322,
0.5423728813559322,
0.5084745762711864,
0.6271186440677966,
0.4406779661016949,
0.576271186440678,
0.5932203389830508,
0.5254237288135593,
0.5932203389830508,
0.4915254237288135,
0.6440677966101694,
0.5084745762711864,
0.6610169491525424,
0.6271186440677966,
0.559322033898305,
0.576271186440678,
0.6440677966101694,
0.6779661016949152,
0.5932203389830508,
0.423728813559322,
0.47457627118644063,
0.4576271186440678,
0.4915254237288135,
0.6949152542372881,
0.5932203389830508,
0.5932203389830508,
0.6271186440677966,
0.576271186440678,
0.5254237288135593,
0.5084745762711864,
0.576271186440678,
0.6101694915254237,
0.5084745762711864,
0.38983050847457623,
0.5423728813559322,
0.5423728813559322,
0.5423728813559322,
0.559322033898305,
0.3389830508474576,
0.5254237288135593,
0.5416666666666666,
0.5833333333333334,
0.5833333333333334,
0.5,
0.5833333333333334,
0.5,
0.625,
0.375,
0.5,
0.5416666666666666,
0.375,
0.5833333333333334,
0.375,
0.5416666666666666,
0.5,
0.5416666666666666,
0.5833333333333334,
0.375,
0.5833333333333334,
0.4166666666666667,
0.7083333333333334,
0.5,
0.5833333333333334,
0.4583333333333333,
0.5,
0.5416666666666666,
0.5416666666666666,
0.6666666666666666,
0.5833333333333334,
0.375,
0.4166666666666667,
0.375,
0.4583333333333333,
0.625,
0.5833333333333334,
0.625,
0.5833333333333334,
0.5,
0.5,
0.5,
0.4583333333333333,
0.5416666666666666,
0.4583333333333333,
0.375,
0.5,
0.4583333333333333,
0.5,
0.5,
0.4166666666666667,
0.5
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
0.5555555555555555,
0.41666666666666663,
0.7777777777777776,
0.5555555555555555,
0.611111111111111,
0.9166666666666665,
0.1666666666666668,
0.8333333333333333,
0.6666666666666666,
0.8055555555555556,
0.611111111111111,
0.5833333333333334,
0.6944444444444443,
0.38888888888888895,
0.41666666666666663,
0.5833333333333334,
0.611111111111111,
0.9444444444444444,
0.9444444444444444,
0.4722222222222222,
0.7222222222222222,
0.361111111111111,
0.9444444444444444,
0.5555555555555555,
0.6666666666666666,
0.8055555555555556,
0.5277777777777778,
0.4999999999999999,
0.5833333333333334,
0.8055555555555556,
0.8611111111111112,
1,
0.5833333333333334,
0.5555555555555555,
0.4999999999999999,
0.9444444444444444,
0.5555555555555555,
0.5833333333333334,
0.4722222222222222,
0.7222222222222222,
0.6666666666666666,
0.7222222222222222,
0.41666666666666663,
0.6944444444444443,
0.6666666666666666,
0.6666666666666666,
0.5555555555555555,
0.611111111111111,
0.5277777777777778,
0.44444444444444453,
0.5416666666666665,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.41666666666666663,
0.41666666666666663,
0.20833333333333331,
0.3749999999999999,
0.20833333333333331,
0.6666666666666666,
0.5,
0.2916666666666667,
0.41666666666666663,
0.20833333333333331,
0.3333333333333332,
0.5,
0.41666666666666663,
0.7499999999999998,
0.25,
0.0833333333333334,
0.5,
0.3333333333333332,
0.3333333333333332,
0.2916666666666667,
0.5416666666666665,
0.5,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.7499999999999998,
0.3333333333333332,
0.3333333333333332,
0.25,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.41666666666666663,
0.4583333333333333,
0.4583333333333333,
0.4583333333333333,
0.2916666666666667,
0.5,
0.5416666666666665,
0.41666666666666663,
0.20833333333333331,
0.41666666666666663,
0.5833333333333333,
0.41666666666666663,
0.847457627118644,
0.6949152542372881,
0.8305084745762712,
0.7796610169491525,
0.8135593220338982,
0.9491525423728813,
0.5932203389830508,
0.8983050847457626,
0.8135593220338982,
0.8644067796610169,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.6779661016949152,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.9661016949152542,
1,
0.6779661016949152,
0.7966101694915254,
0.6610169491525424,
0.9661016949152542,
0.6610169491525424,
0.7966101694915254,
0.847457627118644,
0.6440677966101694,
0.6610169491525424,
0.7796610169491525,
0.8135593220338982,
0.8644067796610169,
0.9152542372881356,
0.7796610169491525,
0.6949152542372881,
0.7796610169491525,
0.8644067796610169,
0.7796610169491525,
0.7627118644067796,
0.6440677966101694,
0.7457627118644068,
0.7796610169491525,
0.6949152542372881,
0.6949152542372881,
0.8305084745762712,
0.7966101694915254,
0.711864406779661,
0.6779661016949152,
0.711864406779661,
0.7457627118644068,
0.6949152542372881,
1,
0.75,
0.8333333333333334,
0.7083333333333334,
0.8750000000000001,
0.8333333333333334,
0.6666666666666666,
0.7083333333333334,
0.7083333333333334,
1,
0.7916666666666666,
0.75,
0.8333333333333334,
0.7916666666666666,
0.9583333333333333,
0.9166666666666666,
0.7083333333333334,
0.8750000000000001,
0.9166666666666666,
0.5833333333333334,
0.9166666666666666,
0.7916666666666666,
0.7916666666666666,
0.7083333333333334,
0.8333333333333334,
0.7083333333333334,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.625,
0.75,
0.7916666666666666,
0.8750000000000001,
0.5833333333333334,
0.5416666666666666,
0.9166666666666666,
0.9583333333333333,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.9583333333333333,
0.9166666666666666,
0.75,
0.9166666666666666,
1,
0.9166666666666666,
0.75,
0.7916666666666666,
0.9166666666666666,
0.7083333333333334
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96"
},
"name": "Iris-virginica",
"notched": true,
"offsetgroup": "Iris-virginica",
"showlegend": false,
"type": "box",
"x": [
0.5555555555555555,
0.41666666666666663,
0.7777777777777776,
0.5555555555555555,
0.611111111111111,
0.9166666666666665,
0.1666666666666668,
0.8333333333333333,
0.6666666666666666,
0.8055555555555556,
0.611111111111111,
0.5833333333333334,
0.6944444444444443,
0.38888888888888895,
0.41666666666666663,
0.5833333333333334,
0.611111111111111,
0.9444444444444444,
0.9444444444444444,
0.4722222222222222,
0.7222222222222222,
0.361111111111111,
0.9444444444444444,
0.5555555555555555,
0.6666666666666666,
0.8055555555555556,
0.5277777777777778,
0.4999999999999999,
0.5833333333333334,
0.8055555555555556,
0.8611111111111112,
1,
0.5833333333333334,
0.5555555555555555,
0.4999999999999999,
0.9444444444444444,
0.5555555555555555,
0.5833333333333334,
0.4722222222222222,
0.7222222222222222,
0.6666666666666666,
0.7222222222222222,
0.41666666666666663,
0.6944444444444443,
0.6666666666666666,
0.6666666666666666,
0.5555555555555555,
0.611111111111111,
0.5277777777777778,
0.44444444444444453,
0.5416666666666665,
0.2916666666666667,
0.41666666666666663,
0.3749999999999999,
0.41666666666666663,
0.41666666666666663,
0.20833333333333331,
0.3749999999999999,
0.20833333333333331,
0.6666666666666666,
0.5,
0.2916666666666667,
0.41666666666666663,
0.20833333333333331,
0.3333333333333332,
0.5,
0.41666666666666663,
0.7499999999999998,
0.25,
0.0833333333333334,
0.5,
0.3333333333333332,
0.3333333333333332,
0.2916666666666667,
0.5416666666666665,
0.5,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.41666666666666663,
0.3333333333333332,
0.7499999999999998,
0.3333333333333332,
0.3333333333333332,
0.25,
0.41666666666666663,
0.5833333333333333,
0.4583333333333333,
0.41666666666666663,
0.4583333333333333,
0.4583333333333333,
0.4583333333333333,
0.2916666666666667,
0.5,
0.5416666666666665,
0.41666666666666663,
0.20833333333333331,
0.41666666666666663,
0.5833333333333333,
0.41666666666666663,
0.847457627118644,
0.6949152542372881,
0.8305084745762712,
0.7796610169491525,
0.8135593220338982,
0.9491525423728813,
0.5932203389830508,
0.8983050847457626,
0.8135593220338982,
0.8644067796610169,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.6779661016949152,
0.6949152542372881,
0.7288135593220338,
0.7627118644067796,
0.9661016949152542,
1,
0.6779661016949152,
0.7966101694915254,
0.6610169491525424,
0.9661016949152542,
0.6610169491525424,
0.7966101694915254,
0.847457627118644,
0.6440677966101694,
0.6610169491525424,
0.7796610169491525,
0.8135593220338982,
0.8644067796610169,
0.9152542372881356,
0.7796610169491525,
0.6949152542372881,
0.7796610169491525,
0.8644067796610169,
0.7796610169491525,
0.7627118644067796,
0.6440677966101694,
0.7457627118644068,
0.7796610169491525,
0.6949152542372881,
0.6949152542372881,
0.8305084745762712,
0.7966101694915254,
0.711864406779661,
0.6779661016949152,
0.711864406779661,
0.7457627118644068,
0.6949152542372881,
1,
0.75,
0.8333333333333334,
0.7083333333333334,
0.8750000000000001,
0.8333333333333334,
0.6666666666666666,
0.7083333333333334,
0.7083333333333334,
1,
0.7916666666666666,
0.75,
0.8333333333333334,
0.7916666666666666,
0.9583333333333333,
0.9166666666666666,
0.7083333333333334,
0.8750000000000001,
0.9166666666666666,
0.5833333333333334,
0.9166666666666666,
0.7916666666666666,
0.7916666666666666,
0.7083333333333334,
0.8333333333333334,
0.7083333333333334,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.625,
0.75,
0.7916666666666666,
0.8750000000000001,
0.5833333333333334,
0.5416666666666666,
0.9166666666666666,
0.9583333333333333,
0.7083333333333334,
0.7083333333333334,
0.8333333333333334,
0.9583333333333333,
0.9166666666666666,
0.75,
0.9166666666666666,
1,
0.9166666666666666,
0.75,
0.7916666666666666,
0.9166666666666666,
0.7083333333333334
],
"xaxis": "x2",
"yaxis": "y2"
}
],
"layout": {
"barmode": "overlay",
"height": 800,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Histogram of iris data set"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "value"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0,
1
],
"matches": "x",
"showgrid": true,
"showticklabels": false
},
"yaxis": {
"anchor": "x",
"domain": [
0,
0.7326
],
"title": {
"text": "count"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.7426,
1
],
"matches": "y2",
"showgrid": false,
"showline": false,
"showticklabels": false,
"ticks": ""
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"histgram = px.histogram(\n",
" normalized_df, \n",
" color=\"class\",\n",
" height=800, \n",
" width=900,\n",
" title=\"Histogram of iris data set\",\n",
" barmode='overlay',\n",
" marginal='box',\n",
" )\n",
"histgram.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"データ間の大小関係は変わらずに、それぞれの特徴の値域だけを変更できた。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Z-score Normalization (Standardization)\n",
"\n",
"\n",
"元のデータの平均を0、標準偏差が1のものへと変換する。\n",
"\\begin{equation}\n",
"\\vec{x}_{n e w}=\\frac{\\vec{x}-\\mu}{\\sigma}\n",
"\\end{equation}"
]
},
{
"cell_type": "code",
"execution_count": 114,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>sepal length</th>\n",
" <th>sepal width</th>\n",
" <th>petal length</th>\n",
" <th>petal width</th>\n",
" <th>class</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>-0.897674</td>\n",
" <td>1.028611</td>\n",
" <td>-1.336794</td>\n",
" <td>-1.308593</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>-1.139200</td>\n",
" <td>-0.124540</td>\n",
" <td>-1.336794</td>\n",
" <td>-1.308593</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>-1.380727</td>\n",
" <td>0.336720</td>\n",
" <td>-1.393470</td>\n",
" <td>-1.308593</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>-1.501490</td>\n",
" <td>0.106090</td>\n",
" <td>-1.280118</td>\n",
" <td>-1.308593</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>-1.018437</td>\n",
" <td>1.259242</td>\n",
" <td>-1.336794</td>\n",
" <td>-1.308593</td>\n",
" <td>Iris-setosa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>145</th>\n",
" <td>1.034539</td>\n",
" <td>-0.124540</td>\n",
" <td>0.816888</td>\n",
" <td>1.443121</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>146</th>\n",
" <td>0.551486</td>\n",
" <td>-1.277692</td>\n",
" <td>0.703536</td>\n",
" <td>0.918985</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>147</th>\n",
" <td>0.793012</td>\n",
" <td>-0.124540</td>\n",
" <td>0.816888</td>\n",
" <td>1.050019</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>148</th>\n",
" <td>0.430722</td>\n",
" <td>0.797981</td>\n",
" <td>0.930239</td>\n",
" <td>1.443121</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" <tr>\n",
" <th>149</th>\n",
" <td>0.068433</td>\n",
" <td>-0.124540</td>\n",
" <td>0.760212</td>\n",
" <td>0.787951</td>\n",
" <td>Iris-virginica</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>150 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" sepal length sepal width petal length petal width class\n",
"0 -0.897674 1.028611 -1.336794 -1.308593 Iris-setosa\n",
"1 -1.139200 -0.124540 -1.336794 -1.308593 Iris-setosa\n",
"2 -1.380727 0.336720 -1.393470 -1.308593 Iris-setosa\n",
"3 -1.501490 0.106090 -1.280118 -1.308593 Iris-setosa\n",
"4 -1.018437 1.259242 -1.336794 -1.308593 Iris-setosa\n",
".. ... ... ... ... ...\n",
"145 1.034539 -0.124540 0.816888 1.443121 Iris-virginica\n",
"146 0.551486 -1.277692 0.703536 0.918985 Iris-virginica\n",
"147 0.793012 -0.124540 0.816888 1.050019 Iris-virginica\n",
"148 0.430722 0.797981 0.930239 1.443121 Iris-virginica\n",
"149 0.068433 -0.124540 0.760212 0.787951 Iris-virginica\n",
"\n",
"[150 rows x 5 columns]"
]
},
"execution_count": 114,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"new_df = ( df2 - df2.mean() ) / df2.std()\n",
"new_df[\"class\"] = df[\"class\"]\n",
"new_df"
]
},
{
"cell_type": "code",
"execution_count": 115,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
-0.8976738791967661,
-1.1392004834649532,
-1.3807270877331412,
-1.5014903898672358,
-1.0184371813308597,
-0.5353839727944832,
-1.5014903898672358,
-1.0184371813308597,
-1.743016994135423,
-1.1392004834649532,
-0.5353839727944832,
-1.2599637855990478,
-1.2599637855990478,
-1.8637802962695176,
-0.05233076425810806,
-0.1730940663922016,
-0.5353839727944832,
-0.8976738791967661,
-0.1730940663922016,
-0.8976738791967661,
-0.5353839727944832,
-0.8976738791967661,
-1.5014903898672358,
-0.8976738791967661,
-1.2599637855990478,
-1.0184371813308597,
-1.0184371813308597,
-0.7769105770626714,
-0.7769105770626714,
-1.3807270877331412,
-1.2599637855990478,
-0.5353839727944832,
-0.7769105770626714,
-0.41462067066038977,
-1.1392004834649532,
-1.0184371813308597,
-0.41462067066038977,
-1.1392004834649532,
-1.743016994135423,
-0.8976738791967661,
-1.0184371813308597,
-1.6222536920013295,
-1.743016994135423,
-1.0184371813308597,
-0.8976738791967661,
-1.2599637855990478,
-0.8976738791967661,
-1.5014903898672358,
-0.6561472749285779,
-1.0184371813308597
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
1.3968288613510198,
0.6722490485464564,
1.2760655592169263,
-0.41462067066038977,
0.79301235068055,
-0.1730940663922016,
0.5514857464123618,
-1.1392004834649532,
0.9137756528146435,
-0.7769105770626714,
-1.0184371813308597,
0.06843253787598655,
0.1891958400100801,
0.30995914214417364,
-0.29385736852629624,
1.034538954948738,
-0.29385736852629624,
-0.05233076425810806,
0.4307224442782682,
-0.29385736852629624,
0.06843253787598655,
0.30995914214417364,
0.5514857464123618,
0.30995914214417364,
0.6722490485464564,
0.9137756528146435,
1.1553022570828317,
1.034538954948738,
0.1891958400100801,
-0.1730940663922016,
-0.41462067066038977,
-0.41462067066038977,
-0.05233076425810806,
0.1891958400100801,
-0.5353839727944832,
0.1891958400100801,
1.034538954948738,
0.5514857464123618,
-0.29385736852629624,
-0.41462067066038977,
-0.41462067066038977,
0.30995914214417364,
-0.05233076425810806,
-1.0184371813308597,
-0.29385736852629624,
-0.1730940663922016,
-0.1730940663922016,
0.4307224442782682,
-0.8976738791967661,
-0.1730940663922016
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
0.5514857464123618,
-0.05233076425810806,
1.5175921634851133,
0.5514857464123618,
0.79301235068055,
2.121408674155583,
-1.1392004834649532,
1.7591187677533016,
1.034538954948738,
1.6383554656192079,
0.79301235068055,
0.6722490485464564,
1.1553022570828317,
-0.1730940663922016,
-0.05233076425810806,
0.6722490485464564,
0.79301235068055,
2.242171976289678,
2.242171976289678,
0.1891958400100801,
1.2760655592169263,
-0.29385736852629624,
2.242171976289678,
0.5514857464123618,
1.034538954948738,
1.6383554656192079,
0.4307224442782682,
0.30995914214417364,
0.6722490485464564,
1.6383554656192079,
1.8798820698873961,
2.4836985805578657,
0.6722490485464564,
0.5514857464123618,
0.30995914214417364,
2.242171976289678,
0.5514857464123618,
0.6722490485464564,
0.1891958400100801,
1.2760655592169263,
1.034538954948738,
1.2760655592169263,
-0.05233076425810806,
1.1553022570828317,
1.034538954948738,
1.034538954948738,
0.5514857464123618,
0.79301235068055,
0.4307224442782682,
0.06843253787598655
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
-2.430843699698847,
3.104284269254884
],
"title": {
"text": "sepal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
1.0286112808972343,
-0.12454037930145956,
0.3367202847780184,
0.10608995273827942,
1.2592416129369732,
1.9511326090561893,
0.7979809488574954,
0.7979809488574954,
-0.35517071134119854,
0.10608995273827942,
1.4898719449767124,
0.7979809488574954,
-0.12454037930145956,
-0.12454037930145956,
2.1817629410959283,
3.104284269254884,
1.9511326090561893,
1.0286112808972343,
1.7205022770164502,
1.7205022770164502,
0.7979809488574954,
1.4898719449767124,
1.2592416129369732,
0.5673506168177563,
0.7979809488574954,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
0.7979809488574954,
0.3367202847780184,
0.10608995273827942,
0.7979809488574954,
2.4123932731356663,
2.643023605175406,
0.10608995273827942,
0.3367202847780184,
1.0286112808972343,
0.10608995273827942,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
-1.7389527035796315,
0.3367202847780184,
1.0286112808972343,
1.7205022770164502,
-0.12454037930145956,
1.7205022770164502,
0.3367202847780184,
1.4898719449767124,
0.5673506168177563
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.3367202847780184,
0.3367202847780184,
0.10608995273827942,
-1.7389527035796315,
-0.5858010433809375,
-0.5858010433809375,
0.5673506168177563,
-1.5083223715398926,
-0.35517071134119854,
-0.8164313754206755,
-2.430843699698847,
-0.12454037930145956,
-1.9695830356193693,
-0.35517071134119854,
-0.35517071134119854,
0.10608995273827942,
-0.12454037930145956,
-0.8164313754206755,
-1.9695830356193693,
-1.2776920395001534,
0.3367202847780184,
-0.5858010433809375,
-1.2776920395001534,
-0.5858010433809375,
-0.35517071134119854,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.35517071134119854,
-1.0470617074604145,
-1.5083223715398926,
-1.5083223715398926,
-0.8164313754206755,
-0.8164313754206755,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-1.7389527035796315,
-0.12454037930145956,
-1.2776920395001534,
-1.0470617074604145,
-0.12454037930145956,
-1.0470617074604145,
-1.7389527035796315,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.35517071134119854,
-1.2776920395001534,
-0.5858010433809375
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>sepal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
0.5673506168177563,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.12454037930145956,
-0.12454037930145956,
-1.2776920395001534,
-0.35517071134119854,
-1.2776920395001534,
1.2592416129369732,
0.3367202847780184,
-0.8164313754206755,
-0.12454037930145956,
-1.2776920395001534,
-0.5858010433809375,
0.3367202847780184,
-0.12454037930145956,
1.7205022770164502,
-1.0470617074604145,
-1.9695830356193693,
0.3367202847780184,
-0.5858010433809375,
-0.5858010433809375,
-0.8164313754206755,
0.5673506168177563,
0.3367202847780184,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
1.7205022770164502,
-0.5858010433809375,
-0.5858010433809375,
-1.0470617074604145,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-0.12454037930145956,
0.10608995273827942,
0.10608995273827942,
0.10608995273827942,
-0.8164313754206755,
0.3367202847780184,
0.5673506168177563,
-0.12454037930145956,
-1.2776920395001534,
-0.12454037930145956,
0.7979809488574954,
-0.12454037930145956
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of sepal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
-2.430843699698847,
3.104284269254884
],
"title": {
"text": "sepal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
-1.3367940202882493,
-1.3367940202882493,
-1.393469854952816,
-1.2801181856236823,
-1.3367940202882493,
-1.1667665162945489,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.2801181856236823,
-1.2234423509591155,
-1.3367940202882493,
-1.5068215242819496,
-1.450145689617383,
-1.2801181856236823,
-1.393469854952816,
-1.3367940202882493,
-1.1667665162945489,
-1.2801181856236823,
-1.1667665162945489,
-1.2801181856236823,
-1.5634973589465164,
-1.1667665162945489,
-1.0534148469654152,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.3367940202882493,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.450145689617383,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.393469854952816,
-1.393469854952816,
-1.2234423509591155,
-1.0534148469654152,
-1.3367940202882493,
-1.2234423509591155,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.533508523642456,
0.42015685431332234,
0.6468601929715898,
0.13677768099048823,
0.476832688977889,
0.42015685431332234,
0.533508523642456,
-0.25995316166147964,
0.476832688977889,
0.08010184632592135,
-0.1466014923323459,
0.25012935031962197,
0.13677768099048823,
0.533508523642456,
-0.08992565766777902,
0.36348101964875573,
0.42015685431332234,
0.19345351565505484,
0.42015685431332234,
0.08010184632592135,
0.5901843583070228,
0.13677768099048823,
0.6468601929715898,
0.533508523642456,
0.3068051849841886,
0.36348101964875573,
0.5901843583070228,
0.7035360276361565,
0.42015685431332234,
-0.1466014923323459,
0.023426011661354475,
-0.03324982300321215,
0.08010184632592135,
0.7602118623007231,
0.42015685431332234,
0.42015685431332234,
0.533508523642456,
0.36348101964875573,
0.19345351565505484,
0.13677768099048823,
0.36348101964875573,
0.476832688977889,
0.13677768099048823,
-0.25995316166147964,
0.25012935031962197,
0.25012935031962197,
0.25012935031962197,
0.3068051849841886,
-0.42998066565518,
0.19345351565505484
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal length=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
1.2702943742818247,
0.7602118623007231,
1.213618539617258,
1.0435910356235572,
1.156942704952691,
1.6103493822692254,
0.42015685431332234,
1.4403218782755252,
1.156942704952691,
1.3269702089463913,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
0.7035360276361565,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
1.6670252169337927,
1.7803768862629263,
0.7035360276361565,
1.1002668702881244,
0.6468601929715898,
1.6670252169337927,
0.6468601929715898,
1.1002668702881244,
1.2702943742818247,
0.5901843583070228,
0.6468601929715898,
1.0435910356235572,
1.156942704952691,
1.3269702089463913,
1.4969977129400922,
1.0435910356235572,
0.7602118623007231,
1.0435910356235572,
1.3269702089463913,
1.0435910356235572,
0.9869152009589905,
0.5901843583070228,
0.9302393662944239,
1.0435910356235572,
0.7602118623007231,
0.7602118623007231,
1.213618539617258,
1.1002668702881244,
0.8168876969652902,
0.7035360276361565,
0.8168876969652902,
0.9302393662944239,
0.7602118623007231
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal length"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
-2.430843699698847,
3.104284269254884
],
"title": {
"text": "petal length"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49
],
"xaxis": "x",
"y": [
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.4396268133736678,
-1.308592819437958,
-1.0465248315665376,
-1.0465248315665376,
-1.1775588255022478,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-0.9154908376308276,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.4396268133736678,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-0.7844568436951177,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99
],
"xaxis": "x",
"y": [
0.26381510779056266,
0.3948491017262728,
0.3948491017262728,
0.13278111385485278,
0.3948491017262728,
0.13278111385485278,
0.525883095661983,
-0.26032086795227743,
0.13278111385485278,
0.26381510779056266,
-0.26032086795227743,
0.3948491017262728,
-0.26032086795227743,
0.26381510779056266,
0.13278111385485278,
0.26381510779056266,
0.3948491017262728,
-0.26032086795227743,
0.3948491017262728,
-0.12928687401656727,
0.787951083533403,
0.13278111385485278,
0.3948491017262728,
0.0017471199191426083,
0.13278111385485278,
0.26381510779056266,
0.26381510779056266,
0.6569170895976928,
0.3948491017262728,
-0.26032086795227743,
-0.12928687401656727,
-0.26032086795227743,
0.0017471199191426083,
0.525883095661983,
0.3948491017262728,
0.525883095661983,
0.3948491017262728,
0.13278111385485278,
0.13278111385485278,
0.13278111385485278,
0.0017471199191426083,
0.26381510779056266,
0.0017471199191426083,
-0.26032086795227743,
0.13278111385485278,
0.0017471199191426083,
0.13278111385485278,
0.13278111385485278,
-0.12928687401656727,
0.13278111385485278
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>x=%{x}<br>petal width=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149
],
"xaxis": "x",
"y": [
1.7051890410833732,
0.9189850774691128,
1.1810530653405331,
0.787951083533403,
1.3120870592762435,
1.1810530653405331,
0.6569170895976928,
0.787951083533403,
0.787951083533403,
1.7051890410833732,
1.050019071404823,
0.9189850774691128,
1.1810530653405331,
1.050019071404823,
1.574155047147663,
1.443121053211953,
0.787951083533403,
1.3120870592762435,
1.443121053211953,
0.3948491017262728,
1.443121053211953,
1.050019071404823,
1.050019071404823,
0.787951083533403,
1.1810530653405331,
0.787951083533403,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
0.525883095661983,
0.9189850774691128,
1.050019071404823,
1.3120870592762435,
0.3948491017262728,
0.26381510779056266,
1.443121053211953,
1.574155047147663,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
1.574155047147663,
1.443121053211953,
0.9189850774691128,
1.443121053211953,
1.7051890410833732,
1.443121053211953,
0.9189850774691128,
1.050019071404823,
1.443121053211953,
0.787951083533403
],
"yaxis": "y"
}
],
"layout": {
"barmode": "relative",
"height": 300,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "bar chart of petal width"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "x"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"range": [
-2.430843699698847,
3.104284269254884
],
"title": {
"text": "petal width"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"barplot_for_iris(\n",
" new_df,\n",
" yrange=[new_df.iloc[:,:-1].min().min(), new_df.iloc[:,:-1].max().max()],\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 116,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-setosa",
"offsetgroup": "Iris-setosa",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
-0.8976738791967661,
-1.1392004834649532,
-1.3807270877331412,
-1.5014903898672358,
-1.0184371813308597,
-0.5353839727944832,
-1.5014903898672358,
-1.0184371813308597,
-1.743016994135423,
-1.1392004834649532,
-0.5353839727944832,
-1.2599637855990478,
-1.2599637855990478,
-1.8637802962695176,
-0.05233076425810806,
-0.1730940663922016,
-0.5353839727944832,
-0.8976738791967661,
-0.1730940663922016,
-0.8976738791967661,
-0.5353839727944832,
-0.8976738791967661,
-1.5014903898672358,
-0.8976738791967661,
-1.2599637855990478,
-1.0184371813308597,
-1.0184371813308597,
-0.7769105770626714,
-0.7769105770626714,
-1.3807270877331412,
-1.2599637855990478,
-0.5353839727944832,
-0.7769105770626714,
-0.41462067066038977,
-1.1392004834649532,
-1.0184371813308597,
-0.41462067066038977,
-1.1392004834649532,
-1.743016994135423,
-0.8976738791967661,
-1.0184371813308597,
-1.6222536920013295,
-1.743016994135423,
-1.0184371813308597,
-0.8976738791967661,
-1.2599637855990478,
-0.8976738791967661,
-1.5014903898672358,
-0.6561472749285779,
-1.0184371813308597,
1.0286112808972343,
-0.12454037930145956,
0.3367202847780184,
0.10608995273827942,
1.2592416129369732,
1.9511326090561893,
0.7979809488574954,
0.7979809488574954,
-0.35517071134119854,
0.10608995273827942,
1.4898719449767124,
0.7979809488574954,
-0.12454037930145956,
-0.12454037930145956,
2.1817629410959283,
3.104284269254884,
1.9511326090561893,
1.0286112808972343,
1.7205022770164502,
1.7205022770164502,
0.7979809488574954,
1.4898719449767124,
1.2592416129369732,
0.5673506168177563,
0.7979809488574954,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
0.7979809488574954,
0.3367202847780184,
0.10608995273827942,
0.7979809488574954,
2.4123932731356663,
2.643023605175406,
0.10608995273827942,
0.3367202847780184,
1.0286112808972343,
0.10608995273827942,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
-1.7389527035796315,
0.3367202847780184,
1.0286112808972343,
1.7205022770164502,
-0.12454037930145956,
1.7205022770164502,
0.3367202847780184,
1.4898719449767124,
0.5673506168177563,
-1.3367940202882493,
-1.3367940202882493,
-1.393469854952816,
-1.2801181856236823,
-1.3367940202882493,
-1.1667665162945489,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.2801181856236823,
-1.2234423509591155,
-1.3367940202882493,
-1.5068215242819496,
-1.450145689617383,
-1.2801181856236823,
-1.393469854952816,
-1.3367940202882493,
-1.1667665162945489,
-1.2801181856236823,
-1.1667665162945489,
-1.2801181856236823,
-1.5634973589465164,
-1.1667665162945489,
-1.0534148469654152,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.3367940202882493,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.450145689617383,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.393469854952816,
-1.393469854952816,
-1.2234423509591155,
-1.0534148469654152,
-1.3367940202882493,
-1.2234423509591155,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.4396268133736678,
-1.308592819437958,
-1.0465248315665376,
-1.0465248315665376,
-1.1775588255022478,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-0.9154908376308276,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.4396268133736678,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-0.7844568436951177,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-setosa<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-setosa",
"marker": {
"color": "#636efa"
},
"name": "Iris-setosa",
"notched": true,
"offsetgroup": "Iris-setosa",
"showlegend": false,
"type": "box",
"x": [
-0.8976738791967661,
-1.1392004834649532,
-1.3807270877331412,
-1.5014903898672358,
-1.0184371813308597,
-0.5353839727944832,
-1.5014903898672358,
-1.0184371813308597,
-1.743016994135423,
-1.1392004834649532,
-0.5353839727944832,
-1.2599637855990478,
-1.2599637855990478,
-1.8637802962695176,
-0.05233076425810806,
-0.1730940663922016,
-0.5353839727944832,
-0.8976738791967661,
-0.1730940663922016,
-0.8976738791967661,
-0.5353839727944832,
-0.8976738791967661,
-1.5014903898672358,
-0.8976738791967661,
-1.2599637855990478,
-1.0184371813308597,
-1.0184371813308597,
-0.7769105770626714,
-0.7769105770626714,
-1.3807270877331412,
-1.2599637855990478,
-0.5353839727944832,
-0.7769105770626714,
-0.41462067066038977,
-1.1392004834649532,
-1.0184371813308597,
-0.41462067066038977,
-1.1392004834649532,
-1.743016994135423,
-0.8976738791967661,
-1.0184371813308597,
-1.6222536920013295,
-1.743016994135423,
-1.0184371813308597,
-0.8976738791967661,
-1.2599637855990478,
-0.8976738791967661,
-1.5014903898672358,
-0.6561472749285779,
-1.0184371813308597,
1.0286112808972343,
-0.12454037930145956,
0.3367202847780184,
0.10608995273827942,
1.2592416129369732,
1.9511326090561893,
0.7979809488574954,
0.7979809488574954,
-0.35517071134119854,
0.10608995273827942,
1.4898719449767124,
0.7979809488574954,
-0.12454037930145956,
-0.12454037930145956,
2.1817629410959283,
3.104284269254884,
1.9511326090561893,
1.0286112808972343,
1.7205022770164502,
1.7205022770164502,
0.7979809488574954,
1.4898719449767124,
1.2592416129369732,
0.5673506168177563,
0.7979809488574954,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
0.7979809488574954,
0.3367202847780184,
0.10608995273827942,
0.7979809488574954,
2.4123932731356663,
2.643023605175406,
0.10608995273827942,
0.3367202847780184,
1.0286112808972343,
0.10608995273827942,
-0.12454037930145956,
0.7979809488574954,
1.0286112808972343,
-1.7389527035796315,
0.3367202847780184,
1.0286112808972343,
1.7205022770164502,
-0.12454037930145956,
1.7205022770164502,
0.3367202847780184,
1.4898719449767124,
0.5673506168177563,
-1.3367940202882493,
-1.3367940202882493,
-1.393469854952816,
-1.2801181856236823,
-1.3367940202882493,
-1.1667665162945489,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.2801181856236823,
-1.2234423509591155,
-1.3367940202882493,
-1.5068215242819496,
-1.450145689617383,
-1.2801181856236823,
-1.393469854952816,
-1.3367940202882493,
-1.1667665162945489,
-1.2801181856236823,
-1.1667665162945489,
-1.2801181856236823,
-1.5634973589465164,
-1.1667665162945489,
-1.0534148469654152,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.3367940202882493,
-1.2234423509591155,
-1.2234423509591155,
-1.2801181856236823,
-1.2801181856236823,
-1.3367940202882493,
-1.2801181856236823,
-1.450145689617383,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.2801181856236823,
-1.393469854952816,
-1.393469854952816,
-1.393469854952816,
-1.2234423509591155,
-1.0534148469654152,
-1.3367940202882493,
-1.2234423509591155,
-1.3367940202882493,
-1.2801181856236823,
-1.3367940202882493,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.4396268133736678,
-1.308592819437958,
-1.0465248315665376,
-1.0465248315665376,
-1.1775588255022478,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-0.9154908376308276,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.0465248315665376,
-1.4396268133736678,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.4396268133736678,
-1.308592819437958,
-1.308592819437958,
-1.1775588255022478,
-1.1775588255022478,
-1.308592819437958,
-0.7844568436951177,
-1.0465248315665376,
-1.1775588255022478,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958,
-1.308592819437958
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-versicolor",
"offsetgroup": "Iris-versicolor",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
1.3968288613510198,
0.6722490485464564,
1.2760655592169263,
-0.41462067066038977,
0.79301235068055,
-0.1730940663922016,
0.5514857464123618,
-1.1392004834649532,
0.9137756528146435,
-0.7769105770626714,
-1.0184371813308597,
0.06843253787598655,
0.1891958400100801,
0.30995914214417364,
-0.29385736852629624,
1.034538954948738,
-0.29385736852629624,
-0.05233076425810806,
0.4307224442782682,
-0.29385736852629624,
0.06843253787598655,
0.30995914214417364,
0.5514857464123618,
0.30995914214417364,
0.6722490485464564,
0.9137756528146435,
1.1553022570828317,
1.034538954948738,
0.1891958400100801,
-0.1730940663922016,
-0.41462067066038977,
-0.41462067066038977,
-0.05233076425810806,
0.1891958400100801,
-0.5353839727944832,
0.1891958400100801,
1.034538954948738,
0.5514857464123618,
-0.29385736852629624,
-0.41462067066038977,
-0.41462067066038977,
0.30995914214417364,
-0.05233076425810806,
-1.0184371813308597,
-0.29385736852629624,
-0.1730940663922016,
-0.1730940663922016,
0.4307224442782682,
-0.8976738791967661,
-0.1730940663922016,
0.3367202847780184,
0.3367202847780184,
0.10608995273827942,
-1.7389527035796315,
-0.5858010433809375,
-0.5858010433809375,
0.5673506168177563,
-1.5083223715398926,
-0.35517071134119854,
-0.8164313754206755,
-2.430843699698847,
-0.12454037930145956,
-1.9695830356193693,
-0.35517071134119854,
-0.35517071134119854,
0.10608995273827942,
-0.12454037930145956,
-0.8164313754206755,
-1.9695830356193693,
-1.2776920395001534,
0.3367202847780184,
-0.5858010433809375,
-1.2776920395001534,
-0.5858010433809375,
-0.35517071134119854,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.35517071134119854,
-1.0470617074604145,
-1.5083223715398926,
-1.5083223715398926,
-0.8164313754206755,
-0.8164313754206755,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-1.7389527035796315,
-0.12454037930145956,
-1.2776920395001534,
-1.0470617074604145,
-0.12454037930145956,
-1.0470617074604145,
-1.7389527035796315,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.35517071134119854,
-1.2776920395001534,
-0.5858010433809375,
0.533508523642456,
0.42015685431332234,
0.6468601929715898,
0.13677768099048823,
0.476832688977889,
0.42015685431332234,
0.533508523642456,
-0.25995316166147964,
0.476832688977889,
0.08010184632592135,
-0.1466014923323459,
0.25012935031962197,
0.13677768099048823,
0.533508523642456,
-0.08992565766777902,
0.36348101964875573,
0.42015685431332234,
0.19345351565505484,
0.42015685431332234,
0.08010184632592135,
0.5901843583070228,
0.13677768099048823,
0.6468601929715898,
0.533508523642456,
0.3068051849841886,
0.36348101964875573,
0.5901843583070228,
0.7035360276361565,
0.42015685431332234,
-0.1466014923323459,
0.023426011661354475,
-0.03324982300321215,
0.08010184632592135,
0.7602118623007231,
0.42015685431332234,
0.42015685431332234,
0.533508523642456,
0.36348101964875573,
0.19345351565505484,
0.13677768099048823,
0.36348101964875573,
0.476832688977889,
0.13677768099048823,
-0.25995316166147964,
0.25012935031962197,
0.25012935031962197,
0.25012935031962197,
0.3068051849841886,
-0.42998066565518,
0.19345351565505484,
0.26381510779056266,
0.3948491017262728,
0.3948491017262728,
0.13278111385485278,
0.3948491017262728,
0.13278111385485278,
0.525883095661983,
-0.26032086795227743,
0.13278111385485278,
0.26381510779056266,
-0.26032086795227743,
0.3948491017262728,
-0.26032086795227743,
0.26381510779056266,
0.13278111385485278,
0.26381510779056266,
0.3948491017262728,
-0.26032086795227743,
0.3948491017262728,
-0.12928687401656727,
0.787951083533403,
0.13278111385485278,
0.3948491017262728,
0.0017471199191426083,
0.13278111385485278,
0.26381510779056266,
0.26381510779056266,
0.6569170895976928,
0.3948491017262728,
-0.26032086795227743,
-0.12928687401656727,
-0.26032086795227743,
0.0017471199191426083,
0.525883095661983,
0.3948491017262728,
0.525883095661983,
0.3948491017262728,
0.13278111385485278,
0.13278111385485278,
0.13278111385485278,
0.0017471199191426083,
0.26381510779056266,
0.0017471199191426083,
-0.26032086795227743,
0.13278111385485278,
0.0017471199191426083,
0.13278111385485278,
0.13278111385485278,
-0.12928687401656727,
0.13278111385485278
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-versicolor<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-versicolor",
"marker": {
"color": "#EF553B"
},
"name": "Iris-versicolor",
"notched": true,
"offsetgroup": "Iris-versicolor",
"showlegend": false,
"type": "box",
"x": [
1.3968288613510198,
0.6722490485464564,
1.2760655592169263,
-0.41462067066038977,
0.79301235068055,
-0.1730940663922016,
0.5514857464123618,
-1.1392004834649532,
0.9137756528146435,
-0.7769105770626714,
-1.0184371813308597,
0.06843253787598655,
0.1891958400100801,
0.30995914214417364,
-0.29385736852629624,
1.034538954948738,
-0.29385736852629624,
-0.05233076425810806,
0.4307224442782682,
-0.29385736852629624,
0.06843253787598655,
0.30995914214417364,
0.5514857464123618,
0.30995914214417364,
0.6722490485464564,
0.9137756528146435,
1.1553022570828317,
1.034538954948738,
0.1891958400100801,
-0.1730940663922016,
-0.41462067066038977,
-0.41462067066038977,
-0.05233076425810806,
0.1891958400100801,
-0.5353839727944832,
0.1891958400100801,
1.034538954948738,
0.5514857464123618,
-0.29385736852629624,
-0.41462067066038977,
-0.41462067066038977,
0.30995914214417364,
-0.05233076425810806,
-1.0184371813308597,
-0.29385736852629624,
-0.1730940663922016,
-0.1730940663922016,
0.4307224442782682,
-0.8976738791967661,
-0.1730940663922016,
0.3367202847780184,
0.3367202847780184,
0.10608995273827942,
-1.7389527035796315,
-0.5858010433809375,
-0.5858010433809375,
0.5673506168177563,
-1.5083223715398926,
-0.35517071134119854,
-0.8164313754206755,
-2.430843699698847,
-0.12454037930145956,
-1.9695830356193693,
-0.35517071134119854,
-0.35517071134119854,
0.10608995273827942,
-0.12454037930145956,
-0.8164313754206755,
-1.9695830356193693,
-1.2776920395001534,
0.3367202847780184,
-0.5858010433809375,
-1.2776920395001534,
-0.5858010433809375,
-0.35517071134119854,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.35517071134119854,
-1.0470617074604145,
-1.5083223715398926,
-1.5083223715398926,
-0.8164313754206755,
-0.8164313754206755,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-1.7389527035796315,
-0.12454037930145956,
-1.2776920395001534,
-1.0470617074604145,
-0.12454037930145956,
-1.0470617074604145,
-1.7389527035796315,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.35517071134119854,
-1.2776920395001534,
-0.5858010433809375,
0.533508523642456,
0.42015685431332234,
0.6468601929715898,
0.13677768099048823,
0.476832688977889,
0.42015685431332234,
0.533508523642456,
-0.25995316166147964,
0.476832688977889,
0.08010184632592135,
-0.1466014923323459,
0.25012935031962197,
0.13677768099048823,
0.533508523642456,
-0.08992565766777902,
0.36348101964875573,
0.42015685431332234,
0.19345351565505484,
0.42015685431332234,
0.08010184632592135,
0.5901843583070228,
0.13677768099048823,
0.6468601929715898,
0.533508523642456,
0.3068051849841886,
0.36348101964875573,
0.5901843583070228,
0.7035360276361565,
0.42015685431332234,
-0.1466014923323459,
0.023426011661354475,
-0.03324982300321215,
0.08010184632592135,
0.7602118623007231,
0.42015685431332234,
0.42015685431332234,
0.533508523642456,
0.36348101964875573,
0.19345351565505484,
0.13677768099048823,
0.36348101964875573,
0.476832688977889,
0.13677768099048823,
-0.25995316166147964,
0.25012935031962197,
0.25012935031962197,
0.25012935031962197,
0.3068051849841886,
-0.42998066565518,
0.19345351565505484,
0.26381510779056266,
0.3948491017262728,
0.3948491017262728,
0.13278111385485278,
0.3948491017262728,
0.13278111385485278,
0.525883095661983,
-0.26032086795227743,
0.13278111385485278,
0.26381510779056266,
-0.26032086795227743,
0.3948491017262728,
-0.26032086795227743,
0.26381510779056266,
0.13278111385485278,
0.26381510779056266,
0.3948491017262728,
-0.26032086795227743,
0.3948491017262728,
-0.12928687401656727,
0.787951083533403,
0.13278111385485278,
0.3948491017262728,
0.0017471199191426083,
0.13278111385485278,
0.26381510779056266,
0.26381510779056266,
0.6569170895976928,
0.3948491017262728,
-0.26032086795227743,
-0.12928687401656727,
-0.26032086795227743,
0.0017471199191426083,
0.525883095661983,
0.3948491017262728,
0.525883095661983,
0.3948491017262728,
0.13278111385485278,
0.13278111385485278,
0.13278111385485278,
0.0017471199191426083,
0.26381510779056266,
0.0017471199191426083,
-0.26032086795227743,
0.13278111385485278,
0.0017471199191426083,
0.13278111385485278,
0.13278111385485278,
-0.12928687401656727,
0.13278111385485278
],
"xaxis": "x2",
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"bingroup": "x",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96",
"opacity": 0.5,
"pattern": {
"shape": ""
}
},
"name": "Iris-virginica",
"offsetgroup": "Iris-virginica",
"orientation": "v",
"showlegend": true,
"type": "histogram",
"x": [
0.5514857464123618,
-0.05233076425810806,
1.5175921634851133,
0.5514857464123618,
0.79301235068055,
2.121408674155583,
-1.1392004834649532,
1.7591187677533016,
1.034538954948738,
1.6383554656192079,
0.79301235068055,
0.6722490485464564,
1.1553022570828317,
-0.1730940663922016,
-0.05233076425810806,
0.6722490485464564,
0.79301235068055,
2.242171976289678,
2.242171976289678,
0.1891958400100801,
1.2760655592169263,
-0.29385736852629624,
2.242171976289678,
0.5514857464123618,
1.034538954948738,
1.6383554656192079,
0.4307224442782682,
0.30995914214417364,
0.6722490485464564,
1.6383554656192079,
1.8798820698873961,
2.4836985805578657,
0.6722490485464564,
0.5514857464123618,
0.30995914214417364,
2.242171976289678,
0.5514857464123618,
0.6722490485464564,
0.1891958400100801,
1.2760655592169263,
1.034538954948738,
1.2760655592169263,
-0.05233076425810806,
1.1553022570828317,
1.034538954948738,
1.034538954948738,
0.5514857464123618,
0.79301235068055,
0.4307224442782682,
0.06843253787598655,
0.5673506168177563,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.12454037930145956,
-0.12454037930145956,
-1.2776920395001534,
-0.35517071134119854,
-1.2776920395001534,
1.2592416129369732,
0.3367202847780184,
-0.8164313754206755,
-0.12454037930145956,
-1.2776920395001534,
-0.5858010433809375,
0.3367202847780184,
-0.12454037930145956,
1.7205022770164502,
-1.0470617074604145,
-1.9695830356193693,
0.3367202847780184,
-0.5858010433809375,
-0.5858010433809375,
-0.8164313754206755,
0.5673506168177563,
0.3367202847780184,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
1.7205022770164502,
-0.5858010433809375,
-0.5858010433809375,
-1.0470617074604145,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-0.12454037930145956,
0.10608995273827942,
0.10608995273827942,
0.10608995273827942,
-0.8164313754206755,
0.3367202847780184,
0.5673506168177563,
-0.12454037930145956,
-1.2776920395001534,
-0.12454037930145956,
0.7979809488574954,
-0.12454037930145956,
1.2702943742818247,
0.7602118623007231,
1.213618539617258,
1.0435910356235572,
1.156942704952691,
1.6103493822692254,
0.42015685431332234,
1.4403218782755252,
1.156942704952691,
1.3269702089463913,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
0.7035360276361565,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
1.6670252169337927,
1.7803768862629263,
0.7035360276361565,
1.1002668702881244,
0.6468601929715898,
1.6670252169337927,
0.6468601929715898,
1.1002668702881244,
1.2702943742818247,
0.5901843583070228,
0.6468601929715898,
1.0435910356235572,
1.156942704952691,
1.3269702089463913,
1.4969977129400922,
1.0435910356235572,
0.7602118623007231,
1.0435910356235572,
1.3269702089463913,
1.0435910356235572,
0.9869152009589905,
0.5901843583070228,
0.9302393662944239,
1.0435910356235572,
0.7602118623007231,
0.7602118623007231,
1.213618539617258,
1.1002668702881244,
0.8168876969652902,
0.7035360276361565,
0.8168876969652902,
0.9302393662944239,
0.7602118623007231,
1.7051890410833732,
0.9189850774691128,
1.1810530653405331,
0.787951083533403,
1.3120870592762435,
1.1810530653405331,
0.6569170895976928,
0.787951083533403,
0.787951083533403,
1.7051890410833732,
1.050019071404823,
0.9189850774691128,
1.1810530653405331,
1.050019071404823,
1.574155047147663,
1.443121053211953,
0.787951083533403,
1.3120870592762435,
1.443121053211953,
0.3948491017262728,
1.443121053211953,
1.050019071404823,
1.050019071404823,
0.787951083533403,
1.1810530653405331,
0.787951083533403,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
0.525883095661983,
0.9189850774691128,
1.050019071404823,
1.3120870592762435,
0.3948491017262728,
0.26381510779056266,
1.443121053211953,
1.574155047147663,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
1.574155047147663,
1.443121053211953,
0.9189850774691128,
1.443121053211953,
1.7051890410833732,
1.443121053211953,
0.9189850774691128,
1.050019071404823,
1.443121053211953,
0.787951083533403
],
"xaxis": "x",
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "class=Iris-virginica<br>value=%{x}<extra></extra>",
"legendgroup": "Iris-virginica",
"marker": {
"color": "#00cc96"
},
"name": "Iris-virginica",
"notched": true,
"offsetgroup": "Iris-virginica",
"showlegend": false,
"type": "box",
"x": [
0.5514857464123618,
-0.05233076425810806,
1.5175921634851133,
0.5514857464123618,
0.79301235068055,
2.121408674155583,
-1.1392004834649532,
1.7591187677533016,
1.034538954948738,
1.6383554656192079,
0.79301235068055,
0.6722490485464564,
1.1553022570828317,
-0.1730940663922016,
-0.05233076425810806,
0.6722490485464564,
0.79301235068055,
2.242171976289678,
2.242171976289678,
0.1891958400100801,
1.2760655592169263,
-0.29385736852629624,
2.242171976289678,
0.5514857464123618,
1.034538954948738,
1.6383554656192079,
0.4307224442782682,
0.30995914214417364,
0.6722490485464564,
1.6383554656192079,
1.8798820698873961,
2.4836985805578657,
0.6722490485464564,
0.5514857464123618,
0.30995914214417364,
2.242171976289678,
0.5514857464123618,
0.6722490485464564,
0.1891958400100801,
1.2760655592169263,
1.034538954948738,
1.2760655592169263,
-0.05233076425810806,
1.1553022570828317,
1.034538954948738,
1.034538954948738,
0.5514857464123618,
0.79301235068055,
0.4307224442782682,
0.06843253787598655,
0.5673506168177563,
-0.8164313754206755,
-0.12454037930145956,
-0.35517071134119854,
-0.12454037930145956,
-0.12454037930145956,
-1.2776920395001534,
-0.35517071134119854,
-1.2776920395001534,
1.2592416129369732,
0.3367202847780184,
-0.8164313754206755,
-0.12454037930145956,
-1.2776920395001534,
-0.5858010433809375,
0.3367202847780184,
-0.12454037930145956,
1.7205022770164502,
-1.0470617074604145,
-1.9695830356193693,
0.3367202847780184,
-0.5858010433809375,
-0.5858010433809375,
-0.8164313754206755,
0.5673506168177563,
0.3367202847780184,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
-0.12454037930145956,
-0.5858010433809375,
1.7205022770164502,
-0.5858010433809375,
-0.5858010433809375,
-1.0470617074604145,
-0.12454037930145956,
0.7979809488574954,
0.10608995273827942,
-0.12454037930145956,
0.10608995273827942,
0.10608995273827942,
0.10608995273827942,
-0.8164313754206755,
0.3367202847780184,
0.5673506168177563,
-0.12454037930145956,
-1.2776920395001534,
-0.12454037930145956,
0.7979809488574954,
-0.12454037930145956,
1.2702943742818247,
0.7602118623007231,
1.213618539617258,
1.0435910356235572,
1.156942704952691,
1.6103493822692254,
0.42015685431332234,
1.4403218782755252,
1.156942704952691,
1.3269702089463913,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
0.7035360276361565,
0.7602118623007231,
0.8735635316298569,
0.9869152009589905,
1.6670252169337927,
1.7803768862629263,
0.7035360276361565,
1.1002668702881244,
0.6468601929715898,
1.6670252169337927,
0.6468601929715898,
1.1002668702881244,
1.2702943742818247,
0.5901843583070228,
0.6468601929715898,
1.0435910356235572,
1.156942704952691,
1.3269702089463913,
1.4969977129400922,
1.0435910356235572,
0.7602118623007231,
1.0435910356235572,
1.3269702089463913,
1.0435910356235572,
0.9869152009589905,
0.5901843583070228,
0.9302393662944239,
1.0435910356235572,
0.7602118623007231,
0.7602118623007231,
1.213618539617258,
1.1002668702881244,
0.8168876969652902,
0.7035360276361565,
0.8168876969652902,
0.9302393662944239,
0.7602118623007231,
1.7051890410833732,
0.9189850774691128,
1.1810530653405331,
0.787951083533403,
1.3120870592762435,
1.1810530653405331,
0.6569170895976928,
0.787951083533403,
0.787951083533403,
1.7051890410833732,
1.050019071404823,
0.9189850774691128,
1.1810530653405331,
1.050019071404823,
1.574155047147663,
1.443121053211953,
0.787951083533403,
1.3120870592762435,
1.443121053211953,
0.3948491017262728,
1.443121053211953,
1.050019071404823,
1.050019071404823,
0.787951083533403,
1.1810530653405331,
0.787951083533403,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
0.525883095661983,
0.9189850774691128,
1.050019071404823,
1.3120870592762435,
0.3948491017262728,
0.26381510779056266,
1.443121053211953,
1.574155047147663,
0.787951083533403,
0.787951083533403,
1.1810530653405331,
1.574155047147663,
1.443121053211953,
0.9189850774691128,
1.443121053211953,
1.7051890410833732,
1.443121053211953,
0.9189850774691128,
1.050019071404823,
1.443121053211953,
0.787951083533403
],
"xaxis": "x2",
"yaxis": "y2"
}
],
"layout": {
"barmode": "overlay",
"height": 800,
"legend": {
"title": {
"text": "class"
},
"tracegroupgap": 0
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Histogram of iris data set"
},
"width": 900,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "value"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0,
1
],
"matches": "x",
"showgrid": true,
"showticklabels": false
},
"yaxis": {
"anchor": "x",
"domain": [
0,
0.7326
],
"title": {
"text": "count"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.7426,
1
],
"matches": "y2",
"showgrid": false,
"showline": false,
"showticklabels": false,
"ticks": ""
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"histgram = px.histogram(\n",
" new_df, \n",
" color=\"class\",\n",
" height=800, \n",
" width=900,\n",
" title=\"Histogram of iris data set\",\n",
" barmode='overlay',\n",
" marginal='box',\n",
" )\n",
"histgram.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"各クラスのヒストグラムが単峰性になっていることがわかる。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"前処理についてはできるだけPandasの上でやってしまうのが簡単ですが、scikit-learnやscipyには前処理に便利な機能がたくさんあります。適宜numpy ndarrayに戻して処理を行い、その後に元のDataFrameに戻すような処理をすることを考えます。"
]
},
{
"cell_type": "code",
"execution_count": 121,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'numpy.ndarray'>\n"
]
}
],
"source": [
"from sklearn.preprocessing import StandardScaler, MinMaxScaler\n",
"\n",
"scaler = StandardScaler()\n",
"scaler.fit(df.iloc[:,:-1])\n",
"output = scaler.transform(df.iloc[:,:-1])\n",
"print(type(output))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.13 64-bit ('base')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "112217ca19813bef107e4ade1255ed226904493bd9aa4875dbfb46dd7329429d"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment