---
title: "Fixing Annoying Issue With Matplotlib Pyplot In macOS"
canonical: "/2017/08/14/fixing-annoying-issue-with-matplotlib-pyplot-in-macos/"
date: "2017-08-14"
author: "Alok Singh"
tags: []
---


Running `plt.show()` causes all sorts of issues on macOS. To fix them,
switch your `matplotlib` backend to something besides `MacOSX`. I used
`Qt5Agg`.

Put this line into `~/.matplotlib/matplotlibrc`

    backend: Qt5Agg
