# Why Pyplot in VScode shows nothing?

**URL:** <https://discourse.julialang.org/t/why-pyplot-in-vscode-shows-nothing/75043>\
**Category:** General Usage\
**Tags:** pyplot, vscode\
**Created:** [January 22, 2022, 6:53pm UTC](https://discourse.julialang.org/t/why-pyplot-in-vscode-shows-nothing/75043 "2022-01-22T18:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Optimization](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/optimization/32/32462_2.png) [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Post date:** [January 22, 2022, 6:53pm UTC](https://discourse.julialang.org/t/why-pyplot-in-vscode-shows-nothing/75043/1 "2022-01-22T18:53:38Z")

</div>

Hi,

I’m trying t run the following code:

```julia
using PyPlot

# Preparing a figure object
fig = figure()

# Data
x = range(0, stop=2*pi, length=1000)
y = sin.(3*x)

# Plotting with linewidth and linestyle specified
plot(x, y, color="blue", linewidth=2.0, linestyle="--")

# Labeling the axes
xlabel(L"value of $x$")
ylabel(L"\sin(3x)")

# Title
title("Test plotting")
display(gcf())

```

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b50b7c50de7801e6f99af133ad2d1be0a2c557d.png)

I have both plot pane and pop up window, but no figure is displayed in VS code. Why it shows nothing?
