1
$\begingroup$

I have the following equation in which the variable Q is raised to 1.85.

f(Q)= A*Q^1.85

A is known constant. For practical reasons I want to plot the above equation as this

f(X)=A*X where X=Q^1.85

That would be very easy but I want to have the x axis displaying the Q values not the Q^1.85 (or X). From what I could find myself, the solution could be using the 'func' as one of the options of 'Ticks', at least this is what I read here. But no matter how I much I searched, I couldn't find an example of properly introducing a function to plot the Q values instead of Q^1.85.

How could this be achieved?

$\endgroup$
0
$\begingroup$
A=1
f[Q_]:= A Q^1.85    

Plot[
f[Q],
{Q,0,10},
ScalingFunctions->{{#^1.85&,#^(1/1.85)&},"Linear"},  
Ticks-> {Range[0,10,1],Automatic},
AxesLabel->{"Q","f[Q]"}]

enter image description here

$\endgroup$
0
$\begingroup$

Like this?

qv = {4, 7, 3, 2, 6};

ListLinePlot[qv^1.85*2,
 Ticks -> {Transpose[{Range@Length@qv, qv}], Automatic}]

enter image description here

$\endgroup$
  • $\begingroup$ Not sure I get it. This seems to be based on a matrix (qv) but in my case I only need to apply the q^(1/1.85) to the axis. Do I really need to generate a matrix? $\endgroup$ – MJLM Jul 6 '17 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.