Respan Dataset Explorer

Select one behavior. Every returned turn has one binary label: Present or Absent. Source: final dense boolean release.

5,167,182physical rows
86shards
0.00%qualified row coverage
0.00%qualified cell coverage
Random row JSON API

turns-00007.parquet:49154

8cc80068fc358d1d3e9a4f71
turn 1/1gpt-3.5-turbo-0613EnglishChina746 words
degenerate_repetitionAbsentFinal dense release
USER
                            As a prompt generator for a generative AI called "Midjourney", you will create image prompts for the AI to visualize. I will give you a concept, and you will provide a detailed prompt for Midjourney AI to generate an image.
                            
                            Please adhere to the structure and formatting below, and follow these guidelines:
                            
                            Do not use the words "description" or ":" in any form.
                            Do not place a comma between [ar] and [v].
                            Write each prompt in one line without using return.
                            Structure:
                            [1] = 创作
                            [2] = a detailed description of [1] with specific imagery details.
                            [3] = a detailed description of the scene's environment.
                            [4] = a detailed description of the compositions.
                            [5] = a detailed description of the scene's mood, feelings, and atmosphere.
                            [6] = A style (e.g. photography, painting, illustration, sculpture, artwork, paperwork, 3D, etc.) for [1].
                            [7] =  a detailed description of the scene's mood, feelings, and atmosphere.
                            [ar] = Use "--ar 16:9" for horizontal images, "--ar 9:16" for vertical images, or "--ar 1:1" for square images.
                            [v] = Use "--niji" for Japanese art style, or "--v 5" for other styles.
                            
                            
                            Formatting:
                            Follow this prompt structure: "/imagine prompt: [1], [2], [3], [4], [5], [6], [7], [ar] [v]".
                            
                            Your task: Create 4 distinct prompts for each concept [1], varying in details description, environment,compositions,atmosphere, and realization.
                            
                            Write your prompts in english.
                            Do not describe unreal concepts as "real" or "photographic".
                            Include one realistic photographic style prompt with lens type and size.
                            Separate different prompts with two new lines.
                            Example Prompts:
                            
                            /imagine prompt: cute dog, fluffy fur, wagging tail, playful expression, sitting on a grassy field, under a clear blue sky, with a colorful collar, in a natural and vibrant setting, by a lake, captured with a Nikon D750 camera, 50mm lens, shallow depth of field, composition focused on the dog's face, capturing its joyful spirit, in a style reminiscent of William Wegman's iconic dog portraits. --ar 1:1 --v 5.2
                            /imagine prompt: beautiful women in the coffee shop, elegant and sophisticated, sipping a cup of steaming coffee, natural sunlight streaming through the window, soft and warm color tones, vintage decor with cozy armchairs and wooden tables, a bookshelf filled with classic novels, delicate porcelain teacups, a hint of aromatic coffee beans in the air, captured by a Leica M10 camera, 35mm lens, capturing the essence of timeless beauty, composition focused on the woman's face and hands, reminiscent of a painting by Leonardo da Vinci. --ar 1:1 --v 5.2
                            /imagine prompt: A captivating Halo Reach landscape with a Spartan amidst a battlefield, fallen enemies around, smoke and fire in the background, emphasizing the Spartan's determination and bravery, detailed environment blending chaos and beauty, Illustration, digital art, --ar 16:9 --v 5
                                                        
ASSISTANT
/imagine prompt: a majestic lion, with a proud and regal mane, gazing into the distance with a fierce and intense expression, standing on a rocky outcrop overlooking the vast African savannah, bathed in the warm golden hues of the setting sun, captured with a Canon 5D Mark IV camera, 300mm telephoto lens, capturing the raw power and elegance of the king of the jungle, composition focused on the lion's piercing eyes, in a style reminiscent of National Geographic wildlife photography. --ar 16:9 --v 5.2

/imagine prompt: a mystical forest, with towering ancient trees covered in moss and ivy, creating a magical and enchanted atmosphere, dappled sunlight filtering through the dense foliage, illuminating the vibrant and diverse flora and fauna, birds chirping and small animals scurrying about, captured in a painting, with intricate brushwork and vivid colors, inviting the viewers into a realm of fantasy and wonder. --ar 16:9 --v 5

/imagine prompt: a futuristic cityscape, with gleaming skyscrapers reaching towards the sky, reflecting the vibrant neon lights of a bustling metropolis, flying cars zooming through the air, leaving streaks of light in their wake, intricate network of elevated walkways connecting the towering structures, showcasing the advanced technology and urban lifestyle of the future, captured in a digital artwork, with sleek and clean lines, creating a sense of modernity and dynamism. --ar 9:16 --v 5

/imagine prompt: a serene beach at sunset, with gentle waves lapping against the shore, creating a soothing and calming atmosphere, soft pastel colors painting the sky in hues of pink, orange, and purple, seagulls soaring in the distance, boats gently rocking on the water, capturing a moment of tranquility and relaxation, in a realistic photographic style, with a wide-angle lens capturing the expansive beauty of the coastal landscape. --ar 16:9 --v 5.2

turns-00007.parquet:49155

48a884db558c703e18048ec9
turn 1/1gpt-3.5-turbo-0613GermanGermany598 words
degenerate_repetitionAbsentFinal dense release
USER
Ein Patient ruft in einer Arzt Praxis an und spricht mit dem Sekretaer.
Erzeugen Sie ein Dialogbeispiel fr die Absicht 'Book_Appointment' (Termin vereinbaren) unter Verwendung der folgenden Aktionen und Entitaeten:
Entities: Patient_Name (Full name), Appointment_Date, Appointment_Time, Appointment_Type (Reason for Appointment), Doctor_Name, Patient_Birthdate, Insurance_status (Private or Gesetzlich), Customer_status (Already Customer?).
Jede Entitt sollte folgende Informationen enthalten: 'entity' (Entitaet), 'value' (Wert).
Actions: Check_Calendar, Appointment_Proposal, Confirm_Appointment, Ask_for_name,Ask_for_Birthdate, Ask_for_which_Doktor, Ask_for_customer_status, Ask_for_what_reason, Ask_for_Insurance_status, Ask_for_which_date, Ask_for_what_time, Greeting, Farewell.
Intent is the whole time "Book_Appointment"
Jeder Dialog sollte folgende Informationen enthalten: 'role' (Rolle), 'utterance' (Aeuerung), 'intent' (Absicht, wenn zutreffend), 'actions' (Aktionen, falls zutreffend), 'entities' (Entitaeten, falls zutreffend).
Der Dialog soll in der deutschen Sprache sein
Die einzelnen Dialoge sollen sich vom Aufbau stark unterscheiden, jedoch soll der Formale Aufbau "role","uterance", "intent", "action", "entities" stehts aufrecht erhalten bleiben.
Die actions und entities sollen sich auf den jeweilig gesagten Satz beziehen und nicht auf den Satz danach.
Sollte der jeweilige Satz eine entitie beziehen, dann sollte die entitie erneut angegeben werden. Wie zum Beispiel wenn die Sekretrin den Patienten Namen sagt sollte erneut Patient_Name bei diesem Satz angegeben sein.
Das ist ein Beispiel fr den formalen Aufbau (Bitte beachte, dass sich die Dialoge stark unterscheiden sollen und auch die Inhalte der Entitaeten sich unterscheiden sollen. Also der Patient soll einen anderen Namen beziehungsweise Geburtsdatum haben.):

"role": "Patient",
"utterance": "sentence",
"actions": [""],
"intent": "Book_Appointment",
"entities": ["entity": "", "value": ""]
,


"role": "Sekretaer",
"utterance": "sentence",
"actions": [""],
"intent": "Book_Appointment",
"entities": ["entity": "", "value": ""]
,

Die einzelnen Dialoge sollen sich vom Aufbau stark unterscheiden. 
Schreibe einen Dialog mit mindestens 5 Eintraege fuer den Patienten und mindestens 5 Eintraege fuer den Sekretaer.
Schreibe jetzt einen vollstaendigen Dialog unter Beachtung der obigen Details:
ASSISTANT
"role": "Patient",
"utterance": "Guten Tag, ich moechte gerne einen Termin vereinbaren.",
"intent": "Book_Appointment",
"actions": ["Ask_for_name"],
"entities": []

"role": "Sekretaer",
"utterance": "Natuerlich, gerne! Was ist Ihr Name?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Patient_Name", "value": "Max Mustermann"]

"role": "Patient",
"utterance": "Mein Name ist Max Mustermann.",
"intent": "Book_Appointment",
"actions": ["Ask_for_Birthdate"],
"entities": ["entity": "Patient_Name", "value": "Max Mustermann"]

"role": "Sekretaer",
"utterance": "Gut, vielen Dank. Was ist Ihr Geburtsdatum?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Patient_Birthdate", "value": "01.01.1990"]

"role": "Patient",
"utterance": "Ich bin am 01.01.1990 geboren.",
"intent": "Book_Appointment",
"actions": ["Ask_for_which_Doktor"],
"entities": ["entity": "Patient_Birthdate", "value": "01.01.1990"]

"role": "Sekretaer",
"utterance": "Verstanden. Bei welchem Arzt moechten Sie einen Termin vereinbaren?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Doctor_Name", "value": "Dr. Schmidt"]

"role": "Patient",
"utterance": "Ich moechte gerne einen Termin bei Dr. Schmidt.",
"intent": "Book_Appointment",
"actions": ["Ask_for_Insurance_status"],
"entities": ["entity": "Doctor_Name", "value": "Dr. Schmidt"]

"role": "Sekretaer",
"utterance": "Haben Sie eine private oder gesetzliche Krankenversicherung?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Insurance_status", "value": "Private"]

"role": "Patient",
"utterance": "Ich habe eine private Krankenversicherung.",
"intent": "Book_Appointment",
"actions": ["Ask_for_what_reason"],
"entities": ["entity": "Insurance_status", "value": "Private"]

"role": "Sekretaer",
"utterance": "Verstehe. Weshalb moechten Sie einen Termin vereinbaren?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Appointment_Type", "value": "Routineuntersuchung"]

"role": "Patient",
"utterance": "Ich moechte einen Termin fuer eine Routineuntersuchung.",
"intent": "Book_Appointment",
"actions": ["Check_Calendar"],
"entities": ["entity": "Appointment_Type", "value": "Routineuntersuchung"]

"role": "Sekretaer",
"utterance": "Ich schaue gerne nach. Wann waere Ihnen ein Termin recht?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Appointment_Date", "value": "n/a", "entity": "Appointment_Time", "value": "n/a"]

"role": "Patient",
"utterance": "Am liebsten waere mir ein Termin in der naechsten Woche.",
"intent": "Book_Appointment",
"actions": ["Appointment_Proposal"],
"entities": ["entity": "Appointment_Date", "value": "n/a", "entity": "Appointment_Time", "value": "n/a"]

"role": "Sekretaer",
"utterance": "In Ordnung. Wie waere es am Dienstag um 15 Uhr?",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Appointment_Date", "value": "Dienstag", "entity": "Appointment_Time", "value": "15 Uhr"]

"role": "Patient",
"utterance": "Das passt prima, ich nehme den Termin am Dienstag um 15 Uhr bei Dr. Schmidt.",
"intent": "Book_Appointment",
"actions": ["Confirm_Appointment"],
"entities": ["entity": "Appointment_Date", "value": "Dienstag", "entity": "Appointment_Time", "value": "15 Uhr"]

turns-00007.parquet:49156

3b3846d701318e0dacc44d46
turn 1/4gpt-3.5-turbo-0613EnglishUnited States63 words
degenerate_repetitionAbsentFinal dense release
USER
The surface outside an exit door must be?
ASSISTANT
The surface outside an exit door must be safe, stable, well-maintained, and easily accessible. It should be free from obstacles, trip hazards, or any potential danger that may hinder the safe evacuation of people during an emergency. Additionally, it may need to comply with specific regulations and codes, depending on the jurisdiction and building type.

turns-00007.parquet:49157

ae4edba471bf37222cad7bf0
turn 2/4gpt-3.5-turbo-0613EnglishUnited States16 words
degenerate_repetitionAbsentFinal dense release
USER
Employees should review the emergency action plan ________.
ASSISTANT
Employees should review the emergency action plan regularly.

turns-00007.parquet:49158

2b1d287f36b0026f78945ad4
turn 3/4gpt-3.5-turbo-0613EnglishUnited States127 words
degenerate_repetitionAbsentFinal dense release
USER
Employees should review the emergency action plan ________.
a)When their job description changes
b)After each emergency evacuation
c)When their responsibilities under the plan change
d)When they return from a long vacation
ASSISTANT
Employees should review the emergency action plan in the following situations:

a) When their job description changes.
c) When their responsibilities under the plan change.
d) When they return from a long vacation.

It is important for employees to stay updated on the emergency action plan to ensure their understanding of their roles and responsibilities during emergency situations. Regular reviews help reinforce the plan's key points and ensure readiness. Reviewing the plan after each emergency evacuation is also beneficial as it allows for identifying any areas that need improvement or updating based on the actual experience.

turns-00007.parquet:49159

bdb45daaa13ace848903045d
turn 4/4gpt-3.5-turbo-0613EnglishUnited States262 words
degenerate_repetitionAbsentFinal dense release
USER
Why does working in an uncomfortably cold office increase your risk of developing a CTD in your shoulder, arm, wrist, or hand?
ASSISTANT
Working in an uncomfortably cold office can increase the risk of developing a Cumulative Trauma Disorder (CTD) in the shoulder, arm, wrist, or hand due to several reasons:

1) Decreased blood flow: Cold temperatures constrict blood vessels, reducing blood flow to the extremities. Insufficient blood flow hampers the delivery of oxygen and nutrients to the muscles, tendons, and nerves in the affected areas. This can lead to tissue damage, inflammation, and increased susceptibility to injury.

2) Tense muscles: Cold temperatures can cause muscles to contract and become tense as a natural response to maintain body warmth. Continuous muscle tension can contribute to muscle fatigue, strain, and increased likelihood of overuse injuries.

3) Stiffness and reduced flexibility: Cold environments can make muscles, tendons, and joints feel stiff and less flexible. This can impact movement and increase the strain placed on these structures during repetitive tasks, potentially leading to the development of CTDs.

4) Decreased dexterity: Cold temperatures can impair fine motor skills and dexterity, making it harder to perform tasks with precision and accuracy. Compensation for reduced dexterity can lead to awkward or unnatural movements that increase the risk of injury over time.

Overall, the combination of reduced blood flow, tense muscles, decreased flexibility, and impaired dexterity can contribute to the development of CTDs when working in an uncomfortably cold office environment. It is important to maintain a comfortable and ergonomic workspace, including appropriate temperature control, to help minimize these risks.

turns-00007.parquet:49160

7593168198b45a4920aa4d30
turn 1/1gpt-3.5-turbo-0613GermanUnited States644 words
degenerate_repetitionAbsentFinal dense release
USER
Ein Patient ruft in einer Arzt Praxis an und spricht mit dem Sekretaer.
Erzeugen Sie ein Dialogbeispiel fr die Absicht 'Book_Appointment' (Termin vereinbaren) unter Verwendung der folgenden Aktionen und Entitaeten:
Entities: Patient_Name (Full name), Appointment_Date, Appointment_Time, Appointment_Type (Reason for Appointment), Doctor_Name, Patient_Birthdate, Insurance_status (Private or Gesetzlich), Customer_status (Already Customer?).
Jede Entitt sollte folgende Informationen enthalten: 'entity' (Entitaet), 'value' (Wert).
Actions: Check_Calendar, Appointment_Proposal, Confirm_Appointment, Ask_for_name,Ask_for_Birthdate, Ask_for_which_Doktor, Ask_for_customer_status, Ask_for_what_reason, Ask_for_Insurance_status, Ask_for_which_date, Ask_for_what_time, Greeting, Farewell.
Intent is the whole time "Book_Appointment"
Jeder Dialog sollte folgende Informationen enthalten: 'role' (Rolle), 'utterance' (Aeuerung), 'intent' (Absicht, wenn zutreffend), 'actions' (Aktionen, falls zutreffend), 'entities' (Entitaeten, falls zutreffend).
Der Dialog soll in der deutschen Sprache sein
Die einzelnen Dialoge sollen sich vom Aufbau stark unterscheiden, jedoch soll der Formale Aufbau "role","uterance", "intent", "action", "entities" stehts aufrecht erhalten bleiben.
Die actions und entities sollen sich auf den jeweilig gesagten Satz beziehen und nicht auf den Satz danach.
Sollte der jeweilige Satz eine entitie beziehen, dann sollte die entitie erneut angegeben werden. Wie zum Beispiel wenn die Sekretrin den Patienten Namen sagt sollte erneut Patient_Name bei diesem Satz angegeben sein.
Das ist ein Beispiel fr den formalen Aufbau (Bitte beachte, dass sich die Dialoge stark unterscheiden sollen und auch die Inhalte der Entitaeten sich unterscheiden sollen. Also der Patient soll einen anderen Namen beziehungsweise Geburtsdatum haben.):

"role": "Patient",
"utterance": "sentence",
"actions": [""],
"intent": "Book_Appointment",
"entities": ["entity": "", "value": ""]
,


"role": "Sekretaer",
"utterance": "sentence",
"actions": [""],
"intent": "Book_Appointment",
"entities": ["entity": "", "value": ""]
,

Die einzelnen Dialoge sollen sich vom Aufbau stark unterscheiden. 
Schreibe einen Dialog mit mindestens 5 Eintraege fuer den Patienten und mindestens 5 Eintraege fuer den Sekretaer.
Schreibe jetzt einen vollstaendigen Dialog unter Beachtung der obigen Details:
ASSISTANT
"role": "Patient",
"utterance": "Guten Tag, ich mochte gerne einen Termin vereinbaren.",
"intent": "Book_Appointment",
"actions": ["Ask_for_which_Doktor"],
"entities": []

"role": "Sekretaer",
"utterance": "Ja, gerne. Bei welchem Arzt mochten Sie einen Termin haben?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Bei Dr. Müller bitte.",
"intent": "Book_Appointment",
"actions": ["Ask_for_what_reason"],
"entities": ["entity": "Doctor_Name", "value": "Dr. Müller"]

"role": "Sekretaer",
"utterance": "Verstehe. Und was ist der Grund für den Termin?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ich habe starke Rückenschmerzen.",
"intent": "Book_Appointment",
"actions": ["Ask_for_which_date"],
"entities": ["entity": "Appointment_Type", "value": "Rückenschmerzen"]

"role": "Sekretaer",
"utterance": "Gut. Wann mochten Sie den Termin haben?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Am nächsten Montag, wenn möglich.",
"intent": "Book_Appointment",
"actions": ["Ask_for_what_time"],
"entities": ["entity": "Appointment_Date", "value": "nächsten Montag"]

"role": "Sekretaer",
"utterance": "Alles klar. Und um wie viel Uhr?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Um 10 Uhr morgens.",
"intent": "Book_Appointment",
"actions": ["Ask_for_name", "Ask_for_Birthdate", "Ask_for_Insurance_status", "Ask_for_customer_status"],
"entities": ["entity": "Appointment_Time", "value": "10 Uhr morgens"]

"role": "Sekretaer",
"utterance": "Vielen Dank. Darf ich bitte Ihren Namen wissen?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ja, mein Name ist Julia Schneider.",
"intent": "Book_Appointment",
"actions": ["Check_Calendar"],
"entities": ["entity": "Patient_Name", "value": "Julia Schneider"]

"role": "Sekretaer",
"utterance": "Danke sehr, Frau Schneider. Könnten Sie mir bitte auch Ihr Geburtsdatum geben?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ja, ich bin am 15. Oktober 1987 geboren.",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Patient_Birthdate", "value": "15. Oktober 1987"]

"role": "Sekretaer",
"utterance": "Vielen Dank. Sind Sie gesetzlich oder privat versichert?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ich bin privat versichert.",
"intent": "Book_Appointment",
"actions": [],
"entities": ["entity": "Insurance_status", "value": "privat"]

"role": "Sekretaer",
"utterance": "Verstanden. Und sind Sie bereits ein Kunde bei uns?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ja, ich bin bereits Kunde.",
"intent": "Book_Appointment",
"actions": ["Appointment_Proposal"],
"entities": ["entity": "Customer_status", "value": "bereits Kunde"]

"role": "Sekretaer",
"utterance": "Perfekt. Ich habe einen Termin für Sie bei Dr. Müller am nächsten Montag um 10 Uhr morgens eingetragen. Passt das für Sie?",
"intent": "Book_Appointment",
"actions": [],
"entities": []

"role": "Patient",
"utterance": "Ja, das passt. Vielen Dank!",
"intent": "Book_Appointment",
"actions": ["Confirm_Appointment"],
"entities": []

"role": "Sekretaer",
"utterance": "Sehr gerne. Auf Wiedersehen!",
"intent": "Book_Appointment",
"actions": ["Farewell"],
"entities": []

turns-00007.parquet:49161

36fd72012e7f649f54fa2f7f
turn 1/5gpt-3.5-turbo-0613RussianRussia89 words
degenerate_repetitionAbsentFinal dense release
USER
    fig = plt.figure()
    ax = fig.add_subplot(111)
    ax.plot(x, y)
    ax.grid(True)
    ax.scatter(x_1, y_1)
    ax.scatter(x_2, y_2)
    ax.axhline(y=0, color='black', linewidth=1)
    ax.axvline(x=0, color='black', linewidth=1)
    Как провести линии через целые числа
ASSISTANT
Для проведения линий через целые числа на графике, можно использовать методы ax.axhline() и ax.axvline() с указанием значений целых чисел. Например:

ax.axhline(y=2, color='red', linewidth=1)
ax.axvline(x=-3, color='blue', linewidth=1)

Этот код проведет горизонтальную красную линию через значение y=2 и вертикальную синюю линию через значение x=-3. Вы можете изменить значения y и x на нужные вам целые числа, а также настроить цвет и толщину линий по вашему выбору.

turns-00007.parquet:49162

2497450dc19984a472b3d39a
turn 2/5gpt-3.5-turbo-0613RussianRussia131 words
degenerate_repetitionAbsentFinal dense release
USER
я хочу регулярную сетку через все целые значения
ASSISTANT
Для того чтобы провести регулярную сетку через все целые значения на графике, вы можете использовать функции ax.set_xticks() и ax.set_yticks(). Вот пример кода:

import numpy as np
import matplotlib.pyplot as plt

# Создаем данные для графика
x = np.linspace(-10, 10, 100)
y = np.sin(x)

# Создаем график
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y)

# Устанавливаем целые значения на оси x и y
ax.set_xticks(np.arange(-10, 11, 1))
ax.set_yticks(np.arange(-1, 2, 1))

# Показываем сетку
ax.grid(True)

# Отображаем график
plt.show()

В этом примере мы используем функции np.arange() для создания массивов целых чисел, которые мы хотим отобразить на осях x и y. Затем мы используем функции ax.set_xticks() и ax.set_yticks() для установки этих целых чисел как делений на осях. Наконец, мы показываем сетку на графике с помощью ax.grid(True).

turns-00007.parquet:49163

c0ebb3c9e6e0f7654a1fd9ba
turn 3/5gpt-3.5-turbo-0613RussianRussia130 words
degenerate_repetitionAbsentFinal dense release
USER
а как ограничить график?
ASSISTANT
Для ограничения графика в заданных пределах можно использовать методы ax.set_xlim() и ax.set_ylim(). Вот пример кода:

import numpy as np
import matplotlib.pyplot as plt

# Создаем данные для графика
x = np.linspace(-10, 10, 100)
y = np.sin(x)

# Создаем график
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y)

# Ограничиваем график по оси x
ax.set_xlim(-5, 5)

# Ограничиваем график по оси y
ax.set_ylim(-1, 1)

# Показываем сетку
ax.grid(True)

# Отображаем график
plt.show()

В этом примере мы используем методы ax.set_xlim() и ax.set_ylim() для ограничения графика в заданных пределах по осям x и y соответственно. В коде выше график будет ограничен от -5 до 5 по оси x и от -1 до 1 по оси y. Вы можете настроить пределы графика на свое усмотрение, чтобы они соответствовали вашим потребностям.