mplot3d: bar3d + colormap somehow?

View: New views
2 Messages — Rating Filter:   Alert me  

mplot3d: bar3d + colormap somehow?

by qubax :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings.

I would like to make a mplot3d.bar3d plot where the colour indicates
the value of the element. Like: negative values blue, positive red,
zero green. From what i see i can only give all bars the same
color ... Is there a way around it?

I know that this is currently done in mayavi, but mayavi also
seems to be tons slower.

thanks for any help

with best regards,
q

--
The king who needs to remind his people of his rank, is no king.

To gain that which is worth having, it may be necessary to lose everything else.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: mplot3d: bar3d + colormap somehow?

by Gael Varoquaux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 04, 2009 at 08:56:49PM +0100, qubax@... wrote:
> I would like to make a mplot3d.bar3d plot where the colour indicates
> the value of the element. Like: negative values blue, positive red,
> zero green. From what i see i can only give all bars the same
> color ... Is there a way around it?

Hi,

I am afraid I do not know how to help you with the issue, as I don't know
mplot3d well-enough.

> I know that this is currently done in mayavi, but mayavi also
> seems to be tons slower.

That's interesting. For my use, Mayavi is most of the time faster. Do you
have a light-weight example that would reproduce this slugginess, to see
if we can improve things?

Cheers,

Gaƫl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users