Setting minor ticks with log scale axis PGFPlots Unicorn Meta Zoo #1: Why another podcast? ...
Jaya, Venerated Firemage + Chandra's Pyrohelix = 4 damage among two targets?
What is the term for a person whose job is to place products on shelves in stores?
How to keep bees out of canned beverages?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
Protagonist's race is hidden - should I reveal it?
How to not starve gigantic beasts
What to do with someone that cheated their way through university and a PhD program?
Approximating integral with small parameter
First instead of 1 when referencing
Why must Chinese maps be obfuscated?
"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?
What's the difference between using dependency injection with a container and using a service locator?
Implementing 3DES algorithm in Java: is my code secure?
Does Mathematica have an implementation of the Poisson binomial distribution?
Scheduling based problem
Why did C use the -> operator instead of reusing the . operator?
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
When do you need buffers/drivers on buses in a microprocessor design?
Is there any pythonic way to find average of specific tuple elements in array?
Crossed out red box fitting tightly around image
Could moose/elk survive in the Amazon forest?
As an international instructor, should I openly talk about my accent?
Is Diceware more secure than a long passphrase?
Israeli soda type drink
Setting minor ticks with log scale axis PGFPlots
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manaraplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingpgfplots log axis with only minor ticks/labelspgfplots: percentage in matrix plotCenter the axes in the coordinate origin
Consider this MWE:
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
I want x axis minor ticks to appear at
30,40,
60,70,80,90,
300,400,
600,700,800,900
2000,3000,4000,
How can I do this?
tikz-pgf pgfplots
New contributor
add a comment |
Consider this MWE:
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
I want x axis minor ticks to appear at
30,40,
60,70,80,90,
300,400,
600,700,800,900
2000,3000,4000,
How can I do this?
tikz-pgf pgfplots
New contributor
You could addextra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.
– marmot
5 mins ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago
add a comment |
Consider this MWE:
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
I want x axis minor ticks to appear at
30,40,
60,70,80,90,
300,400,
600,700,800,900
2000,3000,4000,
How can I do this?
tikz-pgf pgfplots
New contributor
Consider this MWE:
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
I want x axis minor ticks to appear at
30,40,
60,70,80,90,
300,400,
600,700,800,900
2000,3000,4000,
How can I do this?
tikz-pgf pgfplots
tikz-pgf pgfplots
New contributor
New contributor
New contributor
asked 14 mins ago
MikeMike
385
385
New contributor
New contributor
You could addextra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.
– marmot
5 mins ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago
add a comment |
You could addextra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.
– marmot
5 mins ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago
You could add
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.– marmot
5 mins ago
You could add
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.– marmot
5 mins ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago
add a comment |
1 Answer
1
active
oldest
votes
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000},
extra tick style={ticks=minor,xticklabel=empty}
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Mike is a new contributor. Be nice, and check out our Code of Conduct.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487562%2fsetting-minor-ticks-with-log-scale-axis-pgfplots%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000},
extra tick style={ticks=minor,xticklabel=empty}
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
add a comment |
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000},
extra tick style={ticks=minor,xticklabel=empty}
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
add a comment |
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000},
extra tick style={ticks=minor,xticklabel=empty}
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
documentclass[border=5mm]{standalone}
usepackage{tikz,pgfplots}
begin{document}
begin{tikzpicture}
begin{axis} [width=15cm,height=10cm,
xmode=log,
xmin=20, xmax=20000,
log ticks with fixed point,
xtick={20,50,100,200,500,1000,5000,10000,20000},
grid=both,
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000},
extra tick style={ticks=minor,xticklabel=empty}
]
addplot [
domain=20:20000,
samples=100,
]
{x};
end{axis}
end{tikzpicture}
end{document}
answered 2 mins ago
marmotmarmot
121k6158296
121k6158296
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
add a comment |
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
Thanks. But this seems to give way more ticks than I want? Also, there are extra grid lines which I don't want.
– Mike
35 secs ago
add a comment |
Mike is a new contributor. Be nice, and check out our Code of Conduct.
Mike is a new contributor. Be nice, and check out our Code of Conduct.
Mike is a new contributor. Be nice, and check out our Code of Conduct.
Mike is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487562%2fsetting-minor-ticks-with-log-scale-axis-pgfplots%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You could add
extra x ticks={30,40,60,70,80,90,300,400,600,700,800,900,2000,3000,4000}, extra tick style={grid=minor}
to the axis options but that makes the ticks very crowded.– marmot
5 mins ago
Thanks for the clarification! I added something that adds just the ticks.
– marmot
1 min ago