<jupyter_start><jupyter_text>xlim and ylim<jupyter_code>%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
import numpy as np

number_of_points = 1000
fig = plt.figure()
ax = plt.axes()
x = np.linspace(0, 10, number_of_points)
y = np.sin(x)
ax.plot(x,y);


number_of_points = 1000
fig = plt.figure()
ax = plt.axes()
x = np.linspace(0, 10, number_of_points)
y = np.sin(x)
ax.plot(x,y);
plt.xlim(-1, 11)
plt.ylim(-1.5, 1.5);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16427104722792607, 'fraction_numerical': 0.043121149897330596, 'mean_word_length': 5.421052631578948, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '559775', 'license': 'Apache-2.0', 'n_tokens_mistral': 237, 'n_tokens_neox': 223, 'n_words': 43, 'path': 'course-content/chart-examples-for-matplotlib/xlim-ylim.ipynb', 'repo_name': 'ati-ozgur/course-data-mining', 'size': '487'}