# Plots: use of \`twinx()\` and \`frame=:box\` looks ugly

**URL:** <https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 13, 2024, 11:45am UTC](https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581 "2024-11-13T11:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [November 13, 2024, 11:45am UTC](https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581/1 "2024-11-13T11:45:39Z")

</div>

I like to use the `frame` keyword when plotting with `Plots.jl` – it makes the plot nicer, in my view. However, if I use twin ordinate axes, the default is ugly with `frame=:box`:

Here is _without_ `frame` specification:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/c/2c88457a1231b03bb49c73e8351906116e86d575.png)

Next, here is _with_`frame` specification:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/e/0ef18d49f49672ec8b2637b06049509be137f51e.png)

The “ugly” look is caused by the two coordinate systems both displaying tick marks on both sides of the plot, and the tick marks are not aligned.

_Question_ : Is there a way to specify that the tick marks should only be displayed on either left or right side of the ordinate axis?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 13, 2024, 7:32pm UTC](https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581/2 "2024-11-13T19:32:19Z")

</div>

You can check [this other thread](https://discourse.julialang.org/t/how-to-not-plot-axis-ticks-on-top-and-right-in-plots-jl-with-gr-backend/112345) for some ideas to try.
