Questions tagged [matplotlib]
matplotlib is a plotting library for the Python programming language
54
questions
0
votes
0
answers
41
views
Bugs with mplstereonet and matplotlib
The problem is with the package MPLSTEREONET installable with pip.
With matplotlib version 3.4 or less the package works well. With matplotlib 3.5 and above someone could get the message of error ...
2
votes
1
answer
2k
views
Matplotlib plt.show(block=False) opens black window
Matplotlib plt.show(block=False) gives me a black window when plotting something that normally would work with plt.show(block=True). With my previous Ubuntu install I could always run plt.show(block=...
1
vote
1
answer
403
views
ImportError: No module named matplotlib.pyplot ubuntu 21,04
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('seaborn-white')
ax1 = plt.axes()
ax2 = plt.axes([0.65, 0.65, 0.2, 0.2])
plt.show()
I have installed matplotlib using 'sudo apt-get ...
0
votes
1
answer
2k
views
Matplotlib complains about not finding Qt platform plugin "wayland"
I have trouble getting Matplotlib to work on Ubuntu 21.04. Whenever I want to plot something I'm getting the following error message:
qt.qpa.plugin: Could not find the Qt platform plugin "wayland&...
1
vote
1
answer
104
views
i've got some issues with the installed Python 3.8.5 , whenever i try to import a package it shows an error which says : No module named '.....'
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<console>", line 1, in <module>
ModuleNotFoundError: No module named 'matplotlib'
5
votes
1
answer
5k
views
"Matplotlib is currently using agg, which is non-GUI backend, so cannot show the figure." error when trying to plot with Matplotlib on Ubuntu 20.04
I'm using Ubuntu 20.04 LTS. I've recently installed Matplotlib for Python 3.9 and when I try to plot a graph it gives me the error:
Matplotlib is currently using agg, which is non-GUI backend, so ...
3
votes
1
answer
5k
views
instaling matplotlib for python 2.7 in Ubuntu 20.04
I have to run some all programs written in python2.7. They use library "matplotlib". In the repository of Ubuntu 20.04 there is no candidate for installing it and matplotlib for python3 is ...
0
votes
1
answer
5k
views
pyplot.show() not working on pycharm on ubuntu [duplicate]
I have installed matplotlib but still when I run the program it shows:
Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
plt.show()
How to resolve this issue?
0
votes
0
answers
2k
views
I can't install certain Python libraries because of "ImportError: cannot import name 'sysconfig' from 'distutils'"
I'm trying to upgrade from Python 3.5 to 3.8.3, and TensorFlow 1.13 to 2.2, so I can be up to date. However, having two versions of Python3 on my computer has caused a whole headache of problems. (I ...
0
votes
0
answers
26
views
Matplotlib not found in Anaconda virtualenv, Ubuntu 20 [duplicate]
I cannot get matplotlib to work under a virtualenv in Ubuntu 20.04.
(myenv) $ pip3 install matplotlib
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (3.1.2)
(myenv) $ ...
0
votes
1
answer
2k
views
ModuleNotFoundError: No module named 'matplotlib'
I cannot draw a plot in a jupyter notebook. It says: "ModuleNotFoundError: No module named 'matplotlib' " even though I have installed the matplotlib.
I have Ubuntu 18.04 as OS.
(By the way, I ...
0
votes
0
answers
1k
views
ModuleNotFoundError: No module named matplotlib
I have python version 2.7.15+ and also matplotlib version 2.1.1. But while running Python program, I'm still getting:
ModuleNotFoundError: No module named matplotlib
I have tried all the pip and ...
0
votes
0
answers
100
views
Matplotlib output messed up in Kubuntu 18
I run the same Python3 code on several computers for plotting data. On one of them, I have got Ubuntu 16.04, the others are Kubuntu 18.04 and 18.10. In Kubuntu, the plot is completely messed up, the ...
1
vote
0
answers
951
views
How to get matplotlib.pyplot to work on ubuntu?
I'm using Ubuntu to run and compile python. When I tried to import matplotlib.pyplot it said it wasn't found. So I installed matplotlib using
pip install matplotlib
it said it installed but now I am ...
0
votes
1
answer
13k
views
graph created by matplotlib.plot.show closed automatically after the python script finished through command line [closed]
I want to plot a graph and keep it even if the script finished. But it failed after I tried many times.
After script finished executing, the graph created by the show() method will be closed ...
0
votes
1
answer
2k
views
matplotlib error : MatplotlibDeprecationWarning
from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version ...
4
votes
2
answers
16k
views
Python matplotlib - ImportError: No module named functools_lru_cache
I have installed matplotlib for Python using pip which was completed without error. Yet I get this error when I try to import it:
import matplotlib
Traceback (most recent call last):
File "<...
9
votes
3
answers
23k
views
What is a good, default backend for matplotlib
I've decided to setup a custom matplotlibrc, and thus I need to pick a backend for matplotlib. What is the best one in terms of not needing to install other additional packages?
I tend to use ...
1
vote
0
answers
226
views
Build matplotlib dependencies for both python2 and python3
I would like to have various virtual environments in my computer, some of them running python 2.7 and others with python3, and some of them must have full matplotlib support, which is achieved with --...
3
votes
2
answers
7k
views
Problem in installing matplotlib ubuntu 16.04
I have to install python package "matplotlib" in Python 2.7; Ubuntu 16.04
After inserting:
pip install matplotlib
I get the following error messagge:
open here error picture
I tried this solution:
...
2
votes
1
answer
49k
views
How to fix install error "Could not find a version that satisfies the requirement pyplot"?
I am trying to install pyplot as follows:
x@y:~$ sudo -H pip3 install pyplot
Collecting pyplot
Could not find a version that satisfies the requirement pyplot (from versions: )
No matching ...
1
vote
1
answer
259
views
installation issue with matplotlib
The following happens whenever I try to install matplotlib
vijay@vijay-Inspiron-1545:~$ python -mpip install matplotlib
Collecting matplotlib
Exception:
Traceback (most recent call last):
File "/...
0
votes
1
answer
2k
views
matplotlib.pyplot is not working!
I'm using Jupyter Notebook, and matplotlib.pyplot is not working. I'm using Python 2.7 in Ubuntu 14.04.
1
vote
1
answer
4k
views
Kernel dead in jupyter notebook, matplotlib seems not to work
I recently updated my anaconda package with $conda update conda and then $conda update anaconda
After that update my matplotlib is not working anymore and every time I try to run Jupyter notebook and ...
2
votes
1
answer
2k
views
17.04: using matplotlib with GTK-based backend?
On a new 17.04 Ubuntu system, with python and python-matplotlib, I wanted to plot using the Matplotlib GTKAgg or GTKCairo backends. This works nicely in 16.04, but is broken in 17.04, as a result of ...
-1
votes
1
answer
436
views
apt-get not recognizing newest version of python-matplotlib
I'm trying to update matplotlib from an old to the newest version 2.0.2.
Through apt-get I am told matplotlib is already the newest version "1.5.1"
Do I have to update the repository or something ...
1
vote
1
answer
2k
views
Deleting .ICEauthority file
I had some problems with matplotlib (Python). Someone had suggested deleting .ICEauthority file. I did it and my problem with Python is solved. Is that going to cause any side-effects on my system?
1
vote
1
answer
1k
views
How can I install a pdf font?
I am trying to save a matplotlib plot as a pdf page as shown in this example. Everything is fine until tex fonts are used. That is, I can display plots that use tex fonts, but not save them as a pdf. ...
0
votes
1
answer
989
views
Unable to run python code because of Cycler dependency of Matplotlib
I have a small python program that calls on matplotlib. It seems that this library is dependent on "Cycler" which is giving me this error:
Traceback (most recent call last):
File "main.py", line 1,...
2
votes
1
answer
14k
views
Plot simple functions like sine of x with IPython
My teacher plotted some functions with Jupyter Notebook or IPython. I have installed Jupyter Notebook and have the home screen, but how can I plot a function?
I have already tried: plot sin(x) but I ...
1
vote
1
answer
711
views
16.04LTS breaks matplotlib in interactive mode
Consider the following python code
import matplotlib.pyplot as plt
import time
plt.ion()
plt.figure()
plt.scatter(1,2)
plt.draw()
while True:
time.sleep(1)
I try this on a fresh install of ...
0
votes
0
answers
1k
views
python3 module import and installation
I'm trying to install matplotlib. This is what I get when I use python3 in terminal. However, in my python file, it still shows that I do not have matplotlib module. :( Why is this?
python3
>>&...
2
votes
0
answers
295
views
Plotting with Octave and Matplotlib Broken on Ubuntu 16.04
I'm having a problem using plot commands using python-matplotlib and Octave ever since I installed Octave.
Prior to installing Octave v4.0.2, I was able to plot with Matplotlib v. 1.5.1 just fine. ...
3
votes
1
answer
9k
views
Unable to install matplotlib using pip in Ubuntu 16.04
In Ubuntu 16.04 I am able to install almost every python package and library using pip except for matplotlib.
I use this command to install matplotlib pip install matplotlib
This gives the error: ...
2
votes
1
answer
5k
views
When trying to import Matplotlib.pyplot, get "UnicodeDecodeError"
When trying to run a Python script starting with
import numpy as np
import matplotlib.pyplot as plt
I'm getting the following error message:
/usr/lib/python2.7/dist-packages/matplotlib/font_manager....
4
votes
1
answer
7k
views
How to ensure matplotlib in a Python 3 virtualenv uses the TkAgg backend?
I am using Ubuntu 16.04 with Python 3. Using APT to install python3-matplotlib and then printing the matplotlib backend gives TKAgg, which is expected because Ubuntu has 16.04 has python3-tk installed....
2
votes
1
answer
2k
views
How do I install matplotlib dependencies?
How can I easily install all the non-Python dependencies I require before I can pip install matplotlib?
2
votes
4
answers
9k
views
Segmentation fault (core dumped) using matplotlib on Ubuntu Mate 16.04
I recently installed on my machine (an old imac) Ubuntu Mate 16.04. When I try to run a python script from terminal I get the error:
Segmentation fault (core dumped)
The same script works perfectly ...
12
votes
4
answers
118k
views
No module named 'numpy'
Actually I am shifting from Windows to Linux. Using pycharm on Windows I have a python 3 script that requires numpy and matplotlib to run, so I installed them on my Linux system using
sudo apt-get ...
3
votes
1
answer
10k
views
How to install Python Matplotlib 1.5.1 on Ubuntu?
I want to install matplotlib 1.5.1 for python 3.4 on Ubuntu 14.04.
But, when I type in the terminal sudo apt-get install python3-matplotlib, I just get matplotlib 1.3.1.
I have tried to use pip to ...
2
votes
1
answer
440
views
Error Getting Dependencies for Matplotlib
I am trying to install the python package matplotlib from source. I cannot install the package from the repository using sudo apt-get install python-matplotlib because I need to be able to install the ...
5
votes
3
answers
8k
views
matplotlib not working in Pycharm 4.5.3
I'm trying to run a simple code in Pycharm Community Edition 4.5.3 to display a graph with some points using matplotlib
import matplotlib.pyplot as plt
plt.plot([5,4,4,4,6,6,7,7,8,8,9,10,10,10,10,11,...
3
votes
0
answers
5k
views
Really installing PyQt4/5 for python 3.4 on trusty
I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
1
vote
2
answers
13k
views
Python 2.7 matplotlib provides error?
import numpy as np
import matplotlib.pyplot as plt
provides the error
Traceback (most recent call last):
File "/home/xx/PycharmProjects/Udemy/Array_Processing.py", line 2, in <module>
...
2
votes
0
answers
509
views
Installing python libs under Lubuntu 14.10 getting Errors
Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is
sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and
pip3 install --...
1
vote
1
answer
3k
views
How to install numpy, scipy, and other packages from source for Python3 in Ubuntu 14.04.2 LTS
I just recently installed Ubuntu 14.04.2 LTS alongside Windows-7 (64-bit). I wanted to install the latest versions of numpy, scipy, matplotlib, and other packages for Python3. I saw the we can use ...
4
votes
1
answer
5k
views
Plotting with Matplotlib in Python 3 pylab: Tkinter and Qt FontManager errors
I'm trying to use pylab (i.e., $ ipython3 --pylab) in Python 3 on Ubuntu 14.04. I'm running into the same error regardless of whether I use the Tkinter or Qt4 backends.
AttributeError: 'FontManager' ...
1
vote
0
answers
747
views
matplotlib xkcd with utf-8 label
In python3 / matplotlib, I'd like a plot with a label:
plt.plot(np.sin(np.linspace(1,10)), label='fête')
plt.legend(loc='upper left')
plt.show()
Works great. Now let's try with xkcd mode:
plt.xkcd()...
3
votes
1
answer
1k
views
Ubuntu 14.04 upgrade causes matplotlib error
Since upgrading to 14.04 any python code I run that uses matplotlib returns an error. Here is what my ipython console returns
In [1]: import matplotlib.pyplot as plt
----------------------------------...
7
votes
1
answer
2k
views
Backend for python3 module matplotlib
I'm trying to use python3 to plot graphs.
The only back-end for matplotlib that seems to work is tkAgg (Tkinter), however this looks like it has been designed in the Stone Age. So I was trying to ...