# Contourf plot with uneven axes

**URL:** <https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [March 6, 2021, 3:49am UTC](https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603 "2021-03-06T03:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaseleslie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chaseleslie/32/22188_2.png) [@chaseleslie](https://discourse.julialang.org/u/chaseleslie)\
**Post date:** [March 6, 2021, 3:49am UTC](https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603/1 "2021-03-06T03:49:51Z")

</div>

I am trying to plot a contourf plot that has uneven axes, like so:

```julia

using Plots
pyplot()

contourf(Float64[k for k in 0:19], Float64[k for k in 0:2:38], rand(20,20))

```

This produces a plot like on the left:

 ![pyplot_contourf_combined](https://global.discourse-cdn.com/julialang/original/3X/4/6/465a4c737f2f3ab55b355d8607105d743cf3d95e.png)

Whereas I would like the contour plot to have rectangular dimensions scaled like the range of the axes like on the right.

Changing the aspect keyword to :equal, :none or a number doesn’t appear to have any effect. Is there a way to achieve this? Any plot backend is acceptable.

---

<div class="post-metadata">

**Author:** ![chaseleslie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chaseleslie/32/22188_2.png) [@chaseleslie](https://discourse.julialang.org/u/chaseleslie)\
**Post date:** [March 6, 2021, 3:56am UTC](https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603/2 "2021-03-06T03:56:29Z")

</div>

I figured out the problem. It seems `aspect` is not one of the valid aliases of the `aspect_ratio` subplot attribute:

[http://docs.juliaplots.org/latest/generated/attributes\_subplot/](http://docs.juliaplots.org/latest/generated/attributes_subplot/)
