Skip to content

Update style.rst #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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