mathplotlib tag

3 questions


1 answers
107 views
0
What does Fig.add_subplot(111) mean in Matplotlib?

When you run this code import matplotlib.pyplot as pltx = [1, 2, 3, 4, 5]y = [1, 4, 9, 16, 25]fig = plt.figure()fig.add_subplot(111)plt.scatter(x, y)plt.show()Output: I'm just learning, so I'm followi...

2 years ago

1 answers
92 views
0
There is a function that I don't understand when I draw a graph with matplotlib.

data =pd.read_csv('spx.csv',index_col=0,parse_date=True)What do the index_col=0 and parse_date=True options mean here? I'm not sure if I'm going through the documentsㅠ

2 years ago

1 answers
69 views
0
Output a graph to Sympy.

Until now, we have created a graph using mathplotlib as a value using python's numpy.When defining a function in numpy, both x and y values came out in a list format, so I made a graph, but when I def...

2 years ago

© 2024 OneMinuteCode. All rights reserved.