# How to change axis in surface plot from Cartesian to logarithmic

**URL:** https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227
**Category:** ParaView Support
**Tags:** vtk
**Created:** [May 13, 2021, 7:01pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227 "2021-05-13T19:01:58Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Refaat\_Galal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/refaat_galal/32/6660_2.png) [@Refaat\_Galal](https://discourse.paraview.org/u/Refaat_Galal)
#### Post date: [May 13, 2021, 7:01pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/1 "2021-05-13T19:01:58Z")

</div>

Hi everyone,

I am new user of Paraview. I have the following surface plot in which the x- and y-axis are in Cartesian scale. I would like to know how to change the scale of x-axis to logarithmic.

 ![Picture1](https://discourse.paraview.org/uploads/default/original/2X/b/bfedbc7513a08a0b0569f25c8280ce3987bbc080.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2021, 8:32am UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/2 "2021-05-14T08:32:07Z")

</div>

Not possible in the 3D view afaik.

---

<div class="post-metadata">

### Author: ![Refaat\_Galal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/refaat_galal/32/6660_2.png) [@Refaat\_Galal](https://discourse.paraview.org/u/Refaat_Galal)
#### Post date: [May 14, 2021, 4:01pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/3 "2021-05-14T16:01:37Z")

</div>

The figure is 2D (surface) plot.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2021, 4:02pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/4 "2021-05-14T16:02:56Z")

</div>

Yes, but you are still in the 3D view, not in a chart view (which support log).

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [May 14, 2021, 4:07pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/5 "2021-05-14T16:07:26Z")

</div>

@kmorel What do you think? Good idea?

---

<div class="post-metadata">

### Author: ![Refaat\_Galal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/refaat_galal/32/6660_2.png) [@Refaat\_Galal](https://discourse.paraview.org/u/Refaat_Galal)
#### Post date: [May 14, 2021, 4:24pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/6 "2021-05-14T16:24:02Z")

</div>

Any good ideas will be helpful.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [May 14, 2021, 5:37pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/7 "2021-05-14T17:37:59Z")

</div>

I can see the utility of a log scale, but it could be problematic in the 3D view as things get undefined \<= 0.

An easy workaround is to use the `Calculator` filter to compute the log of the point coordinates.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [May 14, 2021, 5:39pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/8 "2021-05-14T17:39:58Z")

</div>

Ken, I agree. Not a good feature to add to ParaView. Rafaat, as Ken mentions, try the calculator filter. Although i have not looked, I bet it is covered in the ParaView Guide.

---

<div class="post-metadata">

### Author: ![Refaat\_Galal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/refaat_galal/32/6660_2.png) [@Refaat\_Galal](https://discourse.paraview.org/u/Refaat_Galal)
#### Post date: [May 14, 2021, 6:30pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/9 "2021-05-14T18:30:52Z")

</div>

I have used the calculator feature before to evaluate change in pressure, temperature, etc but I am not sure how to use it for the coordinates. Any guide for this step? I am sorry, I am new user of Paraview.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [May 14, 2021, 9:14pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/10 "2021-05-14T21:14:15Z")

</div>

Please look in the ParaView guide, chapter 9.1. You can find the ParaView guide through the Help menu.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [May 14, 2021, 9:35pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/11 "2021-05-14T21:35:39Z")

</div>

[https://docs.paraview.org/en/latest/UsersGuide/filteringData.html#filters-for-attribute-manipulation](https://docs.paraview.org/en/latest/UsersGuide/filteringData.html#filters-for-attribute-manipulation)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [May 14, 2021, 9:42pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/12 "2021-05-14T21:42:48Z")

</div>

Thanks Cory. I should have added the link.

---

<div class="post-metadata">

### Author: ![Refaat\_Galal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/refaat_galal/32/6660_2.png) [@Refaat\_Galal](https://discourse.paraview.org/u/Refaat_Galal)
#### Post date: [May 20, 2021, 5:17pm UTC](https://discourse.paraview.org/t/how-to-change-axis-in-surface-plot-from-cartesian-to-logarithmic/7227/13 "2021-05-20T17:17:51Z")

</div>

Dears all, following the guide lines in the manual, I find that I can evaluate new array of the logarithm of x, y, or z coordinates. I can’t find away to plot the data versus the evaluated array on surface plot. Attached is a surface plot of log10(coordsX) versus X.

 ![thumbnail_image](https://discourse.paraview.org/uploads/default/original/2X/8/89757c5b025ce678e95ba63c3d30cde8b932353f.png)
