That makes sense. The agg backend is a non graphical backend intended for
saving image output. I don't know why this is the default one on your
system.
if you start your python session with:
```
import matplotlib
matplotlib.use('TkAgg')
...
```
You will select the TkAgg backend which is interacti
I get:
>>> plt.show()
>>> import matplotlib
>>> matplotlib.get_backend()
'agg'
>>>
On Fri, Nov 27, 2015 at 12:40 PM, Jens Nielsen
wrote:
> Can you try to check which backend you are using
> Do something like
> >>> import matplotlib
> >>> matplotlib.get_backend()
>
> after your plot. It is
Are you logged in on another machine? If so, you might be connected via the
'ssh' command and not 'ssh -X'.
Dominik
2015-11-27 12:58 GMT+01:00 Paul Harrison :
> Apologies, the parentheses must have got missed off when I copied and
> pasted the output from my terminal.
>
> Same issue though, I do
Can you try to check which backend you are using
Do something like
>>> import matplotlib
>>> matplotlib.get_backend()
after your plot. It is possible that your machine is set to use a non
graphical backend
best
Jens
On Fri, 27 Nov 2015 at 12:29 Paul Harrison
wrote:
>
> Here's some output from a
Here's some output from an ssh -Y to another machine - I also get the same
result working on the console (no plots appearing).
Python 2.6.9 (unknown, Apr 7 2015, 08:28:12)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type "help", "copyright", "credits" or "license" for more informatio
Sorry but the parentheses have not gone missing in your copy paste. The
line below will only be printed if you don't have any parentheses after the
function. Can you try again and show the output of actually calling
plt.show()?
Best
Jens
On Fri, 27 Nov 2015 at 11:58 Paul Harrison
wrote:
> Apolo
Apologies, the parentheses must have got missed off when I copied and
pasted the output from my terminal.
Same issue though, I don't get any plots come up. This always used to work,
and works for my colleagues!
Paul
On Fri, Nov 27, 2015 at 11:35 AM, Paul Harrison wrote:
>
> Hi guys,
>
> If I d
You're missing a pair of parentheses. Without it, you're just referring to
the function itself.
plt.show()
On Nov 27, 2015 11:36 AM, "Paul Harrison"
wrote:
>
> Hi guys,
>
> If I do the following, no plot shows:
>
> ply5@xroa-dt-20:~> python
>
> Python 2.6.9 (unknown, Apr 7 2015, 08:28:12)
>
> [
plt.show is a function. You are not calling it just displaying it. Try
doing plt.show()
BTW please use the new mailing list at matplotlib-us...@python.org
best
Jens
On Fri, 27 Nov 2015 at 11:36 Paul Harrison
wrote:
>
> Hi guys,
>
> If I do the following, no plot shows:
>
> ply5@xroa-dt-20:~> p
Hi guys,
If I do the following, no plot shows:
ply5@xroa-dt-20:~> python
Python 2.6.9 (unknown, Apr 7 2015, 08:28:12)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab as plt
>>> plt.figure()
>>>
10 matches
Mail list logo