From 50318efefd22bb0cef344c31ce5d1cade73b1eb8 Mon Sep 17 00:00:00 2001 From: Mostafa Farrag Date: Sun, 21 Jul 2024 20:50:10 +0200 Subject: [PATCH] adjust indentations --- cleopatra/array_glyph.py | 108 +++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/cleopatra/array_glyph.py b/cleopatra/array_glyph.py index 7b185c9..0bfe256 100644 --- a/cleopatra/array_glyph.py +++ b/cleopatra/array_glyph.py @@ -689,9 +689,9 @@ def plot( ... cmap="coolwarm_r", ... ) - .. image:: /_images/color-bar-customization.png - :alt: Example Image - :align: center + .. image:: /_images/color-bar-customization.png + :alt: Example Image + :align: center - Color scale customization: @@ -707,39 +707,39 @@ def plot( ... cmap="coolwarm_r", ... ) - .. image:: /_images/power-scale.png - :alt: Example Image - :align: center + .. image:: /_images/power-scale.png + :alt: Example Image + :align: center - change the gamma of 0.8. + - change the gamma of 0.8. - >>> array = ArrayGlyph(arr, figsize=(6, 6), title="Power scale: gamma=0.8", title_size=18) - >>> fig, ax = array.plot( - ... cbar_label_rotation=-90, - ... cbar_label="Discharge m3/s", - ... color_scale="power", - ... gamma=0.8, - ... cmap="coolwarm_r", - ... ) + >>> array = ArrayGlyph(arr, figsize=(6, 6), title="Power scale: gamma=0.8", title_size=18) + >>> fig, ax = array.plot( + ... cbar_label_rotation=-90, + ... cbar_label="Discharge m3/s", + ... color_scale="power", + ... gamma=0.8, + ... cmap="coolwarm_r", + ... ) - .. image:: /_images/power-scale-gamma-0.8.png - :alt: Example Image - :align: center + .. image:: /_images/power-scale-gamma-0.8.png + :alt: Example Image + :align: center - change the gamma of 0.1. + - change the gamma of 0.1. - >>> array = ArrayGlyph(arr, figsize=(6, 6), title="Power scale: gamma=0.1", title_size=18) - >>> fig, ax = array.plot( - ... cbar_label_rotation=-90, - ... cbar_label="Discharge m3/s", - ... color_scale="power", - ... gamma=0.1, - ... cmap="coolwarm_r", - ... ) + >>> array = ArrayGlyph(arr, figsize=(6, 6), title="Power scale: gamma=0.1", title_size=18) + >>> fig, ax = array.plot( + ... cbar_label_rotation=-90, + ... cbar_label="Discharge m3/s", + ... color_scale="power", + ... gamma=0.1, + ... cmap="coolwarm_r", + ... ) - .. image:: /_images/power-scale-gamma-0.1.png - :alt: Example Image - :align: center + .. image:: /_images/power-scale-gamma-0.1.png + :alt: Example Image + :align: center - Logarithmic scale. @@ -751,9 +751,9 @@ def plot( ... cmap="coolwarm_r", ... ) - .. image:: /_images/log-scale.png - :alt: Example Image - :align: center + .. image:: /_images/log-scale.png + :alt: Example Image + :align: center - Defined boundary scale. @@ -765,27 +765,27 @@ def plot( ... cmap="coolwarm_r", ... ) - .. image:: /_images/boundary-scale.png - :alt: Example Image - :align: center + .. image:: /_images/boundary-scale.png + :alt: Example Image + :align: center - You can also define the boundaries. + - You can also define the boundaries. - >>> array = ArrayGlyph( - ... arr, figsize=(6, 6), title="Defined boundary scale: defined bounds", title_size=18 - ... ) - >>> bounds = [0, 5, 10] - >>> fig, ax = array.plot( - ... cbar_label_rotation=-90, - ... cbar_label="Discharge m3/s", - ... color_scale="boundary-norm", - ... bounds=bounds, - ... cmap="coolwarm_r", - ... ) + >>> array = ArrayGlyph( + ... arr, figsize=(6, 6), title="Defined boundary scale: defined bounds", title_size=18 + ... ) + >>> bounds = [0, 5, 10] + >>> fig, ax = array.plot( + ... cbar_label_rotation=-90, + ... cbar_label="Discharge m3/s", + ... color_scale="boundary-norm", + ... bounds=bounds, + ... cmap="coolwarm_r", + ... ) - .. image:: /_images/boundary-scale-defined-bounds.png - :alt: Example Image - :align: center + .. image:: /_images/boundary-scale-defined-bounds.png + :alt: Example Image + :align: center - Midpoint scale. @@ -797,9 +797,9 @@ def plot( ... cmap="coolwarm_r", ... ) - .. image:: /_images/midpoint-scale.png - :alt: Example Image - :align: center + .. image:: /_images/midpoint-scale.png + :alt: Example Image + :align: center """ for key, val in kwargs.items(): if key not in self.default_options.keys():