MATPLOTLIB 3D PLOTS including Scatter 3D and Surface Plots for Matplotlib Python || Matplotlib Tips

  Рет қаралды 44,697

Kimberly Fessel

Kimberly Fessel

Күн бұрын

Пікірлер
@BrunoAraujo-po2lm
@BrunoAraujo-po2lm 3 жыл бұрын
Omg, I'm a 3D modeler, this video means so much to me, thank you! It's a normal distribution represented in 3D, genious!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Nice 😄-- 3D plots are so much fun!
@vitorrosar3251
@vitorrosar3251 3 жыл бұрын
This is the best video about 3d graphics on matplotlib!!!
@rabinthapa401
@rabinthapa401 2 жыл бұрын
Still on the middle of the document, Me studying this, I already admire it through all dimension. Thank you
@vitorribeirosa
@vitorribeirosa Жыл бұрын
Thank you for you videos. They have helped me a lot. Cheers!!!
@stlo0309
@stlo0309 2 жыл бұрын
tysm! never knew 3d plots are possible with matplotlib alone
@victorcouloume6824
@victorcouloume6824 3 жыл бұрын
Thank you so much ! I was looking for an explanation this clear, keep the good work !
@higheloguy9057
@higheloguy9057 2 жыл бұрын
Great professionally made video. You look great/alive in front of camera
@zakariaabderrahmanesadelao3048
@zakariaabderrahmanesadelao3048 2 жыл бұрын
Brilliant and clear tutorial, appreciated.
@agustindelpino6898
@agustindelpino6898 2 жыл бұрын
Que grande esta señora. Una capa.
@nothing-yt7nu
@nothing-yt7nu Жыл бұрын
When I try the interactive thing by adding"%matplotlib notebook", it returns an error that says "No module named 'ipympl'".
@samuelgbashi8969
@samuelgbashi8969 Жыл бұрын
Great Job. I love your content.
@SumandeepSinghRanamem
@SumandeepSinghRanamem Жыл бұрын
thank you this was very nicely explained.
@abdullahimuhammad643
@abdullahimuhammad643 3 жыл бұрын
very useful. clarity defined this presentation
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Oh thank you! Glad to hear you found it to be clear - cheers!
@matteobarnaba6518
@matteobarnaba6518 3 жыл бұрын
Thank you very much for your videos, they are great and very informative. Do you plan to make some video about contours, color maps, etc., as well? Thank you in advance for your reply 🙂
@hazhir3861
@hazhir3861 2 жыл бұрын
That was helpful. Thank you for sharing :)
@lucapassani1129
@lucapassani1129 3 жыл бұрын
Very instructive and enjoyable. Thank you.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thanks so much, Luca! Glad you enjoyed it 😄
@gusinthecloud
@gusinthecloud 2 жыл бұрын
I really appreciate your video. It's quite helpful
@ayenewyihune
@ayenewyihune 2 жыл бұрын
Great video, thank you
@BISWAJITMONDAL-vj3py
@BISWAJITMONDAL-vj3py 3 жыл бұрын
How to make two surface plots in 3D with different x & y scales (like twin axis in 2D plots)? ...Thanks!
@卡殿-y1n
@卡殿-y1n 2 жыл бұрын
Thank you very much!
@prabup3114
@prabup3114 3 жыл бұрын
Very nice hands on. have a query. How to create a surface with x,y,z data points instead of knowing the z equation as a function of x,y.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thank you and sure thing! If you already have the values for z, you can just pass them directly into the surface plot; for example, ax.plot_surface(X, Y, Z) where Z contains your values instead of a function result. You'll just want to make sure that X, Y, and Z are all the same shape. Z should be the z-positions at all of your x- and y-grid positions.
@SURAJITHDE
@SURAJITHDE Жыл бұрын
Ma'am can we create 3d surface plot by taking a grayscale image as an input
@neelsamshah
@neelsamshah 3 жыл бұрын
Thank you for creating this video. It is very helpful. In some of the code online, I see the following import: from mpl_toolkits import mplot3d. Is this needed? Also, sometimes, people explicitly create a figure using plt.figure and then add axes to the figure: fig = plt.figure(); ax = plt.axes(projection='3d'). When do we need to explicitly use the figure function first?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Most welcome! Regarding your questions: previous versions of matplotlib required you to explicitly import mplot3d to make a 3D plot. It won't hurt your code, but matplotlib version 3.2.0 or higher no longer requires this. And you can use fig = plt.figure() and then refer to that specific figure if you are creating multiple figures with your code. Really, any time the figure (or axes) you are referring to may be ambiguous.
@thbdf3879
@thbdf3879 3 жыл бұрын
Really helpful !!!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Very glad to hear that - cheers!
@youcefyahiaoui1465
@youcefyahiaoui1465 2 жыл бұрын
Hi Kimberly, Again, thank you so much for the top notch videos you're putting out. I am definitely a fan. Now, often we define the z_line as a real time axis like say I have frequency 1MHz, its period would be 1/f = 1µs, I want to build an axis of 4 periods, I want the z_line to be my time t formed as 0 to 4*T with steps of T/10. Linespace does not work as it's expecting intergers. Can you advise on how to do the same thing as linspace but with float numbers? something that would like linspace(0,T/10,4*T)...
@youcefyahiaoui1465
@youcefyahiaoui1465 2 жыл бұрын
Never mind, Kimberly. I was able to do this using np.arange(min, max, step) utility. Thanks.
@darklee1146
@darklee1146 3 жыл бұрын
excuseme sir, why i try to sketch another equation but the output the the same like your equation 50-x^2-y^2 ?
@shajiwang
@shajiwang 6 ай бұрын
is it possible to create a scatter 3D plot where the axis form a pyramid ladder chart instead of a cubic shape?
@KimberlyFessel
@KimberlyFessel 6 ай бұрын
Sure, I don't see why not. You would just want to supply an equation for the pyramid shape instead of the cubic shape I have here in the definition of function_z()... may need a piecewise function to make the edges nice and crisp.
@davidzamora4654
@davidzamora4654 3 жыл бұрын
How can I enable the "interactivity" mode in Spyder? Is it possible? Excellent video and explanation btw
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thank you! Unfortunately, I'm not very familiar with Spyder, but it sounds like it is possible to do this based on @HABIBE KABA DIAKITE 's question and comment.
@_MrSivakumaR_
@_MrSivakumaR_ 3 жыл бұрын
Interactive mode is not available in spyder, I think ! However, you can run the program file from the file explorer, so that a new window opens, which is Interactive 🙂
@themightyquinn100
@themightyquinn100 3 жыл бұрын
How do you include scatter data and surface on one plot? I have data points in 3 dimensions and I need to plot a surface that was obtained by B-Spline regression along with the data points.
@tilkesh
@tilkesh Жыл бұрын
Thanks
@aditijain6551
@aditijain6551 3 жыл бұрын
once u move plot interactively, how to query new angles?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi there - You can still use ax.view_init() even if you have interactive mode on ("%matplotlib notebook"). Just add ax.view_init() under your plot and re-run the cell. This will start the initial position of your figure at the angle you specify.
@habibekabadiakite1218
@habibekabadiakite1218 3 жыл бұрын
How to make the move on Spyder ?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hello there - unfortunately, I'm not too familiar with Spyder and don't have it installed on my machine. I typically test out this code using Jupyter Notebook or Google Colab. Sorry I couldn't help with this one!
@habibekabadiakite1218
@habibekabadiakite1218 3 жыл бұрын
@@KimberlyFessel Thank you very much, I searched and I found
@shardulnikam9322
@shardulnikam9322 3 жыл бұрын
@@habibekabadiakite1218 Hey, can you please share how to do it in spyder?
@guaishouxiao1623
@guaishouxiao1623 2 жыл бұрын
plt.axes(projection="3d"), it says TypeError: 'module' object is not callable. Anyone has the same problem?
@belenmatamoros1078
@belenmatamoros1078 Жыл бұрын
Te amo
@YM-lm8xr
@YM-lm8xr 3 жыл бұрын
how to implement plotting a SERIES of 2d spectra(energy vs conductance) into a 3D plot (x=energy, y=uniformly lined up spectra, z=conductance) in Matplotlib?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi there - as long as you have x, y, and z coordinates for each of these components, you can absolutely make a 3D plot for your data. Are your uniform spectra data currently the index of your series? If so, you can pass the dataframe columns and indices directly into the matplotlib plotting methods like scatter3D. For example, if you have a dataframe df with columns like "energy" and "conductance" and your spectra are the indices, you can do ax.scatter3D(df.energy, df.index, df.conductance).
@sethsm7
@sethsm7 2 жыл бұрын
DOES ANYBODY KNOW HOW TO PLOT Y AND Z-AXIS ON LOG SCALES WITHOUT APPLYING A LOG TO THE DATA?? PLEASE AND THANK YOU!!
@LetoTheGodEmperor
@LetoTheGodEmperor 2 жыл бұрын
You could try ax.set_yscale('log') and ax.set_zscale('log'). Hope it works
@Andrumen01
@Andrumen01 Жыл бұрын
It's good that matplotlib has 3D options...but still so far from being good...I always feel that it could be better but it never quite gets there. There should be lessons learned from Mathematica. Understandable that Mathematica is paid software, whereas matplolib is "free", but still disappoints a little every time I try to use it.
Easy Introduction to Python's Meshgrid Function and 3D plotting in Python
15:31
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 36 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 26 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
Professional 3D Plotting in Matplotlib
17:24
NeuralNine
Рет қаралды 121 М.
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 177 М.
Create 3D Scatter Plot -- Python Plotly
36:57
Charming Data
Рет қаралды 15 М.
Is Plotly The Better Matplotlib?
22:58
NeuralNine
Рет қаралды 98 М.
Python Video 07d: Plotting Contour and Surface Plots with Matplotlib
10:12
Carroll Mathematics
Рет қаралды 30 М.
How to use NUMPY MESHGRID and Contour Plots in Python
7:09
Dot Physics
Рет қаралды 4,6 М.
Animating Plots In Python Using MatplotLib [Python Tutorial]
10:17
CodingLikeMad
Рет қаралды 80 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 36 МЛН