Home>
The graph is plotted with python's maplotlib.
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace (0, 2 * np.pi, 100)
fig = plt.figure ()
ax = fig.add_subplot (1,1,1)
ax.plot (x, np.sin (x))
You can plot it now, but how can you make the minimum and maximum values of the axis at this time?
Show me just right.
I would like to see this value again. Is this possible?

Answer # 1
Related articles
 python  regarding graph update of matplotlib
 python  how to get the coordinates of a graph created with matplotlib
 python  how to read an external file that describes the appearance of matplotlib graphs
 i want to plot a heat map of a building as a 3d graph in python etc
 how to create a line graph with striped standard deviation (python, jupyter)
 python wind direction/speed graph creation
 python 3x  i want to make a graph plot
 python  i want to visualize the labels predicted by cnn as a bar graph [image classification]
 python 3x  matplotlib cannot be imported
 [python] matplotlib? i want to display the sound signal in a spectrogram
 attributeerror occurs when importing matplotlib in python
 python  i want to draw a line graph halfway with maplotlib
 python  how to create a 3d graph with output values using matplotlib and numpy
 python  i want to replace the y axis of the graph drawn with matplotlob with a character string
 how to read csv experimental data and draw graph using python
 [python] use subplots with matplotlib to display multiple graphs from dataframe
 python  how to check the arguments that can be specified in matplotlib method on jupyer notebook
 python graph axis/range setting
 python  i want to graph the predicted values by glm (generalized linear model)
 i set the maximum value in python, but when i graph it, the value exceeds the maximum value
Related questions
 matplotlib  how to plot the same day of the week in another year
 i want to output a 3d graph with parse effect using python
 matplotlib display circles at regular intervals
 recommended use of r and python
 matplotlib  pyplot plot, how to put multiple line legends
 matplotlib  empty 'dataframe': no numeric data to plot
 python  i want to pass arguments to the function that is executed when pick_event (click) of matplotlib
 matplotlib  i want to create a pie chart by delimiting with attributes (groups) in python
 matplotlib  i want to display the seaborn xaxis date every 7 days
 matplotlib  coordinate data entered as tuples in db is plotted
The current maximum and minimum are the X axis and Y axis respectively
You can get it with.
To set it, use
It can be set likeset_xlim ()
set_ylim ()
.