Skip to content

Commit

Permalink
update figsize and cmap in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Aug 25, 2023
1 parent 852d88c commit 53d8f8e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions notebooks/pca_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
},
"source": [
"# Make plot with only the directions (no scatter)\n",
"fig, ax = model.biplot(legend=False, figsize=(20, 10), dpi=50)"
"fig, ax = model.biplot(legend=False, figsize=(20, 12), dpi=50, cmap='Set1')"
],
"execution_count": null,
"outputs": [
Expand Down Expand Up @@ -301,7 +301,7 @@
},
"source": [
"# Make plot with only the directions (no scatter)\n",
"fig, ax = model.biplot(cmap=None, legend=False, figsize=(20, 10), dpi=50)"
"fig, ax = model.biplot(cmap=None, legend=False, figsize=(20, 12), dpi=50, cmap='Set1')"
],
"execution_count": null,
"outputs": [
Expand Down Expand Up @@ -386,13 +386,13 @@
"# Make plots\n",
"\n",
"# Scree plot\n",
"fig, ax = model.plot(figsize=(20, 10), dpi=50)\n",
"fig, ax = model.plot(figsize=(20, 12), dpi=50)\n",
"\n",
"# Scatter plot\n",
"fig, ax = model.scatter(figsize=(20, 10), dpi=50)\n",
"fig, ax = model.scatter(figsize=(20, 12), dpi=50)\n",
"\n",
"# Biplot\n",
"fig, ax = model.biplot(figsize=(20, 10), dpi=50)\n"
"fig, ax = model.biplot(figsize=(20, 12), dpi=50, cmap='Set1')\n"
],
"execution_count": null,
"outputs": [
Expand Down Expand Up @@ -456,7 +456,7 @@
"# Coloring on density to focus on the core samples.\n",
"\n",
"# Biplot\n",
"fig, ax = model.biplot(figsize=(20, 10), dpi=50, gradient='#ffffff')\n"
"fig, ax = model.biplot(figsize=(20, 12), dpi=50, gradient='#ffffff', cmap='Set1')\n"
],
"metadata": {
"colab": {
Expand Down Expand Up @@ -545,7 +545,7 @@
"cell_type": "code",
"source": [
"# Outlier detection\n",
"fig, ax = model.biplot(SPE=True, HT2=True, figsize=(20, 10), dpi=50)"
"fig, ax = model.biplot(SPE=True, HT2=True, figsize=(20, 12), dpi=50, cmap='Set1')"
],
"metadata": {
"colab": {
Expand Down Expand Up @@ -590,9 +590,9 @@
},
"source": [
"# 3D plots\n",
"fig, ax = model.scatter3d(figsize=(20, 10), dpi=50)\n",
"fig, ax = model.biplot3d(figsize=(20, 10), dpi=50)\n",
"fig, ax = model.biplot3d(SPE=True, HT2=True, figsize=(20, 10), dpi=50)"
"fig, ax = model.scatter3d(figsize=(20, 12), dpi=50)\n",
"fig, ax = model.biplot3d(figsize=(20, 12), dpi=50, cmap='Set1')\n",
"fig, ax = model.biplot3d(SPE=True, HT2=True, figsize=(20, 12), dpi=50, cmap='Set1')"
],
"execution_count": null,
"outputs": [
Expand Down Expand Up @@ -659,7 +659,7 @@
"outputId": "7e8be72a-3eaf-4f21-d790-5954e2a4beae"
},
"source": [
"fig, ax = model.biplot3d(SPE=True, HT2=True, visible=False, figsize=(20, 10), dpi=50)\n",
"fig, ax = model.biplot3d(SPE=True, HT2=True, visible=False, figsize=(20, 12), dpi=50, cmap='Set1')\n",
"\n",
"# Set the figure again to True and show the figure.\n",
"fig.set_visible(True)\n",
Expand Down

0 comments on commit 53d8f8e

Please sign in to comment.