plt.plot
returns a list of the Line2D
objects plotted, even if you plot only one line.
That comma is unpacking the single value into line
.
ex
a, b = [1, 2]
a, = [1, ]
More Related Contents:
- x, = … – is this trailing comma the comma operator?
- Matplotlib: Plotting numerous disconnected line segments with different colors
- matplotlib/seaborn: first and last row cut in half of heatmap plot
- Annotate bars with values on Pandas bar plots
- Is there a way to make a discontinuous axis in Matplotlib?
- How to change the font size on a matplotlib plot
- How to get different colored lines for different plots in a single figure?
- plot different color for different categorical levels using matplotlib
- multiple axis in matplotlib with different scales [duplicate]
- How to maximize a plt.show() window using Python
- What is the difference between ‘log’ and ‘symlog’?
- How to have clusters of stacked bars
- PyPlot move alternative y axis to background
- How to use custom png image marker with plot?
- Representing voxels with matplotlib
- Modify the legend of pandas bar plot
- List of Tuples to DataFrame Conversion [duplicate]
- How to set default colormap in Matplotlib
- update frame in matplotlib with live camera preview
- Changing the tick frequency on the x or y axis
- How to make several plots on a single page using matplotlib?
- How can I use seaborn without changing the matplotlib defaults?
- Labeling boxplot in seaborn with median value
- How to load .ttf file in matplotlib using mpl.rcParams?
- Matplotlib just giving error messages
- How to shade region under the curve in matplotlib
- Filter a list of tuples based on condition
- Setting different color for each series in scatter plot
- Annotate Time Series plot
- How to show minor tick labels on log-scale with Matplotlib