Skip to content
Advertisement

Show better representation of small values of 2D plot

I am trying to make a 2D plot of a function 1/(xy) but the y values vary from 3 orders of magnitude which makes the graph look unreadable. On top of that, I am trying to emphasize the small values of 1/(xy) i.e. when x and y are big.

Here is my linear attempt:

JavaScript

You see two points on both extremes but from this graph one cannot really gauge the different. So I tried log scaling the y axis:

JavaScript

But it still doesn’t give readable results. Most importantly it seems anything below a certain value is deemed zero hence the entire dark purple area. But this area and the changes here are what I want to see most. It seems the drastic changes to 1/(smallnumber*smallnumber) are changing the possibility of seeing good results.

Any insight is appreciated.

Advertisement

Answer

I worked on this and this gave me the best results:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement