# Markers in list_plot

Hello! I discovered today that one cannot use the marker property with list_plot(). So I would like to know if this hasn't been implemented yet (but planned) or there is another way to be used?

Thanks!

Edit: I tried to use

list_plot(DATA_LIST, plotjoined=True, linestyle="", marker='v')


and it indeed let me use different form of markers, but in the case when DATA_LIST consists of only one element, the point placed incorrectly on the resulting plot.

Edit 2: I remembered that there were some problems associated with the logarithmic scales on the axes. That is why I re-read this thread and realized that I have to add an axes_pad=0 parameter in order to get the correctly placed points. So the resuling work-around for a loglog scale would look like this:

list_plot(DATA_LIST, plotjoined=True, linestyle="", marker='v', scale='loglog', axes_pad=0)

edit retag close merge delete

Sort by » oldest newest most voted

I use line with an empty linestyle.

sage: l = enumerate(range(10))
sage: l
<enumerate object at 0x10d433190>
sage: line(l,linestyle='', marker='v')


This seems to work with just one point, as does

sage: list_plot([(1,2)],plotjoined=True,linestyle='',marker='v')

more

Yes, it turned out that in my case the problem was because of the 'loglog' scale. I added a 'axes_pad=0' parameter and obtained a correct result. Thanks!

( 2012-11-28 07:39:12 -0500 )edit

You can use scatter_plot instead

sage: scatter_plot([(1,1),(2,2),(4,-1)],markersize=30,edgecolor=(1, 0, 0), marker='x')

more

Nice. I think there is current work, maybe now merged, for this to work with point() as well.

( 2015-01-15 20:15:33 -0500 )edit