Donate Share

matplotlib

Tracker: Patches

5 Slider widget color - ID: 1866207
Last Update: Comment added ( jdh2358 )

The attached patch enables users to set the color of Slider widgets.

It simply adds an optional 'facecolor' keyword argument, which defaults to
'b', to the Slider.__init__ constructor, and passes the value to the
self.poly = ax.axvspan function call.

Tested on Windows XP with matplotlib 0.91.2, Python 2.5.1, wxPython 2.8.7.1
unicode.

Regards,

Christoph


Christoph Gohlke ( cjgohlke ) - 2008-01-07 22:29

5

Closed

None

John Hunter

None

None

Public


Comment ( 1 )




Date: 2008-05-28 18:02
Sender: jdh2358Project Admin


Thanks -- committed a more general variant of this. You can pass in any
Rectangle keyword arg to the slider, eg facecolor, edgecolor, alpha...

JDH


Log in to comment.

Attached File ( 1 )

Filename Description Download
widgets.patch Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-05-28 18:02 jdh2358
assigned_to nobody 2008-05-28 18:02 jdh2358
close_date - 2008-05-28 18:02 jdh2358
File Added 261257: widgets.patch 2008-01-07 22:29 cjgohlke