gimmicks/eye candy: Is for example fading possible?

Dear Matplotlib folks,

is it possible in Matplotlib to add eye candy or gimmicks to the plots
like fading? For example if I want to just show a subpart(?) of a plot
this would like “cool”. (I am pretty sure that opinions differ if such
things are useful or not, but please leave this out of the discussion.)

It looks like PGF/TikZ supports such things (manual [1], page 206) and
therefore I am wondering if Matplotlib can do this too?

Thanks,

Paul

[1] http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf

matplotlib doesn’t currently support gradients. Patches welcome!
:slight_smile: It’s probably a lot of work to get it working across all
backends, but following the pattern of how hatches are handled now
would probably be a good guide.

Mike
···

http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdfhttp://p.sf.net/sfu/ephox-dev2dev


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

There is however, the gradient hack, eg

http://matplotlib.sourceforge.net/examples/pylab_examples/gradient_bar.html

JDH

···

On Wed, Jun 22, 2011 at 8:30 AM, Michael Droettboom <mdroe@...86...> wrote:

matplotlib doesn't currently support gradients. Patches welcome! :slight_smile: It's
probably a lot of work to get it working across all backends, but following
the pattern of how hatches are handled now would probably be a good guide.

There are also some neat tricks you can do with Agg filters. Here is an example:

http://matplotlib.sourceforge.net/examples/pylab_examples/demo_agg_filter.html

Ben Root

···

On Wed, Jun 22, 2011 at 9:15 AM, John Hunter <jdh2358@…83…287…> wrote:

On Wed, Jun 22, 2011 at 8:30 AM, Michael Droettboom <mdroe@…86…> wrote:

matplotlib doesn’t currently support gradients. Patches welcome! :slight_smile: It’s

probably a lot of work to get it working across all backends, but following

the pattern of how hatches are handled now would probably be a good guide.

There is however, the gradient hack, eg

http://matplotlib.sourceforge.net/examples/pylab_examples/gradient_bar.html

JDH