# Nonlinear x sampling in DiscretePlot?

**URL:** <https://community.wolfram.com/t/nonlinear-x-sampling-in-discreteplot/20375>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [July 21, 2022, 3:11am UTC](https://community.wolfram.com/t/nonlinear-x-sampling-in-discreteplot/20375 "2022-07-21T03:11:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenxuan](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@chenxuan](https://community.wolfram.com/u/chenxuan)\
**Post date:** [July 21, 2022, 3:11am UTC](https://community.wolfram.com/t/nonlinear-x-sampling-in-discreteplot/20375/1 "2022-07-21T03:11:31Z")

</div>

DiscretePlot[x,{x,0,10,1}]

What if I want to have a nonlinear x sampling, like one going denser as x-\>10?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [July 21, 2022, 7:41am UTC](https://community.wolfram.com/t/nonlinear-x-sampling-in-discreteplot/20375/2 "2022-07-21T07:41:01Z")

</div>

You can give a list of values of `x` where to draw the points:

```
DiscretePlot[x, {x, Log[Range[E, E^10, 300 E]]}, 
 PlotRange -> {{0, 10}, {0, 10}}]

```

---

<div class="post-metadata">

**Author:** ![chenxuan](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@chenxuan](https://community.wolfram.com/u/chenxuan)\
**Post date:** [July 21, 2022, 8:36am UTC](https://community.wolfram.com/t/nonlinear-x-sampling-in-discreteplot/20375/3 "2022-07-21T08:36:57Z")

</div>

Thank you. That’s cool.
