From 087a434c49aa2f9c9a5e98238a163ad94cfe1ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Tue, 30 Sep 2025 21:23:04 +0200 Subject: [PATCH 1/5] Use always 'Parameters' --- pygmt/params/box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/params/box.py b/pygmt/params/box.py index 280dddac1e0..3df0a64fc92 100644 --- a/pygmt/params/box.py +++ b/pygmt/params/box.py @@ -18,7 +18,7 @@ class Box(BaseParam): """ Class for specifying the box around GMT embellishments. - Attributes + Parameters ---------- clearance Set clearances between the embellishment and the box border. It can be either a From 5c341e71b95d11c1613d136e8446520a864e5b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Tue, 30 Sep 2025 21:57:26 +0200 Subject: [PATCH 2/5] TEST: Adjust variable name in example --- examples/gallery/symbols/patterns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gallery/symbols/patterns.py b/examples/gallery/symbols/patterns.py index f9896a9ee47..f44e4b12ca8 100644 --- a/examples/gallery/symbols/patterns.py +++ b/examples/gallery/symbols/patterns.py @@ -55,11 +55,11 @@ frame="rlbt+glightgray+tBit and Hachure Patterns", ) y = 11 -for pattern in patterns: +for ipattern in patterns: # Plot a square with the pattern as fill. # The square has a size of 2 centimeters with a 1 point thick, black outline. - fig.plot(x=1, y=y, style="s2c", pen="1p,black", fill=pattern) + fig.plot(x=1, y=y, style="s2c", pen="1p,black", fill=ipattern) # Add a description of the pattern. - fig.text(x=2, y=y, text=str(repr(pattern)), font="Courier-Bold", justify="ML") + fig.text(x=2, y=y, text=str(repr(ipattern)), font="Courier-Bold", justify="ML") y -= 2 fig.show() From 4350b5ed626b769a1e7230dc38459acaa6639f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Tue, 30 Sep 2025 22:10:03 +0200 Subject: [PATCH 3/5] Revert "TEST: Adjust variable name in example" This reverts commit 5c341e71b95d11c1613d136e8446520a864e5b1b. --- examples/gallery/symbols/patterns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gallery/symbols/patterns.py b/examples/gallery/symbols/patterns.py index f44e4b12ca8..f9896a9ee47 100644 --- a/examples/gallery/symbols/patterns.py +++ b/examples/gallery/symbols/patterns.py @@ -55,11 +55,11 @@ frame="rlbt+glightgray+tBit and Hachure Patterns", ) y = 11 -for ipattern in patterns: +for pattern in patterns: # Plot a square with the pattern as fill. # The square has a size of 2 centimeters with a 1 point thick, black outline. - fig.plot(x=1, y=y, style="s2c", pen="1p,black", fill=ipattern) + fig.plot(x=1, y=y, style="s2c", pen="1p,black", fill=pattern) # Add a description of the pattern. - fig.text(x=2, y=y, text=str(repr(ipattern)), font="Courier-Bold", justify="ML") + fig.text(x=2, y=y, text=str(repr(pattern)), font="Courier-Bold", justify="ML") y -= 2 fig.show() From b9c6b450bfe064567a9972ed2459648bdebee352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Thu, 2 Oct 2025 00:58:21 +0200 Subject: [PATCH 4/5] Remove attribute section from doc pages for para classes --- doc/_templates/autosummary/class.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst index 57a35f189a2..7acd36bb5eb 100644 --- a/doc/_templates/autosummary/class.rst +++ b/doc/_templates/autosummary/class.rst @@ -4,7 +4,7 @@ .. autoclass:: {{ objname }} -{% if attributes %} +{% if '_aliases' not in attributes %} .. rubric:: Attributes {% for item in attributes %} From 249968304782e572eb85bd3bc2785a3c46e316c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Thu, 2 Oct 2025 01:26:31 +0200 Subject: [PATCH 5/5] Revert "Remove attribute section from doc pages for para classes" This reverts commit b9c6b450bfe064567a9972ed2459648bdebee352. --- doc/_templates/autosummary/class.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst index 7acd36bb5eb..57a35f189a2 100644 --- a/doc/_templates/autosummary/class.rst +++ b/doc/_templates/autosummary/class.rst @@ -4,7 +4,7 @@ .. autoclass:: {{ objname }} -{% if '_aliases' not in attributes %} +{% if attributes %} .. rubric:: Attributes {% for item in attributes %}