To require or not required depending on where your script is.
There are 2 contexts.
-
Matplotlib is used in a terminal or scripts, plt.show() is a must.
-
Matplotlib is used in a IPython shell or a notebook (ex: Kaggle), plt.show() is unnecessary.
More Related Contents:
- matplotlib: can I create AxesSubplot objects, then add them to a Figure instance?
- Setting different color for each series in scatter plot on matplotlib
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- Reverse Y-Axis in PyPlot
- How to manually create a legend
- Matplotlib: save plot to numpy array
- Defining the midpoint of a colormap in matplotlib
- How to plot multiple functions on the same figure, in Matplotlib?
- find length of sequences of identical values in a numpy array (run length encoding)
- Plotting grouped data in same plot using Pandas
- How to highlight specific x-value ranges
- warning about too many open figures
- How to increase/reduce the fontsize of x and y tick labels
- How to convert a .wav file to a spectrogram in python3
- Retrieve XY data from matplotlib figure [duplicate]
- python matplotlib blit to axes or sides of the figure?
- plot decision boundary matplotlib
- How to get a list of all the fonts currently available for Matplotlib?
- How to skip empty dates (weekends) in a financial Matplotlib Python graph?
- matplotlib 2d line line,=plot comma meaning
- Matplotlib: How to colorize a large number of line segments as independent gradients, efficiently
- How to annotate the values of X and Y while hovering mouse over the bar graph
- How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?
- How to create major and minor gridlines with different linestyles in Python
- ValueError: Unknown projection ‘3d’
- Elegantly changing the color of a plot frame in matplotlib
- How to have actual values in matplotlib Pie Chart displayed
- How to change matplotlib backends
- Date ticks and rotation [duplicate]
- matplotlib taking time when being imported