[Matplotlib-users] markeredgecolor (mec) in the plot function not working?

2012-04-10 Thread wiswit

Dear all,

I use matplotlib 1.1.0.

import matplotlib.pyplot as plt
plt.plot(np.arange(10),'ro',mec='none')

when I use plt.show(),

there is only blank frame with axis not no points.

but plt.plot(np.arange(10),'ro') will give good plot with read filled
circles and black edges.

plt.scatter(np.arange(10),np.arange(10),c='r',marker='o',edgecolor='none')
is working fine.

but I really think plt.plot is a very good and easy function if you don't
make complex scatter points. and the circles look much nicer than that
produced by plt.scatter (thought I don't know why
as they use the same symble)

does anyone else have found the same ?

thanks to all,

Chao
-- 
View this message in context: 
http://old.nabble.com/markeredgecolor-%28mec%29-in-the-plot-function-not-working--tp33662659p33662659.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] numpoints in legend() function for scatter plot is not working in matplotlib 1.1.0?

2012-04-10 Thread Chao YUE
Dear all,

I found that the numpoints in legend function for scatter plot is not
working?

import matplotlib as mat
import matplotlib.pyplot as plt
In [59]: mat.__version__
Out[59]: '1.1.0'

#ordinary plot working
fig=plt.figure()
ax=fig.add_subplot(111)
ax.plot(np.arange(10),'ro',label='tst')
ax.legend(numpoints=1)
plt.show()

#but not scatter plot
fig=plt.figure()
ax=fig.add_subplot(111)
ax.scatter(np.arange(10),np.arange(10),marker='o',label='tst')
ax.legend(numpoints=1)
plt.show()

cheers,

chao

-- 
***
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] numpoints in legend() function for scatter plot is not working in matplotlib 1.1.0?

2012-04-10 Thread wiswit

Dear all,

I found that the numpoints in legend function for scatter plot is not
working?

import matplotlib as mat
import matplotlib.pyplot as plt
In [59]: mat.__version__
Out[59]: '1.1.0'

#ordinary plot working
fig=plt.figure()
ax=fig.add_subplot(111)
ax.plot(np.arange(10),'ro',label='tst')
ax.legend(numpoints=1)
plt.show()

#but not scatter plot
fig=plt.figure()
ax=fig.add_subplot(111)
ax.scatter(np.arange(10),np.arange(10),marker='o',label='tst')
ax.legend(numpoints=1)
plt.show()

cheers,

chao

-- 
View this message in context: 
http://old.nabble.com/numpoints-in-legend%28%29-function-for-scatter-plot-is-not-working-in-matplotlib-1.1.0--tp33662785p33662785.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How do I set grid spacing?

2012-04-10 Thread Paul Hobson
Ben
Does ax.set_xlim([0,50]) do what you want it to do?

-paul

On Tue, Apr 3, 2012 at 5:57 PM, Ben Harrison
ben.harri...@liquidmesh.com wrote:
 I create my figure in my (non-interactive) script like so:

 import matplotlib.pyplot as plt
 fig = plt.figure()
 ax = fig.add_subplot(111)
 ax.plot(...)

 Then I want to set the spacing of y grid to 50 units (axis units). Do I
 need a method of the matplotlib.axis.Axis, or matplotlib.axes.Axes (or
 are these the same??), or something else?

 Ben.


 --
 Better than sec? Nothing is better than sec when it comes to
 monitoring Big Data applications. Try Boundary one-second
 resolution app monitoring today. Free.
 http://p.sf.net/sfu/Boundary-dev2dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Focus in OSX

2012-04-10 Thread Chris Laumann
Hi all-

I've been running into this issue for the last few months and at first thought 
it was Enthought specific but now have confirmed it on a clean (virtualenv) 
install of Fonnesbeck's superpack using built in Apple python and a dev 
matplotlib on Lion.

With the OSX backend, figures clearly have focus issues:

1. Keyboard input always goes to the terminal. Shortcuts don't work in the 
standard plot windows and my custom widgets no longer catch key_press_events  
(I'm not sure when this functionality broke exactly as I haven't used those 
widgets much recently but it worked when I developed 'em a year or two ago.)

2. There's no icon in the cmd-tab task switcher corresponding to the figure 
windows. Swapping to the terminal running ipython (or the qtconsole for ipython 
qtconsole) does not raise the windows.

3. Using mission control, the figures appear grouped as if they belong to an 
application of their own. However, when you click on them to swap to them and 
bring them forward from behind other windows, they raise and then immediately 
disappear again. I think that mission control is raising the specific window 
you select from the collection of figures, but then OSX is somehow immediately 
re-raising the previously selected app, which hides the figures again.

Just to check its not IPython's fault, I also checked running a bare python, 
import all from pylab and showed a (blocking) figure -- exact same behavior.

Is this a known bug? It's quite annoying not to be able to switch focus to a 
plot window.

Best, Chris
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How do I set grid spacing?

2012-04-10 Thread Ben Harrison
On 11/04/12 07:34, Paul Hobson wrote:
 Ben
 Does ax.set_xlim([0,50]) do what you want it to do?

 -paul

hi paul,

i finally worked it out, and should have replied to myself:

ax.set_xticks(np.arange(0,100,20))

for me it seemed to work.

ben.


--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Focus in OSX

2012-04-10 Thread Elliot Saba
I can confirm all three of these issues. Having never used matplotlib
outside of OSX Lion, I thought this was standard for MPL, I'm glad to hear
it's not, but I agree that these are very important issues to be addressed.
-E

On Tue, Apr 10, 2012 at 7:12 PM, Chris Laumann claum...@physics.harvard.edu
 wrote:

 Hi all-

 I've been running into this issue for the last few months and at first
 thought it was Enthought specific but now have confirmed it on a clean
 (virtualenv) install of Fonnesbeck's superpack using built in Apple python
 and a dev matplotlib on Lion.

 With the OSX backend, figures clearly have focus issues:

 1. Keyboard input always goes to the terminal. Shortcuts don't work in the
 standard plot windows and my custom widgets no longer catch
 key_press_events  (I'm not sure when this functionality broke exactly as I
 haven't used those widgets much recently but it worked when I developed 'em
 a year or two ago.)

 2. There's no icon in the cmd-tab task switcher corresponding to the
 figure windows. Swapping to the terminal running ipython (or the qtconsole
 for ipython qtconsole) does not raise the windows.

 3. Using mission control, the figures appear grouped as if they belong to
 an application of their own. However, when you click on them to swap to
 them and bring them forward from behind other windows, they raise and then
 immediately disappear again. I think that mission control is raising the
 specific window you select from the collection of figures, but then OSX is
 somehow immediately re-raising the previously selected app, which hides the
 figures again.

 Just to check its not IPython's fault, I also checked running a bare
 python, import all from pylab and showed a (blocking) figure -- exact same
 behavior.

 Is this a known bug? It's quite annoying not to be able to switch focus to
 a plot window.

 Best, Chris

 --
 Better than sec? Nothing is better than sec when it comes to
 monitoring Big Data applications. Try Boundary one-second
 resolution app monitoring today. Free.
 http://p.sf.net/sfu/Boundary-dev2dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users