# Why my plot function doesn't work?

**URL:** <https://community.wolfram.com/t/why-my-plot-function-doesnt-work/24524>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [September 5, 2024, 1:31pm UTC](https://community.wolfram.com/t/why-my-plot-function-doesnt-work/24524 "2024-09-05T13:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soterchiavazzo](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@soterchiavazzo](https://community.wolfram.com/u/soterchiavazzo)\
**Post date:** [September 5, 2024, 1:31pm UTC](https://community.wolfram.com/t/why-my-plot-function-doesnt-work/24524/1 "2024-09-05T13:31:48Z")

</div>

When plotting, I get the following errors:

 ![Screenshot2024-09-05153037.png](https://global.discourse-cdn.com/wolfram/original/3X/5/3/53f0a615f31d09a11e3823cd7f6b5043b7e307c6.png)

What is happening?

---

<div class="post-metadata">

**Author:** ![mroge02](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mroge02/32/28775_2.png) [@mroge02](https://community.wolfram.com/u/mroge02)\
**Post date:** [September 5, 2024, 2:30pm UTC](https://community.wolfram.com/t/why-my-plot-function-doesnt-work/24524/2 "2024-09-05T14:30:52Z")

</div>

What does `?x` show? What other definitions have you made?

This seems likely to be a bug, but I expect you would have to report enough details to WRI (through the Help \> Give Feedback menu command) for their developers to be able to figure it out. For me the code plots a line, as expected.

If you can’t figure out how the trouble was created, then restarting the kernel (use `Quit[]` for instance) should reset the system.

---

<div class="post-metadata">

**Author:** ![alamkhan1909](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@alamkhan1909](https://community.wolfram.com/u/alamkhan1909)\
**Post date:** [September 5, 2024, 5:49pm UTC](https://community.wolfram.com/t/why-my-plot-function-doesnt-work/24524/3 "2024-09-05T17:49:26Z")

</div>

Seems like something has already been attached with the definition of x. Quick fix would be first to clear x then plot like:

Clear[x]

Plot[x,{x,0,6}]

I hope this solves your problem.
