For questions about plotting 3d bar plots
Questions tagged [bar3d]
26 questions
1
vote
0 answers
How to plot 3D bar plot on log scale
My data needs to be plotted on a log scale in order to be able to see some of my really small values, however, I can't seem to find any way to do it on a 3D bar plot.
Supposedly in a 2D bar plot you can adjust the scales by simply including…

Julian Avila
- 105
- 10
1
vote
1 answer
How to create a 3d-bar chart with variable alpha
I'm using matplotlib bar3d with RdBu colormap and wanted to have variable transparency between bars (so smaller bars can be more transparent than taller bars).
Here is the code for making the 3d bar plot. The data is stored in a 4x4 matrix 'rho'. At…

Robert Chapman
- 63
- 2
- 5
1
vote
0 answers
3D bar graph increase square area of Bar
I have the following code drawing from a distribution and then plots the 3d histogram corresponding to frequency in the bin.
# Given a data array of x and y such that they correspond
# to a number of points, this draws a 3d Bar Graph corresponding
#…

alvarezcl
- 579
- 6
- 22
0
votes
1 answer
How to visualize small values in 3D bar chart
Can any one help me to find solutions for visualizing small values in the following 3D bar chart.
import matplotlib.pyplot as plt
import numpy as np
np.random.seed(10)
#data
time = [[148.64793017553907, 47.00162830693381, 1.3599472795213974,…

HaYou
- 1
- 2
0
votes
1 answer
Making bi-sected/bi-colored 3d barcharts
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# create some sample data
x = np.array([1, 2, 3])
y = np.array([4, 5, 6])
z1 = np.array([1, 2, 3])
z2 = np.array([4, 5, 6])
z3 = np.array([7, 8, 9])
color1 =…
0
votes
1 answer
3d histogram with matplotlib using DataFrames
I have the following DataFrame:
j k z
16 36 3.34541e-07
19 40 4.4038e-07
21 52 1.24715e-06
24 41 9.13244e-07
25 37 6.33979e-07
25 45 5.89413e-07
26 31 7.83958e-07
26 36 6.24651e-07
26 42 5.44847e-07
26 47 4.77851e-07
27 30 …

Alberto Sciuto
- 3
- 1
0
votes
0 answers
3D barplot with scaled gradient colormap corresponding to a 4th dimension (range of values)
I am trying to create a 3D barplot using matplotlib in python, and apply a colormap which is tied some data (4th dimension) which is not explicitly plotted. I think what makes this even more complicated is that I want this 4th dimension to be a…

TaoJones
- 1
- 1
0
votes
1 answer
bar plot in 3d following a given line
I want to draw a bar plot in 3d. I know how to do that using the following code:
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure(figsize=(10,10))
ax = fig.add_subplot(111,…

sam
- 103
- 4
0
votes
1 answer
Matplotlib hide bar in bar3d if height is zero
I have seen matplotlib invisible bar if height is zero - however, that is for the 2D case of bar plot, so I couldn't quite apply it to my problem.
I have also seen Make transparent color bar with height 0 in matplotlib which should be usable for the…

sdbbs
- 4,270
- 5
- 32
- 87
0
votes
1 answer
Color map for 3d bar plot where the color is with respect to an independent value
I want to have my color bar change with each element and represent the Ionization # in the data set below:
Ionization # Name Nebulizer 1 Nebulizer 2 Nebulizer 3
0 4.341 Potassium 27.0923 18.5475 25.2555
1 …

Julian Avila
- 105
- 10
0
votes
1 answer
How do I increase the gap of 3D bar chart in y-axis?
I have a 4*7 3D bar chart where I would like to increase the gap or spacing of the 7 bars in the y-axis.
Below is my code:
import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
import numpy as np
# Set…

Catalyst
- 426
- 3
- 12