0
$\begingroup$

[![enter image description here][1]][1] [1]: https://i.sstatic.net/VvStC.png Is there any way to make it show only one "AxesOrigin"(0.0) instead of two? Should I change the code of "FrameTicks"? thanks! here is my code:

\[Beta] = 0.9;
y1 = -(((-2 + \[Beta])^2 (-1 + \[Beta]^2))/(4 (4 - 3 \[Beta]^2)^2)) ;
y2 = ((-1 + \[Beta]) (-8 + (-6 + \[Beta]) \[Beta])^2 (-1 + \[Phi]))/(4 (1 + \[Beta]) (-8 + \[Beta]^2 (4 + \[Phi]))^2);
y3 = -(((-1 + \[Beta]^2) (-2 + \[Beta] + \[Beta] \[Phi])^2)/(-8 +\[Beta]^2 (6 + \[Phi]))^2);
y4 = ((-1 + \[Beta]) (-4 + (-2 + \[Beta]) \[Beta])^2 (-1 + \[Phi]))/(16 (1 + \[Beta]) (-2 + \[Beta]^2)^2); 
Plot[{y1,y2,y3,y4},{\[Phi],0,0.2},Frame->True,FrameLabel->{\[Phi],"Profit"},FrameStyle ->Directive[Black,Bold],LabelStyle -> Directive[Black,12,FontFamily->"Times New Roman"],FrameTicks->{{Range[0,1,0.2], 1, True}, {All, Automatic},SetPrecision[#, 2]},PlotRange -> {{0,0.2}, {0,0.5}},PlotStyle->{{Black, Dashed},{Hue[9/6], Bold,{Red,DotDashed}, {Blue, Dashing[Large]}}, AspectRatio -> 4/5,PlotRangePadding->None}]
$\endgroup$
2
  • $\begingroup$ by the way, I want it show "0" rather than (0.0) $\endgroup$ Commented May 2, 2020 at 2:26
  • $\begingroup$ your code does not run, lots of syntax errors $\endgroup$
    – Nasser
    Commented May 2, 2020 at 2:26

1 Answer 1

1
$\begingroup$

Since your code does not run (it has lots of syntax errors), I made one up

 Plot[1 - x, {x, 0, 1}, Frame -> True]

Mathematica graphics

To remove the zero on the y axis, one option would be

Plot[1 - x, {x, 0, 1}, Frame -> True, 
 FrameTicks -> {{Charting`ScaledTicks["Linear"][0.1, 1, {5, 5}], 
    None}, {Automatic, None}}]

Mathematica graphics

To remove the zero on the x axis

Plot[1 - x, {x, 0, 1}, Frame -> True, 
 FrameTicks -> {{Automatic, 
    None}, {Charting`ScaledTicks["Linear"][0.1, 1, {5, 5}], None}}]

Mathematica graphics

may be you can adopt this to your actual code.

$\endgroup$
1
  • $\begingroup$ Thanks ! I edit my question again and attach my code! $\endgroup$ Commented May 2, 2020 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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