# Differential Equation Log Plot

**URL:** https://discourse.julialang.org/t/differential-equation-log-plot/123435
**Category:** Visualization
**Tags:** plotting, diffeq
**Created:** [December 4, 2024, 4:45am UTC](https://discourse.julialang.org/t/differential-equation-log-plot/123435 "2024-12-04T04:45:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)
#### Post date: [December 4, 2024, 8:21am UTC](https://discourse.julialang.org/t/differential-equation-log-plot/123435/2 "2024-12-04T08:21:21Z")

</div>

Avoid 0 in limit. So, you are giving `ylim = (0, 6.022e23)` and want to apply `yaxis = :log10`. These both together are cause of issue because value of ‘log(0)’ is not defined. To solve it, you can rather give `ylim = (z, 6.022e23)` where z is some non zeros small value (around lowest value in your data).

Similarly for negative values, it will go in complex space.

---

_[View the full topic](https://discourse.julialang.org/t/differential-equation-log-plot/123435)._
