# Error when using PyPlot for the first time

**URL:** https://discourse.julialang.org/t/error-when-using-pyplot-for-the-first-time/25319
**Category:** New to Julia
**Created:** [June 14, 2019, 7:37pm UTC](https://discourse.julialang.org/t/error-when-using-pyplot-for-the-first-time/25319 "2019-06-14T19:37:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [June 14, 2019, 7:37pm UTC](https://discourse.julialang.org/t/error-when-using-pyplot-for-the-first-time/25319/1 "2019-06-14T19:37:21Z")

</div>

I was trying to get acquainted with julia’s PyPlot library. I tried

```julia
using PyPlot;
imshow(rand(30, 30));

```

but I get the following error message

```julia
error in background error handler:
out of stack space (infinite loop?)
    while executing
"::tcl::Bgerror {out of stack space (infinite loop?)} {-code 1 -level 0 -errorcode NONE -errorinfo {out of stack space (infinite loop?)
    while execu..."
error in background error handler:
out of stack space (infinite loop?)
    while executing
"::tcl::Bgerror {out of stack space (infinite loop?)} {-code 1 -level 0 -errorcode NONE -errorinfo {out of stack space (infinite loop?)
    while execu..."

```

The message also happens to repeat again and again and the execution thread cannot be broken.

Could you tell me what is going wrong ?
