All Questions
33 questions
5
votes
1
answer
996
views
Matplotlib fails and hangs when plotting in interactive mode
I am getting a problem with my matplotlib library on MacOS High Sierra.
matplotlib-2.2.2
python 2.7.14
Here is my super simple code.
plt.ion()
plt.plot(x,y)
plt.show()
The python symbol appears on ...
0
votes
0
answers
16
views
Tkinter GUI reopens when using pyplot later in code
I created a Tkinter GUI and as a standalone code it closes successfully, but when I try to open an unrelated figure using matplotlib.pylplot, the GUI reappears. An shortened version of the code used ...
2
votes
4
answers
746
views
Matplotlib not working with Python 2.7 and Django on OSX
I am trying to use matplotlib and mpld3 to produce some html plots on my Django report app.
Basically I have a controller for the plot that is the following:
from django.shortcuts import render
...
0
votes
2
answers
114
views
numpy imported successfully on command line but not on IDLE
I can import numpy successfully using my python version 2.7.11 on the command line :
but not in IDLE where I get the following error :
Traceback (most recent call last):
File "/Users/macbookpro/...
1
vote
0
answers
59
views
Procedural PyQt4 generates extra windows after pyplot.show()
I have encountered a strange behaviour on Mac OSX 10.12 when using PyQt4 and matplotlib in a procedural python function.
The function pops up a dialogue which is used to select a directory. The ...
0
votes
0
answers
949
views
Can't use mplot3d, getting error: AttributeError: 'module' object has no attribute '_string_to_bool'
I'm trying to use mplot3d to plot something 3D. I have Mac OSX. However I get this error:
ax = fig.gca(projection = '3d')
File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", ...
1
vote
0
answers
399
views
Python quitting unexpectedly
I'm running Python 2.7, using ipython 5.1.0 on a Mac OSX 10.9.5
I'm having a problem which occurs most often when I use matplotlib.pyplot, but has happened when I'm using processes from pandas.
Two ...
0
votes
0
answers
245
views
os 10.11.6 pip install permission error
I am a CS beginner taking udemy python course and trying to install pip in order to use matplotlib, pandas and so on in pylab.
I use IDLE 3.4.2 and latest version Pycharm
Tried
1. "pip installed ...
1
vote
1
answer
215
views
PyCharm: How do I call frameworkpython so that it will use the framework python instead of the virtualenv python?
I'm using matplotlib library with my virtualenv. If you use it this way, matplotlib will not plot the graph because it is not the python framework, but the python as per the virtualenv. This problem ...
0
votes
1
answer
336
views
Installing Matplotlib [duplicate]
I wanted to install Matplotlib in Mac (10.7.5 Lion) where python (2.7.1), pip (8.1.2), numpy (1.11.0), astropy(1.2) are already installed and are working as expected. First I tried with the command
...
51
votes
6
answers
34k
views
matplotlib RuntimeError: Python is not installed as a framework
This question has been asked before, in here, also here. However, the solution didn't fix the problem for my case.
The original error is, when I try to import matplotlib.pyplot, I got:
Traceback (...
2
votes
2
answers
2k
views
Generating custom legend (and only a legend) in matplotlib Python2
I'm trying to make a custom legend using matplotlib. The example in the matplotlib documentation doesn't work on my set up. Neither does this follow.
from matplotlib import pyplot as plt
import ...
4
votes
2
answers
1k
views
While importing pyplot from matplotlib it hangs
I am trying to import pyplot but my python code will not run and gets stuck at the following spot:
from matplotlib import pyplot as plt
Traceback (most recent call last):
File "<stdin>", ...
2
votes
0
answers
407
views
How to uninstall matplotlib from OS X 10.10.3
After installing matplotlib via pip I am now unable to import matplotlib from the OS X Python and I would like to uninstall it and start again. I think I have multiple copies of matplotlib and this ...
0
votes
0
answers
508
views
How to install pylab/matplotlib in OSx?
I have following error while importing pylab. I already installed matplotlib version - 1.4.1 and OS - Yosemite 10.10.2
>>> import pylab
Traceback (most recent call last):
File "<stdin&...