# Subplot not working in the 1.0 version

**URL:** https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123
**Category:** New to Julia
**Created:** [May 11, 2019, 9:31pm UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123 "2019-05-11T21:31:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![liuyoufang](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@liuyoufang](https://discourse.julialang.org/u/liuyoufang)
#### Post date: [May 11, 2019, 9:31pm UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123/1 "2019-05-11T21:31:29Z")

</div>

Hi All,

I just installed the Julia 1.1 version. However I am not able to display some plot. Here is the sequence that I did::

using PyPlot  
subplot(133)

Then it showed me a long list of error message::

2019-05-11 15:10:35.243 julia[1506:86027] -[NSApplication \_setup:]: unrecognized selector sent to instance 0x7f98d8e94c60

2019-05-11 15:10:35.244 julia[1506:86027] \*\*\* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSApplication \_setup:]: unrecognized selector sent to instance 0x7f98d8e94c60’

\*\*\* First throw call stack:

(

)

libc++abi.dylib: terminating with uncaught exception of type NSException

signal (6): Abort trap: 6

in expression starting at no file:0

\_\_pthread\_kill at /usr/lib/system/libsystem\_kernel.dylib (unknown line)

Allocations: 12436971 (Pool: 12435160; Big: 1811); GC: 27

[Process completed]

I am not exactly sure what the problem is. Anyone can help on this??

Cheers,  
Youfang

---

<div class="post-metadata">

### Author: ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)
#### Post date: [May 13, 2019, 6:34am UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123/2 "2019-05-13T06:34:42Z")

</div>

Your code worked for me. Does it work in directly in Python on your computer?

```python
>>> import matplotlib.pyplot as plt
>>> plt.subplots(1,3)
>>> plt.show()

```

It’s possible Matplotlib isn’t properly installed on your system. I have had problems with it in the past although I haven’t done a fresh Linux install in a very long time. If it’s not properly installed you can easily install it in whichever version of python you’re using by following the instructions on the [Matplotlib website](https://matplotlib.org/users/installing.html).

Btw, it’s a bit easier to read if you put code and REPL output in a code block as I did above.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [May 13, 2019, 6:36am UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123/3 "2019-05-13T06:36:57Z")

</div>

See here for an explanation and possible solution:

> [@PyPlot install on OSX](https://discourse.julialang.org/t/pyplot-install-on-osx/20074/10):
>
> I’m not sure this is what people need, but this is the message I get from the REPL 2019-05-08 20:37:57.760 julia[48530:3754080] -[NSApplication \_setup:]: unrecognized selector sent to instance 0x7fa3d8dc4570 2019-05-08 20:37:57.760 julia[48530:3754080] \*\*\* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSApplication \_setup:]: unrecognized selector sent to instance 0x7fa3d8dc4570’ \*\*\* First throw call stack: ( ) libc++abi.dylib: terminating with uncaught …

---

<div class="post-metadata">

### Author: ![liuyoufang](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@liuyoufang](https://discourse.julialang.org/u/liuyoufang)
#### Post date: [May 13, 2019, 2:02pm UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123/4 "2019-05-13T14:02:04Z")

</div>

I think you are pointing me to the right track. I got everything works temporally and would need to confirm with StevenJ. Thanks.

---

<div class="post-metadata">

### Author: ![liuyoufang](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@liuyoufang](https://discourse.julialang.org/u/liuyoufang)
#### Post date: [May 13, 2019, 2:02pm UTC](https://discourse.julialang.org/t/subplot-not-working-in-the-1-0-version/24123/5 "2019-05-13T14:02:10Z")

</div>

Thanks. I think It is more related to setting the correct backend for plotting. I think I got it temporally fixed. But thanks for suggestions
