Skip to content

Commit

Permalink
example_gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
markur4 committed Dec 1, 2023
1 parent e785e8d commit 3ced150
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 2 deletions.
294 changes: 294 additions & 0 deletions IMAGES/EXAMPLE_GALLERY/example_gallery.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1928,6 +1928,300 @@
"plt.savefig(\"cars1.png\", dpi=300, bbox_inches=\"tight\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Dataset \"titanic\""
]
},
{
"cell_type": "code",
"execution_count": 79,
"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>survived</th>\n",
" <th>pclass</th>\n",
" <th>sex</th>\n",
" <th>age</th>\n",
" <th>sibsp</th>\n",
" <th>parch</th>\n",
" <th>fare</th>\n",
" <th>embarked</th>\n",
" <th>class</th>\n",
" <th>who</th>\n",
" <th>adult_male</th>\n",
" <th>deck</th>\n",
" <th>embark_town</th>\n",
" <th>alive</th>\n",
" <th>alone</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>male</td>\n",
" <td>22.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>7.2500</td>\n",
" <td>S</td>\n",
" <td>Third</td>\n",
" <td>man</td>\n",
" <td>True</td>\n",
" <td>NaN</td>\n",
" <td>Southampton</td>\n",
" <td>no</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>female</td>\n",
" <td>38.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>71.2833</td>\n",
" <td>C</td>\n",
" <td>First</td>\n",
" <td>woman</td>\n",
" <td>False</td>\n",
" <td>C</td>\n",
" <td>Cherbourg</td>\n",
" <td>yes</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>female</td>\n",
" <td>26.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>7.9250</td>\n",
" <td>S</td>\n",
" <td>Third</td>\n",
" <td>woman</td>\n",
" <td>False</td>\n",
" <td>NaN</td>\n",
" <td>Southampton</td>\n",
" <td>yes</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>female</td>\n",
" <td>35.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>53.1000</td>\n",
" <td>S</td>\n",
" <td>First</td>\n",
" <td>woman</td>\n",
" <td>False</td>\n",
" <td>C</td>\n",
" <td>Southampton</td>\n",
" <td>yes</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>male</td>\n",
" <td>35.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>8.0500</td>\n",
" <td>S</td>\n",
" <td>Third</td>\n",
" <td>man</td>\n",
" <td>True</td>\n",
" <td>NaN</td>\n",
" <td>Southampton</td>\n",
" <td>no</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>886</th>\n",
" <td>0</td>\n",
" <td>2</td>\n",
" <td>male</td>\n",
" <td>27.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>13.0000</td>\n",
" <td>S</td>\n",
" <td>Second</td>\n",
" <td>man</td>\n",
" <td>True</td>\n",
" <td>NaN</td>\n",
" <td>Southampton</td>\n",
" <td>no</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>887</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>female</td>\n",
" <td>19.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>30.0000</td>\n",
" <td>S</td>\n",
" <td>First</td>\n",
" <td>woman</td>\n",
" <td>False</td>\n",
" <td>B</td>\n",
" <td>Southampton</td>\n",
" <td>yes</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>888</th>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>female</td>\n",
" <td>NaN</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>23.4500</td>\n",
" <td>S</td>\n",
" <td>Third</td>\n",
" <td>woman</td>\n",
" <td>False</td>\n",
" <td>NaN</td>\n",
" <td>Southampton</td>\n",
" <td>no</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>889</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>male</td>\n",
" <td>26.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>30.0000</td>\n",
" <td>C</td>\n",
" <td>First</td>\n",
" <td>man</td>\n",
" <td>True</td>\n",
" <td>C</td>\n",
" <td>Cherbourg</td>\n",
" <td>yes</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>890</th>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>male</td>\n",
" <td>32.0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>7.7500</td>\n",
" <td>Q</td>\n",
" <td>Third</td>\n",
" <td>man</td>\n",
" <td>True</td>\n",
" <td>NaN</td>\n",
" <td>Queenstown</td>\n",
" <td>no</td>\n",
" <td>True</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>891 rows × 15 columns</p>\n",
"</div>"
],
"text/plain": [
" survived pclass sex age sibsp parch fare embarked class \\\n",
"0 0 3 male 22.0 1 0 7.2500 S Third \n",
"1 1 1 female 38.0 1 0 71.2833 C First \n",
"2 1 3 female 26.0 0 0 7.9250 S Third \n",
"3 1 1 female 35.0 1 0 53.1000 S First \n",
"4 0 3 male 35.0 0 0 8.0500 S Third \n",
".. ... ... ... ... ... ... ... ... ... \n",
"886 0 2 male 27.0 0 0 13.0000 S Second \n",
"887 1 1 female 19.0 0 0 30.0000 S First \n",
"888 0 3 female NaN 1 2 23.4500 S Third \n",
"889 1 1 male 26.0 0 0 30.0000 C First \n",
"890 0 3 male 32.0 0 0 7.7500 Q Third \n",
"\n",
" who adult_male deck embark_town alive alone \n",
"0 man True NaN Southampton no False \n",
"1 woman False C Cherbourg yes False \n",
"2 woman False NaN Southampton yes True \n",
"3 woman False C Southampton yes False \n",
"4 man True NaN Southampton no True \n",
".. ... ... ... ... ... ... \n",
"886 man True NaN Southampton no True \n",
"887 woman False B Southampton yes True \n",
"888 woman False NaN Southampton no False \n",
"889 man True C Cherbourg yes True \n",
"890 man True NaN Queenstown no True \n",
"\n",
"[891 rows x 15 columns]"
]
},
"execution_count": 79,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"DF = sns.load_dataset(\"titanic\")\n",
"DF"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ pip install git+https://github.com/markur4/plotastic.git

<h1 align="center">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/qpcr1.png" alt="logo">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/tips1.png" width="400px" alt="logo">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/tips1.png" width="350px" alt="logo">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/iris1.png" width="400px" alt="logo">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/mpg1.png" width="400px" alt="logo">
<img src="https://raw.githubusercontent.com/markur4/plotastic/main/IMAGES/EXAMPLE_GALLERY/cars1.png" alt="logo">
</h1>


Expand Down

0 comments on commit 3ced150

Please sign in to comment.