# Plots: adding plots to \`twinx()\` axis

**URL:** <https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 14, 2023, 3:06pm UTC](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223 "2023-11-14T15:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 14, 2023, 3:17pm UTC](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223/2 "2023-11-14T15:17:52Z")

</div>

> [@BLI](#):
>
> twinx()

Assign this to a variable instead of making a new function call.  
See this related [thread and solution](https://discourse.julialang.org/t/dual-axis-plot-breaks-with-multiple-variables-on-right-secondary-y-axis/64491/4).

---

_[View the full topic](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223)._
