Hello,
I plotted some data with lines and then highlighted some specific points with dots using PyPlot. When I add the legend, the icons next to the names only shows line because the first elements of the plot are indeed lines. Can I add manually the shapes of the markers? I tried adding the parameter marker
but gave an error.
This is the figure
and this is the code for the legend:
julia> legend(["S. mutans (alone)", "C. albicans (alone)",
"S. mutans (together)", "C. albicans (together)"],
marker = ["o", "o", "o", "o"],
loc="lower right")
ERROR: PyError ($(Expr(:escape, :(ccall(#= ~/.julia/packages/PyCall/3fwVL/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'TypeError'>
TypeError("__init__() got an unexpected keyword argument 'marker'")
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 2738, in legend
return gca().legend(*args, **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/axes/_axes.py", line 417, in legend
self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)