# How to show a line like y=4 or x=2 on the sketch tool?

**URL:** <https://cl.desmos.com/t/how-to-show-a-line-like-y-4-or-x-2-on-the-sketch-tool/2811>\
**Category:** Questions\
**Tags:** sketch, simplefunction\
**Created:** [March 2, 2021, 4:13pm UTC](https://cl.desmos.com/t/how-to-show-a-line-like-y-4-or-x-2-on-the-sketch-tool/2811 "2021-03-02T16:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harriette\_huang](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/harriette_huang/32/2306_2.png) [@harriette\_huang](https://cl.desmos.com/u/harriette_huang)\
**Post date:** [March 2, 2021, 4:13pm UTC](https://cl.desmos.com/t/how-to-show-a-line-like-y-4-or-x-2-on-the-sketch-tool/2811/1 "2021-03-02T16:13:27Z")

</div>

I can use function(“f”): simpleFunction(equationInput.latex, “x”) to show functions like y=x-4. However, it does not show a line for y=4 or x=-2. What can I do?

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [March 2, 2021, 5:24pm UTC](https://cl.desmos.com/t/how-to-show-a-line-like-y-4-or-x-2-on-the-sketch-tool/2811/2 "2021-03-02T17:24:45Z")

</div>

This should work:

```auto
function(`f`): simpleFunction(input.latex)
function(`g`): simpleFunction(input.latex,"y")

```

Then in your graph:

```auto
y=f(x)
x=g(y)

```
