imshow and colors

Yes, thanks. Just one more question. Recently (in the last

    > couple of versions I think), there has been a change and
    > now the 'o' line markers (circles) are filled in by
    > default. For example:

    > plot(xp,yp,'ok')

    > gives sold black circles.

Just do

>>> plot(x, y, 'ok', markerfacecolor=None)

This raises the question of what the default behavior of plot should
be. If you say

>>> plot(x, y, 'ro')

should the red apply to the facecolor, edgecolor, or both? Both is
the current behavior, which I think is in accord with the principal of
least surprise. If it should apply to only one, say the edge color,
the facecolor would fall back on lines.markerfacecolor.

I could add some aliases like mfc=markerfacecolor, ec=edgecolor,
lw=linewidth if people often find themselves overriding the defaults
and think these are useful shortcuts. I've already added these to the
rc command, and adding them to the lines/patches classed would be
easy.

JDH

John Hunter wrote:

"Peter" == Peter Groszkowski <pgroszko@...84...> writes:
           
   > Yes, thanks. Just one more question. Recently (in the last
   > couple of versions I think), there has been a change and
   > now the 'o' line markers (circles) are filled in by
   > default. For example:

   > plot(xp,yp,'ok')

   > gives sold black circles.

Just do

>>> plot(x, y, 'ok', markerfacecolor=None)

Aghh.. yes. Thanks.

This raises the question of what the default behavior of plot should
be. If you say

>>> plot(x, y, 'ro')

should the red apply to the facecolor, edgecolor, or both?

I think both is good. It seems like it's really easy to change in any case.

I could add some aliases like mfc=markerfacecolor, ec=edgecolor,
lw=linewidth if people often find themselves overriding the defaults
and think these are useful shortcuts.

Might be a good idea.

On another note, interesting to see how much matplotlib has matured in the last six months. Great job John!

Peter

Hi John:

DayMulitLocator is missing from the following line:

from ticker import YearLocator, MonthLocator, WeekdayLocator, \
     DayLocator, HourLocator, MinuteLocator, DateFormatter

in axes.py

···

--
Peter Groszkowski Gemini Observatory
Tel: +1 808 974-2509 670 N. A'ohoku Place
Fax: +1 808 935-9235 Hilo, Hawai'i 96720, USA