One way to use plots in Visual Studio Code is with Juypiter notebooks. You need to install the official Microsoft Python plugin ms-python.python.
Once installed, you may open an existing notebook or create one in the command palette with
Shift+Command+P and select Python: Create Blank New Jupyter Notebook
Docs: Create or open a Jupyter Notebook
Visualizing Plots
Pandas example:
import pandas as pd
df = pd.DataFrame([2,5,67,2,3,5,23,124])
df.hist()
To execute, click on the green play icon or Shift+Enter:

From the docs:
The Plot Viewer gives you the ability to work more deeply with your plots. In the viewer you can pan, zoom, and navigate plots in the current session. You can also export plots to PDF, SVG, and PNG formats.
Within the Notebook Editor window, double-click any plot to open it in the viewer, or select the plot viewer button on the upper left corner of the plot (visible on hover).
Read more about using Jupyter in Visual Studio Code