I want to make a plot with two x-axes, one on the bottom and another on the top, where the variables are different but the function is the same. For instance, let f = y(a,b). How can I have in the same plot y(a) and y(b), where a is running on the bottom x-axis and b is running on the top x-axis?
I saw a similar problem in How to add second, linearly rescaled X-axis on the top frame? , however, I thought it only works for tables.
