-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]:how to Color 3-D Bars by Height like matlab bar3 function? #23265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You should be able to pass in a list of colors as with the 2d case, so roughly If that doesn't work, please post on discourse.matplotlib.org with more details about what you're doing. That being said, I'm conflicted on natively supporting cmap for bar since it's unclear which value folks would want to colormap - how to decide if it's height, position, or a third value seperate from either . Though maybe it should be implemented like scatter where it's applied to data that's passed into the color keyword? |
@story645 thks for reply this thread.
I'm working on a project, like a car, it's has attributes as [speed, press,statistics_value] , the data value will be [20, 3000, 23.6]...... i want to draw a 3d bar to figure the datas. if statistics_value <10 ,the color:'r', if statistics >50, the color:'dark red'. this is my purpose. I will see the example code, but it's so long.... |
Problem
https://ww2.mathworks.cn/help/matlab/creating_plots/color-3-d-bars-by-height-1.html
how can i draw 3d bars gradient in matplotlib? the bar3d(color, cmap) is not working.
pls help.
Proposed solution
No response
The text was updated successfully, but these errors were encountered: