Your currently selected backend, ‘agg’ does not support show().
AGG
backend is for writing to file, not for rendering in a window. See the backend FAQ at the matplotlib web site.
ImportError: No module named _backend_gdk
For the second error, maybe your matplotlib distribution is not compiled with GTK support, or you miss the PyGTK package. Try to install it.
Do you call the show()
method inside a terminal or application that has access to a graphical environment?
Try other GUI backends, in this order:
TkAgg
wxAgg
Qt5Agg
Qt4Agg
Related Posts:
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- mysql_config not found when installing mysqldb python interface
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- Install tkinter for Python
- mysql_config not found when installing mysqldb python interface
- can’t remove python pip
- RuntimeError: Invalid DISPLAY variable
- python-dev installation error: ImportError: No module named apt_pkg
- ImportError: DLL load failed: The specified module could not be found
- How do I deal with a filename that starts with the hyphen (-) character?
- ImportError: DLL load failed: The specified module could not be found
- Chmod 777 to a folder and all contents [duplicate]
- Bash: No such file or directory?
- What is the difference between importing matplotlib and matplotlib.pyplot?
- Purpose of “%matplotlib inline”
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- Purpose of “%matplotlib inline”
- TypeError: only size-1 arrays can be converted to Python scalars (matplotlib)
- Showing an image with pylab.imshow()
- python – how to get the data from an plt.imshow()?
- Confused about stdin, stdout and stderr?
- What’s a .sh file?
- ImportError: No module named matplotlib.pyplot
- Amazon Linux: apt-get: command not found
- How to set the environmental variable LD_LIBRARY_PATH in linux
- ImportError: No module named matplotlib.pyplot
- What is the necessity of plt.figure() in matplotlib?
- What’s a .sh file?
- How do you change the size of figures drawn with Matplotlib?
- How can I symlink a file in Linux? [closed]
- How to fix ‘sudo: no tty present and no askpass program specified’ error?
- Kill detached screen session [closed]
- RuntimeWarning: invalid value encountered in divide
- How do I grep recursively?
- How do I grep recursively?
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- Why do you need to put #!/bin/bash at the beginning of a script file?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ImportError: No module named matplotlib.pyplot
- How to get the url of the current svn repo?
- What does pss mean in /proc/pid/smaps
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- How do I find all files containing specific text on Linux?
- matplotlib savefig() plots different from show()
- How to unmount a busy device
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- How to unmount a busy device
- How do I draw a grid onto a plot in Python?
- Plotting a 2D heatmap with Matplotlib
- Save plot to image file instead of displaying it using Matplotlib
- How to plot ROC curve in Python
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- performing HTTP requests with cURL (using PROXY)
- No handles with labels found to put in legend
- How to plot a histogram using Matplotlib in Python with a list of data?
- Plot logarithmic axes with matplotlib in python
- Where can I find php.ini?
- In Matplotlib, what does the argument mean in fig.add_subplot(111)?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- How can I plot a confusion matrix? [duplicate]
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- matplotlib error – no module named tkinter
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- No space left on device
- How do I grep recursively?
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How to perform grep operation on all files in a directory?
- pandas DataFrame “no numeric data to plot” error
- How to upgrade pip3?
- Amazon Linux: apt-get: command not found
- How to change the font size on a matplotlib plot
- Permission denied error by installing matplotlib
- How to install grub after installing Windows 10
- Updating matplotlib in virtualenv with pip
- Linux: ‘Username’ is not in the sudoers file. This incident will be reported
- how to find libstdc++.so.6: that contain GLIBCXX_3.4.19 for RHEL 6?
- How to extract C source code from .so file?
- Pass a password to ssh in pure bash
- How to substitute shell variables in complex text files
- How to upgrade pip3?
- How do you change the size of figures drawn with Matplotlib?
- How do I set the figure title and axes labels font size in Matplotlib?
- -bash: syntax error near unexpected token `newline’ for display command
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- How to customize a scatter matrix to see all titles?
- Is there a list of line styles in matplotlib?
- Python virtualenv questions
- SSH using python script
- Curl command for https ( SSL )
- How to activate virtualenv in Linux?
- How can I exclude directories from grep -R?
- Matplotlib automatic legend outside plot
- How to exclude a directory in find . command
- Add Legend to Seaborn point plot
- “sed” command in bash