Matplotlib Tutorial 31 - 3d bar charts

preview_player
Показать описание
In this Matplotlib tutorial, we cover the 3D bar chart. The 3D bar chart is quite unique, as it allows us to plot more than 3 dimensions. No, you cannot plot past the 3rd dimension, but you can plot more than 3 dimensions.

With bars, you have the starting point of the bar, the height of the bar, and the width of the bar. With a 3D bar, you also get another choice, which is depth of the bar. Most of the time, a bar chart starts with the bar flat on an axis, but you can add another dimension by releasing this constraint as well.

Рекомендации по теме
Комментарии
Автор

Hi, nice work with this excellent tutorial.

You could also plot more dimension with a scatter plot by changing the marker size according to some feature.

For example:
s = [2**n for n in range(len(x))]
plt.scatter(x, y, s=s)

tillinvite
Автор

I understand plotting for few point locations at x-y intersection. but what if i have a grid of 500 meter cells and only need to plot few point locations, say 10 points falling within 10 particular cells?

tunagginakhan
Автор

Hey, can you tell me how I can plot a matrix as a 3d plot like these ones? So for that, the x and y axis are the dimensions of the matrix and the z axis is the value of the corresponding element in the matrix. In this 3d plot, every possible place then has a bar in it.

Henjurama
Автор

Can you please do a video on 3d stacked bar chart?

eking
Автор

You are really so cool. That's called as passion,

prasaddalavi