question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image for "Basic plots - plot" should hint at markers

See original GitHub issue

Currently the image is just sine line, which could trick users in thinking that plot is for lines and scatter is for markers.

grafik

I propose to additionally show another set of values with markers, e.g. something like:

grafik

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jklymakcommented, Jul 7, 2020

as general case plot is for lines and scatter is for points.

scatter is for when you need a third dimension, either represented as marker size or color. Otherwise, you should just use plot.

0reactions
timhoffmcommented, Jul 7, 2020

for smaller datasets the difference is negligible & so you may as well not overload a function with two semantically distinct

I argue the other way round: From the data semantics:

  • plot() is primarily for functional relationship y = f(x) so that there is only one y per x. Whether you draw this with single markers or lines or both is a stylistic choice.
  • scatter() is for drawing points in the (x, y) plane, and optionally adding additional information like color and size.
Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Scatter Plots - Chartio
Scatter plots are an essential type of data visualization that shows relationships between variables. Use this tutorial to learn how to use this...
Read more >
Matplotlib Cheat Sheet. Basic plots, include code samples.
Every axes has an x-axis and y-axis for plotting. Ticks are the markers denoting data points on axes, that is, the values used...
Read more >
using custom images instead of standard shapes for R line ...
My intended use is in a line chart where the markers will appear on the legend as well. The answers here ( Labelling...
Read more >
how to set a marker at one specific point on a plot ... - MathWorks
Direct link to this answer ... Alternatively, starting in R2016b, you can specify the MarkerIndices property to plot a line with markers at...
Read more >
Plotting with basic glyphs - Bokeh documentation
Bokeh's built-in scatter markers consist of a set of base markers, most of which can be combined with different kinds of additional visual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found