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
- How do I deal with a filename that starts with the hyphen (-) character?
- Bash: No such file or directory?
- What’s a .sh file?
- How to get the url of the current svn repo?
- How to unmount a busy device
- How to unmount a busy device
- Save plot to image file instead of displaying it using Matplotlib
- performing HTTP requests with cURL (using PROXY)
- No space left on device
- Pass a password to ssh in pure bash
- Matplotlib automatic legend outside plot
- How can I exclude directories from grep -R?
- How can one display an image using cv2 in Python
- Changing the “tick frequency” on x or y axis in matplotlib?
- gcc: error: unrecognized command line option
- matplotlib error – no module named tkinter
- Plot pie chart and table of pandas dataframe
- ModuleNotFoundError: No module named ‘matplotlib’
- Pseudo-terminal will not be allocated because stdin is not a terminal
- How to add title to subplots in Matplotlib
- How to change a ‘LinearSegmentedColormap’ to a different distribution of color?
- Directory Inode vs Regular File Inode
- Create own colormap using matplotlib and plot color scale
- How to cat <
> a file containing code? - Diff command along with Grep gives “Binary file (standard input) matches”
- How can I set the aspect ratio in matplotlib?
- How would I get a cron job to run every 30 minutes?
- How to automatically redirect HTTP to HTTPS on Apache servers?
- python SyntaxError: invalid syntax %matplotlib inline
- How to make a histogram from a list of data
- Trying to use bash on Windows and got no installed distributions message
- Linear regression with matplotlib / numpy
- tar: Cowardly refusing to create an empty archive
- How can I delete a user in linux when the system says its currently used in a process
- Command to change the default home directory of a user
- Read and write to binary files in C?
- When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error?
- IndexError: index 2 is out of bounds for axis 0 with size 2
- Can’t remove a directory in Unix
- How to recursively download a folder via FTP on Linux
- C fopen vs open
- Pandas dataframe groupby plot
- Why does “docker attach” hang?
- How do I tell Matplotlib to create a second (new) plot, then later plot on the old one?
- Retrieve last 100 lines logs
- What are various options / arguments for “./configure” in Linux
- How to include file in a bash shell script
- Does Mac OS X use Linux?
- CronJob not running
- Delete .DS_STORE files in current folder and all subfolders from command line on Mac
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Can’t upload media to my Raspberry Pi WordPress server
- My WordPress is giving me an 403 error when saving post/draft with specific words
- How to run a server on port 80 as a normal user on Linux?
- Copying a large directory tree locally? cp or rsync?
- Check if port is open or closed on a Linux server?
- Moving an already-running process to Screen
- When does `cron.daily` run?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- How to run a command multiple times, using bash shell?
- LVM dangers and caveats
- How to reconnect to a disconnected ssh session
- Should I quit using Ifconfig?
- How to know from which yum repository a package has been installed?
- SSL Certificate Location on UNIX/Linux
- What is “-bash: !”: event not found”
- tar – Remove leading directory components on extraction
- Keeping a linux process running after I logout
- Force dig to resolve without using cache
- How to list Apache enabled modules?
- How to forcibly close a socket in TIME_WAIT?
- How to check if an RSA public / private key pair match
- Colors in bash after piping through less?
- How can I monitor hard disk load on Linux?
- Why does sudo command take long to execute?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- How to display certain lines from a text file in Linux?
- What’s the reverse DNS command line utility?
- Can you have more than one ~/.ssh/config file?
- How to add a security group to a running EC2 Instance?
- How bad is it really to install Linux on one big partition?
- How do I extract login history?
- How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?
- SSH from A through B to C, using private key on B [closed]
- Is it possible to reboot a Linux OS without rebooting the hardware?
- Does the “bs” option in “dd” really improve the speed?
- What solutions exist to allow the use of revision control for server configuration files? [closed]
- Is there a way to do a remote “ls” much like “scp” does a remote copy?
- Dump a linux process’s memory to file
- What is the difference between /sbin/nologin and /bin/false?