How to plot 3D charts in Python

0 votes

Hi Guys,

I am new in Python. I want to plot one 3D chart in Python. How can I do that?

Jun 29, 2020 in Python by akhtar
• 38,260 points
1,165 views

1 answer to this question.

0 votes

Hi@akhtar,

Python is capable of creating 3d charts. It involves adding a subplot to an existing two-dimensional plot and assigning the projection parameter as 3d. I have attached one example below for your reference.

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
chart = plt.figure()
chart3d = chart.add_subplot(111, projection='3d')
X, Y, Z = axes3d.get_test_data(0.08)
chart3d.plot_wireframe(X, Y, Z, color='r',rstride=15, cstride=10)
plt.show()

I hope this will help you.

answered Jun 29, 2020 by MD
• 95,460 points

Related Questions In Python

0 votes
1 answer

how to plot a boxplot in python using seaborn?

following is the syntax for a boxplot ...READ MORE

answered Aug 13, 2019 in Python by Mohammad
• 3,230 points
1,085 views
0 votes
1 answer

how to get anova table of split plot design in python

Hello @kapil, A split plot design is a ...READ MORE

answered Aug 24, 2020 in Python by Niroj
• 82,880 points
1,477 views
+3 votes
5 answers

How to read multiple data files in python

Firstly we will import pandas to read ...READ MORE

answered Apr 6, 2018 in Python by DeepCoder786
• 1,720 points
15,107 views
+4 votes
7 answers
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,348 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,906 views
+1 vote
3 answers

How to change/update cell value in Python Pandas dataframe?

You can use the at() method to ...READ MORE

answered Apr 8, 2019 in Python by Kunal
147,150 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,460 points
13,320 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP