Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ for the plot commands. To set the line style it can be used as follows.
.. code-block:: cpp

// for a red dashed line with circle markers
plt::plot(x, y, {{"color", "red"}, {"marker": "o"}, {"linestyle": "--"}})
plt::plot(x, y, {{"color", "red"}, {"marker", "o"}, {"linestyle", "--"}})

// shorthand notation for color and linestyle is usually supported
plt::plot(x, y, {{"c", "red"}, {"marker": "o"}, {"ls": "--"}})
plt::plot(x, y, {{"c", "red"}, {"marker", "o"}, {"ls", "--"}})

See sections `Marker`_, `Color`_ and `Line`_
for supported values.
Expand Down