# Problem visualizing x-axis' ticks on a plot

**URL:** <https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395>\
**Category:** Visualization\
**Tags:** pyplot\
**Created:** [April 22, 2019, 9:50am UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395 "2019-04-22T09:50:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ale](https://discourse.julialang.org/u/ale)\
**Post date:** [April 22, 2019, 9:50am UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395/1 "2019-04-22T09:50:59Z")

</div>

Hi everyone,

I am plotting a graph by using:

```julia
using Plots
pyplot()
...

```

And I obtain the following:

 ![per_julia](https://global.discourse-cdn.com/julialang/original/3X/1/b/1babaf2b2cbcac56989350df3c16489e88e59d94.jpeg)

Which is fine, apart from how the x-axis ticks are displayed.  
What can that be due to? Maybe too large values? The values in the x-axis should be in the range 10^5 or 10^6.

Do you have any suggestions in order to visualize the x-axis ticks correctly?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [April 22, 2019, 12:51pm UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395/2 "2019-04-22T12:51:20Z")

</div>

What do you expect to see? Is your question about the error in rendering the exponents on the x-axis? Or do you think you should have different values on the x-axis?

It’s hard to help here, it’d be great if you could provide a full MWE as described [here](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) and explain what you’re hoping to see on your plot.

---

<div class="post-metadata">

**Author:** ![ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ale](https://discourse.julialang.org/u/ale)\
**Post date:** [April 23, 2019, 9:03am UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395/4 "2019-04-23T09:03:00Z")

</div>

@nilshg thank you for your reply, and you are right, I should have included more details, please refer to the following.  
My question was about the error in rendering the exponents on the x-axis. I would expect to see integers, or e.g. 10^4, 2\*10^4, etc.; but **not** a square instead of the exponents.

The structure of the code is the following:

```julia
using Plots
pyplot()

wanted_font = "garamond"
fig_1 = plot(
tickfont = wanted_font, legendfont = wanted_font, guidefont = font(9, wanted_font),
xlabel = "My x-axis", ylabel = "My y-axis",
legend = false, grid = false,
xmin = 0, ymin = 0
)

while # a certain complicated condition ...
        plot!(fig_1,
        [scalar_1], [scalar_2],
        c = [1],
        marker = (:circle, 1),
        markerstrokewidth = 0.1
        )
end
savefig(fig_1,"name.jld")

```

By the way, I’m using Julia 0.6.4.  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [April 23, 2019, 11:20am UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395/5 "2019-04-23T11:20:28Z")

</div>

The exponents are rendered using Unicode superscript, and I’m not sure if Garamond supports those. Maybe try a font which does? I think Noto should (for one).

---

<div class="post-metadata">

**Author:** ![ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ale](https://discourse.julialang.org/u/ale)\
**Post date:** [April 23, 2019, 4:35pm UTC](https://discourse.julialang.org/t/problem-visualizing-x-axis-ticks-on-a-plot/23395/6 "2019-04-23T16:35:02Z")

</div>

@asinghvi17 thanks very much, this works!  
Changing the font solved the problem!
