Own markers on the axis of the plot
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
Could you please tell me how to make the ticks on the axes not in the numeric form (say, 0, 0.1, 0.2) but in symbolic form (say, "zero", "zero point one" and so on), in the plot command?
plotting syntax
add a comment |Â
up vote
3
down vote
favorite
Could you please tell me how to make the ticks on the axes not in the numeric form (say, 0, 0.1, 0.2) but in symbolic form (say, "zero", "zero point one" and so on), in the plot command?
plotting syntax
How would you like0.325
be rendered?
– J. M. is somewhat okay.♦
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
1
Like the $x$-axis onWith[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?
– J. M. is somewhat okay.♦
4 hours ago
1
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Could you please tell me how to make the ticks on the axes not in the numeric form (say, 0, 0.1, 0.2) but in symbolic form (say, "zero", "zero point one" and so on), in the plot command?
plotting syntax
Could you please tell me how to make the ticks on the axes not in the numeric form (say, 0, 0.1, 0.2) but in symbolic form (say, "zero", "zero point one" and so on), in the plot command?
plotting syntax
plotting syntax
asked 5 hours ago
John Taylor
579211
579211
How would you like0.325
be rendered?
– J. M. is somewhat okay.♦
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
1
Like the $x$-axis onWith[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?
– J. M. is somewhat okay.♦
4 hours ago
1
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago
add a comment |Â
How would you like0.325
be rendered?
– J. M. is somewhat okay.♦
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
1
Like the $x$-axis onWith[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?
– J. M. is somewhat okay.♦
4 hours ago
1
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago
How would you like
0.325
be rendered?– J. M. is somewhat okay.♦
4 hours ago
How would you like
0.325
be rendered?– J. M. is somewhat okay.♦
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
1
1
Like the $x$-axis on
With[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?– J. M. is somewhat okay.♦
4 hours ago
Like the $x$-axis on
With[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?– J. M. is somewhat okay.♦
4 hours ago
1
1
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
Since I have not posted any answer for a very long time,
num = Range[5]
lab = Table[StringForm["!(*SubscriptBox[(x), (``)])", i], i, num]
tick = Transpose[num, lab]
Plot[x, x, 1, 5, Ticks -> tick, Automatic]
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Since I have not posted any answer for a very long time,
num = Range[5]
lab = Table[StringForm["!(*SubscriptBox[(x), (``)])", i], i, num]
tick = Transpose[num, lab]
Plot[x, x, 1, 5, Ticks -> tick, Automatic]
add a comment |Â
up vote
4
down vote
accepted
Since I have not posted any answer for a very long time,
num = Range[5]
lab = Table[StringForm["!(*SubscriptBox[(x), (``)])", i], i, num]
tick = Transpose[num, lab]
Plot[x, x, 1, 5, Ticks -> tick, Automatic]
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Since I have not posted any answer for a very long time,
num = Range[5]
lab = Table[StringForm["!(*SubscriptBox[(x), (``)])", i], i, num]
tick = Transpose[num, lab]
Plot[x, x, 1, 5, Ticks -> tick, Automatic]
Since I have not posted any answer for a very long time,
num = Range[5]
lab = Table[StringForm["!(*SubscriptBox[(x), (``)])", i], i, num]
tick = Transpose[num, lab]
Plot[x, x, 1, 5, Ticks -> tick, Automatic]
answered 50 mins ago


Sumit
11.4k21854
11.4k21854
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183166%2fown-markers-on-the-axis-of-the-plot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
How would you like
0.325
be rendered?– J. M. is somewhat okay.♦
4 hours ago
@J.M.issomewhatokay. : actually instead of numbers I want the symbolic quantities like $x_0, x_1$, so my question should be rephrased: I want to associate some of the numbers with corresponding symbols, say 0.325->$x_0$, and then to show these symbols on axis instead of the corresponding numbers. I am sorry for unclear formulations.
– John Taylor
4 hours ago
1
Like the $x$-axis on
With[t = À Range[0, 3, 1/3], Plot[Sin[x], x, 0, 3 À, Ticks -> Transpose[t, t], Automatic]]
?– J. M. is somewhat okay.♦
4 hours ago
1
@John Taylor Please have a look at the Menu/Help/WolframDocumentation/Ticks/Scope/TicksPositions and Labeling and there the last example shows exactly what you need.
– Alexei Boulbitch
4 hours ago