Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread John Coppens
On Wed, 15 Jul 2015 07:19:53 -1000
Eric Firing efir...@hawaii.edu wrote:

 John, if you haven't already done so, please escalate this to a github 
 issue.

Will do...

Cheers,
John

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread Eric Firing
It is not clear to me that 4202 would fix it, and I think 4202 has a 
basic problem of its own.

John, if you haven't already done so, please escalate this to a github 
issue.

Eric

On 2015/07/15 4:58 AM, Thomas Caswell wrote:
 The PR to fix this is still open
 (https://github.com/matplotlib/matplotlib/pull/4202).

 Tom

 On Wed, Jul 15, 2015 at 10:29 AM John Coppens j...@jcoppens.com
 mailto:j...@jcoppens.com wrote:

 Hello again,

 I've posted these two issues in separate mails, as I suspect they're
 actually different problems.

 This error is particular to the default version of MacOSX's matplotlib
 version 1.4.3:

 When doing a simple plot:

 import matplotlib.pyplot as plt

 def test_plot():
  x = range(11)
  y = [x0**2 for x0 in x]

  plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
  plt.legend()
  plt.show()

 def main(args):
  test_plot()
  return 0

 if __name__ == '__main__':
  import sys
  sys.exit(main(sys.argv))

 Much of the data is available on this thread on stackoverflow:

 
 http://stackoverflow.com/questions/31408928/how-can-i-plot-hollowed-symbols-connected-with-dotted-lines-in-one-go/31410105?noredirect=1#comment50794519_31410105

 The gist is that a dotted line ('o:') works correctly
 on my system (Linux Slackware/matplotlib 1.3.1 and 1.4.3), on C.C.Yang's
 Linux Mint, but not on his MacOSX (on which the _circle symbols_ are
 also
 dotted).

 It does work if he defines TkAgg or GtkAgg (even though he does not have
 Gtk installed on his Mac)

 Any suggestions to solve this?

 Is there a problem in the MacOSXAgg backend?

 John

 
 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/



 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib 1.4.3 Agg problem

2015-07-15 Thread John Coppens
Hello all.

I had MatPlotLib 1.3.1 installed, and decided to upgrade to 1.4.3. I compiled 
the
.tar.gz package, which went without a hitch (except for a number of warnings
from gcc). Installation also completed without problems.

But, on running the same simple plot I was working on, no plot was output:

import matplotlib.pyplot as plt

def test_plot():
x = range(11)
y = [x0**2 for x0 in x]

plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
plt.legend()
plt.show()

def main(args):
test_plot()
return 0

if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))

which was somewhat annoying, as I was trying to help out someone on
Stackoverflow. Only after experimenting somewhat, I found that 
setting the Agg to GtkAgg, the plot started working again:

import matplotlib
matplotlib.use('GtkAgg')

Is this normal? I'm not actually using gtk in this project.
TkAgg also works. 

John

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread Benjamin Root
We have been recently fixing a bunch of issues in the macosx backend (which
is default on Macs). Having the circle be dotted sounds exactly like the
sort of problem that would be caused by some of the bugs we are addressing.
I think we have some of the fixes committed to the master branch, so if you
could build and install from git, you can see if the problem is fixed yet
or not.

Ben Root


On Wed, Jul 15, 2015 at 10:29 AM, John Coppens j...@jcoppens.com wrote:

 Hello again,

 I've posted these two issues in separate mails, as I suspect they're
 actually different problems.

 This error is particular to the default version of MacOSX's matplotlib
 version 1.4.3:

 When doing a simple plot:

 import matplotlib.pyplot as plt

 def test_plot():
 x = range(11)
 y = [x0**2 for x0 in x]

 plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
 plt.legend()
 plt.show()

 def main(args):
 test_plot()
 return 0

 if __name__ == '__main__':
 import sys
 sys.exit(main(sys.argv))

 Much of the data is available on this thread on stackoverflow:


 http://stackoverflow.com/questions/31408928/how-can-i-plot-hollowed-symbols-connected-with-dotted-lines-in-one-go/31410105?noredirect=1#comment50794519_31410105

 The gist is that a dotted line ('o:') works correctly
 on my system (Linux Slackware/matplotlib 1.3.1 and 1.4.3), on C.C.Yang's
 Linux Mint, but not on his MacOSX (on which the _circle symbols_ are also
 dotted).

 It does work if he defines TkAgg or GtkAgg (even though he does not have
 Gtk installed on his Mac)

 Any suggestions to solve this?

 Is there a problem in the MacOSXAgg backend?

 John


 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread John Coppens
Hello again,

I've posted these two issues in separate mails, as I suspect they're 
actually different problems.

This error is particular to the default version of MacOSX's matplotlib
version 1.4.3:

When doing a simple plot:

import matplotlib.pyplot as plt

def test_plot():
x = range(11)
y = [x0**2 for x0 in x]

plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
plt.legend()
plt.show()

def main(args):
test_plot()
return 0

if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))

Much of the data is available on this thread on stackoverflow:

http://stackoverflow.com/questions/31408928/how-can-i-plot-hollowed-symbols-connected-with-dotted-lines-in-one-go/31410105?noredirect=1#comment50794519_31410105

The gist is that a dotted line ('o:') works correctly
on my system (Linux Slackware/matplotlib 1.3.1 and 1.4.3), on C.C.Yang's
Linux Mint, but not on his MacOSX (on which the _circle symbols_ are also
dotted).

It does work if he defines TkAgg or GtkAgg (even though he does not have
Gtk installed on his Mac)

Any suggestions to solve this?

Is there a problem in the MacOSXAgg backend?

John

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib 1.4.3 Agg problem

2015-07-15 Thread Benjamin Root
If your backend is set to Agg, then no interactive window will appear upon
call to show(). Agg is intended for headless servers. What might be
happening is that somewhere, you have Agg set as the default backend.

Ben Root

On Wed, Jul 15, 2015 at 10:16 AM, John Coppens j...@jcoppens.com wrote:

 Hello all.

 I had MatPlotLib 1.3.1 installed, and decided to upgrade to 1.4.3. I
 compiled the
 .tar.gz package, which went without a hitch (except for a number of
 warnings
 from gcc). Installation also completed without problems.

 But, on running the same simple plot I was working on, no plot was output:

 import matplotlib.pyplot as plt

 def test_plot():
 x = range(11)
 y = [x0**2 for x0 in x]

 plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
 plt.legend()
 plt.show()

 def main(args):
 test_plot()
 return 0

 if __name__ == '__main__':
 import sys
 sys.exit(main(sys.argv))

 which was somewhat annoying, as I was trying to help out someone on
 Stackoverflow. Only after experimenting somewhat, I found that
 setting the Agg to GtkAgg, the plot started working again:

 import matplotlib
 matplotlib.use('GtkAgg')

 Is this normal? I'm not actually using gtk in this project.
 TkAgg also works.

 John


 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib 1.4.3 Agg problem

2015-07-15 Thread Thomas Caswell
The Agg backend is a non-gui backend, it just saves to file.  The `TkAgg`
and `GtkAgg` are gui backends (which are more of front ends, but I digress)
which show the output of Agg in a gui window (and provide a layer for
handling user interaction).

I suspect that how ever your 1.3.1 was installed the system level
matplotlibrc file was modified to set the default backend to be one of the
GUI backends.

See http://matplotlib.org/users/customizing.html#the-matplotlibrc-file  You
want to set the 'backend' parameter.

Tom

On Wed, Jul 15, 2015 at 10:22 AM John Coppens j...@jcoppens.com wrote:

 Hello all.

 I had MatPlotLib 1.3.1 installed, and decided to upgrade to 1.4.3. I
 compiled the
 .tar.gz package, which went without a hitch (except for a number of
 warnings
 from gcc). Installation also completed without problems.

 But, on running the same simple plot I was working on, no plot was output:

 import matplotlib.pyplot as plt

 def test_plot():
 x = range(11)
 y = [x0**2 for x0 in x]

 plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
 plt.legend()
 plt.show()

 def main(args):
 test_plot()
 return 0

 if __name__ == '__main__':
 import sys
 sys.exit(main(sys.argv))

 which was somewhat annoying, as I was trying to help out someone on
 Stackoverflow. Only after experimenting somewhat, I found that
 setting the Agg to GtkAgg, the plot started working again:

 import matplotlib
 matplotlib.use('GtkAgg')

 Is this normal? I'm not actually using gtk in this project.
 TkAgg also works.

 John


 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread Thomas Caswell
The PR to fix this is still open (
https://github.com/matplotlib/matplotlib/pull/4202).

Tom

On Wed, Jul 15, 2015 at 10:29 AM John Coppens j...@jcoppens.com wrote:

 Hello again,

 I've posted these two issues in separate mails, as I suspect they're
 actually different problems.

 This error is particular to the default version of MacOSX's matplotlib
 version 1.4.3:

 When doing a simple plot:

 import matplotlib.pyplot as plt

 def test_plot():
 x = range(11)
 y = [x0**2 for x0 in x]

 plt.plot(x, y, 'o:', fillstyle='none', label = 1, ms = 10)
 plt.legend()
 plt.show()

 def main(args):
 test_plot()
 return 0

 if __name__ == '__main__':
 import sys
 sys.exit(main(sys.argv))

 Much of the data is available on this thread on stackoverflow:


 http://stackoverflow.com/questions/31408928/how-can-i-plot-hollowed-symbols-connected-with-dotted-lines-in-one-go/31410105?noredirect=1#comment50794519_31410105

 The gist is that a dotted line ('o:') works correctly
 on my system (Linux Slackware/matplotlib 1.3.1 and 1.4.3), on C.C.Yang's
 Linux Mint, but not on his MacOSX (on which the _circle symbols_ are also
 dotted).

 It does work if he defines TkAgg or GtkAgg (even though he does not have
 Gtk installed on his Mac)

 Any suggestions to solve this?

 Is there a problem in the MacOSXAgg backend?

 John


 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users