From 26e48e311902d9dad213eb4082a69a598f9e3df5 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Thu, 7 Nov 2024 22:04:39 +0100 Subject: [PATCH 01/11] Add basic tutorial for plotting symbols --- examples/tutorials/basics/symbols.py | 94 ++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 examples/tutorials/basics/symbols.py diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py new file mode 100644 index 00000000000..d2ab1aca11b --- /dev/null +++ b/examples/tutorials/basics/symbols.py @@ -0,0 +1,94 @@ +""" +Plotting symbols +================ + +The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, +``size``, and ``symbol`` parameters. +""" + +# %% +import pygmt + +# Set up five sample data points as lists for the x and y values +x = [-4, -2, 0, 2, 4] +y = [0] * len(x) + + +# %% +# Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data +# points with the same symbol and size. Via the ``fill`` parameter the symbols can be +# filled with a color or pattern, and ``pen`` can add an outline (pass an argument in +# the form *width*,\ *color*,\ *style*). The defaults are no fill and a 0.25-points +# thick, black, solid outline. + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +# Plot circles (first "c") with a diameter of 0.5 centimeters (second "c") +fig.plot(x=x, y=y, style="c0.5c", fill="gray", pen="1p,orange") + +fig.show() + + +# %% +# Use the ``size`` parameter to plot the data points with individual sizes. + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +fig.plot( + x=x, + y=y, + # Plot circles (first "c") with a diameter in centimeters (second "c") + style="cc", + # Individual sizes + size=[0.5, 0.2, 0.4, 0.6, 0.3], + fill="gray", + pen="1p,orange", +) + +fig.show() + + +# %% +# Use the ``symbol`` parameter to plot the data points with individual symbols. + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +fig.plot( + x=x, + y=y, + # Constant size of 0.5 centimeters + style="0.5c", + # Plot a circle, a square, a triangle, a inverse triangle, a diamond + symbol=["c", "s", "t", "i", "d"], + fill="gray", + pen="1p,orange", +) + +fig.show() + + +# %% +# Use the ``symbol`` and ``size`` parameters together to plot the data points with +# individual symbols and sizes. ``symbol`` and ``size`` need to have the same length. +# The unit used by ``size`` is now set via the GMT default parameter +# ``PROJ_LENGTH_UNIT`` and is by default centimeters. Use :class:`pygmt.config` +# to change this. + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +fig.plot( + x=x, + y=y, + symbol=["c", "s", "t", "i", "d"], + size=[0.5, 0.2, 0.4, 0.6, 0.3], + fill="gray", + pen="1p,orange", +) + +fig.show() + +# sphinx_gallery_thumbnail_number = 4 From ff0ae3b174babdeb92570dc976bf8fc4ba1a60c7 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Fri, 8 Nov 2024 12:14:50 +0100 Subject: [PATCH 02/11] Improve docs --- examples/tutorials/basics/symbols.py | 40 +++++++++++++++++----------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index d2ab1aca11b..baa1d6e9de1 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -1,9 +1,17 @@ -""" -Plotting symbols -================ - -The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, -``size``, and ``symbol`` parameters. +r""" +Plotting single-parameter symbols +================================= + +The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, ``size``, and +``symbol`` parameters. Via the ``fill`` parameter the symbols can be filled with a color +or pattern. The ``pen`` parameter can add an outline by providing a string argument in +the form *width*,\ *color*,\ *style*. The defaults are no fill and a 0.25-points thick, +black, solid outline. For the available patterns see the Technical Reference +:doc:`Bit and hachure patterns `. For details on adjusting ``pen`` +see the Gallery example :doc:`Line styles `. For the +available single- and multi-parameter symbols see the Gallery examples +:doc:`Single-parameter symbols ` and +:doc:`Multi-parameter symbols `, respectively. """ # %% @@ -16,10 +24,7 @@ # %% # Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data -# points with the same symbol and size. Via the ``fill`` parameter the symbols can be -# filled with a color or pattern, and ``pen`` can add an outline (pass an argument in -# the form *width*,\ *color*,\ *style*). The defaults are no fill and a 0.25-points -# thick, black, solid outline. +# points with the same symbol and size. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -31,7 +36,8 @@ # %% -# Use the ``size`` parameter to plot the data points with individual sizes. +# Use the ``size`` parameter to plot the data points with individual sizes. Provide +# the different sizes as a list or array of floats. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -41,7 +47,7 @@ y=y, # Plot circles (first "c") with a diameter in centimeters (second "c") style="cc", - # Individual sizes + # Use individual sizes size=[0.5, 0.2, 0.4, 0.6, 0.3], fill="gray", pen="1p,orange", @@ -51,7 +57,9 @@ # %% -# Use the ``symbol`` parameter to plot the data points with individual symbols. +# Use the ``symbol`` parameter to plot the data points with individual symbols. Provide +# the different symbols as a list of strings. Here, only single parameter symbols can +# be used. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -59,7 +67,7 @@ fig.plot( x=x, y=y, - # Constant size of 0.5 centimeters + # Use a constant size of 0.5 centimeters style="0.5c", # Plot a circle, a square, a triangle, a inverse triangle, a diamond symbol=["c", "s", "t", "i", "d"], @@ -74,8 +82,8 @@ # Use the ``symbol`` and ``size`` parameters together to plot the data points with # individual symbols and sizes. ``symbol`` and ``size`` need to have the same length. # The unit used by ``size`` is now set via the GMT default parameter -# ``PROJ_LENGTH_UNIT`` and is by default centimeters. Use :class:`pygmt.config` -# to change this. +# ``PROJ_LENGTH_UNIT`` and is by default centimeters. Use :class:`pygmt.config` to +# change this. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) From a464101be54691eca7eae5692985d3a74512024d Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Fri, 8 Nov 2024 12:53:55 +0100 Subject: [PATCH 03/11] Fix typo --- examples/tutorials/basics/symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index baa1d6e9de1..da970fad91a 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -58,7 +58,7 @@ # %% # Use the ``symbol`` parameter to plot the data points with individual symbols. Provide -# the different symbols as a list of strings. Here, only single parameter symbols can +# the different symbols as a list of strings. Here, only single-parameter symbols can # be used. fig = pygmt.Figure() From 5c43c9bec9732fcc5f6d97259d8475cb6019147d Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 18:33:45 +0100 Subject: [PATCH 04/11] Use NumPy arrays --- examples/tutorials/basics/symbols.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index da970fad91a..13037740de4 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -15,11 +15,12 @@ """ # %% +import numpy as np import pygmt -# Set up five sample data points as lists for the x and y values -x = [-4, -2, 0, 2, 4] -y = [0] * len(x) +# Set up five sample data points as NumPy arrays for the x and y values +x = np.array([-4, -2, 0, 2, 4]) +y = np.array([0, 0, 0, 0, 0]) # %% From 14a5b06adf1eee88074e4f8eb0fde379b98ed048 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 18:40:27 +0100 Subject: [PATCH 05/11] Improve formulation --- examples/tutorials/basics/symbols.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 13037740de4..26ef0da9b1a 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -81,10 +81,10 @@ # %% # Use the ``symbol`` and ``size`` parameters together to plot the data points with -# individual symbols and sizes. ``symbol`` and ``size`` need to have the same length. -# The unit used by ``size`` is now set via the GMT default parameter -# ``PROJ_LENGTH_UNIT`` and is by default centimeters. Use :class:`pygmt.config` to -# change this. +# individual symbols and sizes. The arguments passed to ``symbol`` and ``size`` must +# have the same length. The unit for ``size`` is now set via the GMT default parameter +# ``PROJ_LENGTH_UNIT`` which can by adjusted using :class:`pygmt.config`[Default is +# centimeters]. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) From 530830c9b6510574bc5876ca5f898296378e4e6a Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 22:38:08 +0100 Subject: [PATCH 06/11] Add seperate example for 'pen' and 'fill' parameters --- examples/tutorials/basics/symbols.py | 55 ++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 26ef0da9b1a..44c9f17fbc8 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -3,13 +3,13 @@ ================================= The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, ``size``, and -``symbol`` parameters. Via the ``fill`` parameter the symbols can be filled with a color -or pattern. The ``pen`` parameter can add an outline by providing a string argument in -the form *width*,\ *color*,\ *style*. The defaults are no fill and a 0.25-points thick, -black, solid outline. For the available patterns see the Technical Reference -:doc:`Bit and hachure patterns `. For details on adjusting ``pen`` -see the Gallery example :doc:`Line styles `. For the -available single- and multi-parameter symbols see the Gallery examples +``symbol`` parameters. The ``fill`` parameter can fill the symbols with a color or +pattern. For the available patterns see the Technical Reference +:doc:`Bit and hachure patterns `. Using the ``pen`` parameter a (the) +outline can be added (adjusted) by providing a string argument in the form +*width*,\ *color*,\ *style*. For details on adjusting ``pen`` see the Gallery example +:doc:`Line styles `. For the available single- and multi- +parameter symbols see the Gallery examples :doc:`Single-parameter symbols ` and :doc:`Multi-parameter symbols `, respectively. """ @@ -24,6 +24,9 @@ # %% +# Plot single-parameter symbols +# ----------------------------- +# # Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data # points with the same symbol and size. @@ -31,14 +34,36 @@ fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) # Plot circles (first "c") with a diameter of 0.5 centimeters (second "c") +fig.plot(x=x, y=y, style="c0.5c") + +fig.show() + +# %% +# Use the ``fill`` and ``pen`` parameters to add a fill color (or pattern) and an +# outline, respectively. Note, that no outline is drawn by default when ``fill`` is +# used. + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +# Add a color (or pattern) via the fill parameter +fig.plot(x=x, y=y, style="c0.5c", fill="gray") + +fig.shift_origin(xshift="w+1c") +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +# Add (Adjust) an (the) outline via the pen parameter fig.plot(x=x, y=y, style="c0.5c", fill="gray", pen="1p,orange") fig.show() # %% +# Use individual sizes +# -------------------- +# # Use the ``size`` parameter to plot the data points with individual sizes. Provide -# the different sizes as a list or array of floats. +# the different sizes as a NumPy array or array-like object of integers or floats. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -49,7 +74,7 @@ # Plot circles (first "c") with a diameter in centimeters (second "c") style="cc", # Use individual sizes - size=[0.5, 0.2, 0.4, 0.6, 0.3], + size=np.array([0.5, 0.2, 0.4, 0.6, 0.3]), fill="gray", pen="1p,orange", ) @@ -58,6 +83,9 @@ # %% +# Use individual symbols +# ---------------------- +# # Use the ``symbol`` parameter to plot the data points with individual symbols. Provide # the different symbols as a list of strings. Here, only single-parameter symbols can # be used. @@ -80,10 +108,13 @@ # %% +# Use individual symbols and sizes +# -------------------------------- +# # Use the ``symbol`` and ``size`` parameters together to plot the data points with # individual symbols and sizes. The arguments passed to ``symbol`` and ``size`` must # have the same length. The unit for ``size`` is now set via the GMT default parameter -# ``PROJ_LENGTH_UNIT`` which can by adjusted using :class:`pygmt.config`[Default is +# ``PROJ_LENGTH_UNIT`` which can by adjusted using :class:`pygmt.config` [Default is # centimeters]. fig = pygmt.Figure() @@ -93,11 +124,11 @@ x=x, y=y, symbol=["c", "s", "t", "i", "d"], - size=[0.5, 0.2, 0.4, 0.6, 0.3], + size=np.array([0.5, 0.2, 0.4, 0.6, 0.3]), fill="gray", pen="1p,orange", ) fig.show() -# sphinx_gallery_thumbnail_number = 4 +# sphinx_gallery_thumbnail_number = 5 From 81734823d6176861a917a538385e5c95f72c54b9 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 22:48:52 +0100 Subject: [PATCH 07/11] Improve docs --- examples/tutorials/basics/symbols.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 44c9f17fbc8..cdfed047165 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -28,7 +28,8 @@ # ----------------------------- # # Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data -# points with the same symbol and size. +# points with the same symbol and size. By default the symbols are drawn unfilled with +# an 0.25-points, thick, solid outline. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -39,9 +40,9 @@ fig.show() # %% -# Use the ``fill`` and ``pen`` parameters to add a fill color (or pattern) and an -# outline, respectively. Note, that no outline is drawn by default when ``fill`` is -# used. +# Use the ``fill`` the parameter to add a fill color (or pattern). Via ``pen`` an (the) +# outline can be added (adjusted). Note, that no outline is drawn by default when +# ``fill`` is used. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) From d2750fb30f5f1e4d36a6ad752faebf7f3242836f Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 22:50:48 +0100 Subject: [PATCH 08/11] Remove 'r' --- examples/tutorials/basics/symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index cdfed047165..2cee61d5a4c 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -1,4 +1,4 @@ -r""" +""" Plotting single-parameter symbols ================================= From 17b20528536bd456e15819d623f809197ed29e27 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 23:04:53 +0100 Subject: [PATCH 09/11] Split examples for 'pen' and 'fill' --- examples/tutorials/basics/symbols.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 2cee61d5a4c..67ac16cc2ce 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -1,12 +1,12 @@ -""" +r""" Plotting single-parameter symbols ================================= The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, ``size``, and ``symbol`` parameters. The ``fill`` parameter can fill the symbols with a color or pattern. For the available patterns see the Technical Reference -:doc:`Bit and hachure patterns `. Using the ``pen`` parameter a (the) -outline can be added (adjusted) by providing a string argument in the form +:doc:`Bit and hachure patterns `. Using the ``pen`` parameter the +outline can be adjusted by providing a string argument in the form *width*,\ *color*,\ *style*. For details on adjusting ``pen`` see the Gallery example :doc:`Line styles `. For the available single- and multi- parameter symbols see the Gallery examples @@ -28,8 +28,8 @@ # ----------------------------- # # Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data -# points with the same symbol and size. By default the symbols are drawn unfilled with -# an 0.25-points, thick, solid outline. +# points with the same symbol and size. By default, the symbol is drawn unfilled with +# an 0.25-points, thick, solid outline. Use the ``pen`` parameter to adjust the outline. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -37,23 +37,28 @@ # Plot circles (first "c") with a diameter of 0.5 centimeters (second "c") fig.plot(x=x, y=y, style="c0.5c") +fig.shift_origin(xshift="w+1c") +fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) + +# Adjust the outline via the pen parameter +fig.plot(x=x, y=y, style="c0.5c", pen="1p,orange") + fig.show() # %% -# Use the ``fill`` the parameter to add a fill color (or pattern). Via ``pen`` an (the) -# outline can be added (adjusted). Note, that no outline is drawn by default when -# ``fill`` is used. +# Use the ``fill`` the parameter to add a fill color (or pattern). Note, that no outline +# is drawn by default when ``fill`` is used. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) -# Add a color (or pattern) via the fill parameter +# Add a color via the fill parameter fig.plot(x=x, y=y, style="c0.5c", fill="gray") fig.shift_origin(xshift="w+1c") fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) -# Add (Adjust) an (the) outline via the pen parameter +# Add an outline via the pen parameter fig.plot(x=x, y=y, style="c0.5c", fill="gray", pen="1p,orange") fig.show() From b8ad71fe85cdb4bc6e10e4d8d3047f92ca68fd32 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 10 Nov 2024 23:40:22 +0100 Subject: [PATCH 10/11] Move documentation parts again --- examples/tutorials/basics/symbols.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 67ac16cc2ce..0be5d50cb74 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -3,15 +3,11 @@ ================================= The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, ``size``, and -``symbol`` parameters. The ``fill`` parameter can fill the symbols with a color or -pattern. For the available patterns see the Technical Reference -:doc:`Bit and hachure patterns `. Using the ``pen`` parameter the -outline can be adjusted by providing a string argument in the form -*width*,\ *color*,\ *style*. For details on adjusting ``pen`` see the Gallery example -:doc:`Line styles `. For the available single- and multi- -parameter symbols see the Gallery examples -:doc:`Single-parameter symbols ` and -:doc:`Multi-parameter symbols `, respectively. +``symbol`` parameters. This tutorial focuses on single-parameter symbols; for an +overview of the available single-parameter symbols see the Gallery example +:doc:`Single-parameter symbols `. The available multi- +parameter symbols are explained in the Gallery example +:doc:`Multi-parameter symbols `. """ # %% @@ -29,7 +25,9 @@ # # Use the ``style`` parameter of the :meth:`pygmt.Figure.plot` method to plot all data # points with the same symbol and size. By default, the symbol is drawn unfilled with -# an 0.25-points, thick, solid outline. Use the ``pen`` parameter to adjust the outline. +# an 0.25-points, thick, solid outline. Use the ``pen`` parameter to adjust the outline +# by providing a string argument in the form *width*,\ *color*,\ *style*; for details +# see the Gallery example :doc:`Line styles `. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) @@ -46,8 +44,9 @@ fig.show() # %% -# Use the ``fill`` the parameter to add a fill color (or pattern). Note, that no outline -# is drawn by default when ``fill`` is used. +# Use the ``fill`` the parameter to add a fill color or pattern. Note, that no outline +# is drawn by default when ``fill`` is used. For the available patterns see the +# Technical Reference :doc:`Bit and hachure patterns `. fig = pygmt.Figure() fig.basemap(region=[-5, 5, -2, 2], projection="X10c/4c", frame=True) From 601446b82f17e2d9575d385884bc91a2b2aced82 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 13 Nov 2024 18:39:24 +0100 Subject: [PATCH 11/11] Fix typos --- examples/tutorials/basics/symbols.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/basics/symbols.py b/examples/tutorials/basics/symbols.py index 0be5d50cb74..618d9a61148 100644 --- a/examples/tutorials/basics/symbols.py +++ b/examples/tutorials/basics/symbols.py @@ -1,10 +1,10 @@ -r""" +""" Plotting single-parameter symbols ================================= The :meth:`pygmt.Figure.plot` method can plot symbols via the ``style``, ``size``, and ``symbol`` parameters. This tutorial focuses on single-parameter symbols; for an -overview of the available single-parameter symbols see the Gallery example +overview of the available single-parameter symbols, see the Gallery example :doc:`Single-parameter symbols `. The available multi- parameter symbols are explained in the Gallery example :doc:`Multi-parameter symbols `. @@ -103,7 +103,7 @@ y=y, # Use a constant size of 0.5 centimeters style="0.5c", - # Plot a circle, a square, a triangle, a inverse triangle, a diamond + # Plot a circle, a square, a triangle, an inverse triangle, a diamond symbol=["c", "s", "t", "i", "d"], fill="gray", pen="1p,orange",