# 3d Plots - change axis intersection // inverse axis

**URL:** <https://discourse.julialang.org/t/3d-plots-change-axis-intersection-inverse-axis/51109>\
**Category:** New to Julia\
**Tags:** plotting, plots, 3d\
**Created:** [December 2, 2020, 11:59am UTC](https://discourse.julialang.org/t/3d-plots-change-axis-intersection-inverse-axis/51109 "2020-12-02T11:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mcmuffin6o](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mcmuffin6o](https://discourse.julialang.org/u/mcmuffin6o)\
**Post date:** [December 1, 2023, 5:59am UTC](https://discourse.julialang.org/t/3d-plots-change-axis-intersection-inverse-axis/51109/11 "2023-12-01T05:59:02Z")

</div>

How does one open a feature request? Without the ability to change where axes intersect, Julia decides that I don’t need to see the axes:

 ![p3_tfc_soln](https://global.discourse-cdn.com/julialang/original/3X/6/a/6ae29c72ed0bb2b56ed8b494abc2c19dcd7729a4.png)  
and after adding `camera=(-45, atand(1 / √2))`:  
 ![p3_tfc_soln](https://global.discourse-cdn.com/julialang/original/3X/d/7/d79cfdf37311d0702d38cfeeaaa998e015c07627.png)

Edit: Came up with a hack

```julia
function rotate_negative_45_degrees!(surface_plot)
    # The GR backend cannot properly display the axes if you decide to rotate
    # the camera -45 degrees. This wouldn't be so bad if it had a way of
    # manually setting the spine positions a la matplotlib, but it doesn't.

    # Swap the axis labels
    temp = surface_plot[1][:xaxis][:guide]
    xlabel!(surface_plot, surface_plot[1][:yaxis][:guide])
    ylabel!(surface_plot, temp)

    # Swap the ticks
    temp = xticks(surface_plot)[1]
    xticks!(surface_plot, yticks(surface_plot)[1])
    yticks!(surface_plot, temp)

    # Transform data appropriately
    xticks!(surface_plot, (xticks(surface_plot)[1][1], reverse(xticks(surface_plot)[1][2])))
    surface_plot[1][1][:z] = Surface(reverse(surface_plot[1][1][:z].surf', dims=2))
end

```

 ![p3_tfc_soln](https://global.discourse-cdn.com/julialang/original/3X/f/9/f9b03f077e7cb255917c483b906f5ca151135ccc.png)

---

_[View the full topic](https://discourse.julialang.org/t/3d-plots-change-axis-intersection-inverse-axis/51109)._
