Where are wrong in `xmin` and `xmax` of this code? Announcing the arrival of Valued Associate...
In musical terms, what properties are varied by the human voice to produce different words / syllables?
What order were files/directories output in dir?
What's the meaning of "fortified infraction restraint"?
Google .dev domain strangely redirects to https
How often does castling occur in grandmaster games?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
Most bit efficient text communication method?
If the probability of a dog barking one or more times in a given hour is 84%, then what is the probability of a dog barking in 30 minutes?
How long can equipment go unused before powering up runs the risk of damage?
Maximum summed subsequences with non-adjacent items
Trademark violation for app?
Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?
Is there public access to the Meteor Crater in Arizona?
Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?
Amount of permutations on an NxNxN Rubik's Cube
Sum letters are not two different
How does Belgium enforce obligatory attendance in elections?
Deconstruction is ambiguous
Putting class ranking in CV, but against dept guidelines
Girl Hackers - Logic Puzzle
Why weren't discrete x86 CPUs ever used in game hardware?
What would you call this weird metallic apparatus that allows you to lift people?
What does 丫 mean? 丫是什么意思?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Where are wrong in `xmin` and `xmax` of this code?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)plotting two time series with boundsExternally set ymin, ymax, xmin and xmax with pgfplotsetHow do i get the x axis on top but keep a line on the bottomAutomatically get (ymin,ymax) and (xmin,xmax) in pgfplotsHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?pgfplots ignores xmin/xmax with 'axis equal' optionAppropriate values for `xmin`, `xmax`, `ymin`, `ymax`, or `unit vector ratio={a b}` to get asymptotepgfplots: percentage in matrix plotCenter the axes in the coordinate originDateplot doesn't work if xmin/xmax are specified
In following code, I used xmin=-2.5, xmax=4.2
, but the output got incorrect result. How can I repair?
documentclass[tikz,12pt]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepackage{fouriernc}
begin{document}
begin{tikzpicture}[
declare function={
f(x)=(1/2)*x^3+3/2*(x^2)-4;
g(x)= -2*x^2+8*x-2;
}
]
begin{axis}[axis equal,
width=10cm,
grid=major,
axis x line=middle, axis y line=middle,
axis line style = very thick,
grid style={gray!30},
ymin=-5, ymax=7, yticklabels={}, ylabel=$y$,
xmin=-2.5, xmax=4.2, xticklabels={}, xlabel=$x$,
samples=500,
]
addplot[blue, very thick,domain=-3:2, smooth]{f(x)};
addplot[blue, very thick,domain=2:4, smooth]{g(x)};
% node[below left] at (-3, 0) {$-3$};
node[above] at (-2, 0) {$-2$};
%node[left,below] at (-1, 0) {$-1$};
node[below left] at ( 0,-4) {$-4$};
node[below left ] at ( 0,-2) {$-2$};
%node[above ] at (1,0) {$1$};
node[ left ] at (0,6) {$6$};
node[below right] at (0, 0) {$O$};
node[above] at (4, 0) {$4$};
node[below] at (2, 0) {$2$};
%node[left ] at (0, -2) {$-2$};
%addplot [mark=*,only marks,samples at={-1,1,0}] {f(x)};
;
draw[dashed, thick] (2,0) -- (2,6) -- (0,6)
(-2,0) -- (-2,-2) -- (4,-2) -- (4,0)
;
end{axis}
end{tikzpicture}
end{document}
pgfplots
add a comment |
In following code, I used xmin=-2.5, xmax=4.2
, but the output got incorrect result. How can I repair?
documentclass[tikz,12pt]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepackage{fouriernc}
begin{document}
begin{tikzpicture}[
declare function={
f(x)=(1/2)*x^3+3/2*(x^2)-4;
g(x)= -2*x^2+8*x-2;
}
]
begin{axis}[axis equal,
width=10cm,
grid=major,
axis x line=middle, axis y line=middle,
axis line style = very thick,
grid style={gray!30},
ymin=-5, ymax=7, yticklabels={}, ylabel=$y$,
xmin=-2.5, xmax=4.2, xticklabels={}, xlabel=$x$,
samples=500,
]
addplot[blue, very thick,domain=-3:2, smooth]{f(x)};
addplot[blue, very thick,domain=2:4, smooth]{g(x)};
% node[below left] at (-3, 0) {$-3$};
node[above] at (-2, 0) {$-2$};
%node[left,below] at (-1, 0) {$-1$};
node[below left] at ( 0,-4) {$-4$};
node[below left ] at ( 0,-2) {$-2$};
%node[above ] at (1,0) {$1$};
node[ left ] at (0,6) {$6$};
node[below right] at (0, 0) {$O$};
node[above] at (4, 0) {$4$};
node[below] at (2, 0) {$2$};
%node[left ] at (0, -2) {$-2$};
%addplot [mark=*,only marks,samples at={-1,1,0}] {f(x)};
;
draw[dashed, thick] (2,0) -- (2,6) -- (0,6)
(-2,0) -- (-2,-2) -- (4,-2) -- (4,0)
;
end{axis}
end{tikzpicture}
end{document}
pgfplots
add a comment |
In following code, I used xmin=-2.5, xmax=4.2
, but the output got incorrect result. How can I repair?
documentclass[tikz,12pt]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepackage{fouriernc}
begin{document}
begin{tikzpicture}[
declare function={
f(x)=(1/2)*x^3+3/2*(x^2)-4;
g(x)= -2*x^2+8*x-2;
}
]
begin{axis}[axis equal,
width=10cm,
grid=major,
axis x line=middle, axis y line=middle,
axis line style = very thick,
grid style={gray!30},
ymin=-5, ymax=7, yticklabels={}, ylabel=$y$,
xmin=-2.5, xmax=4.2, xticklabels={}, xlabel=$x$,
samples=500,
]
addplot[blue, very thick,domain=-3:2, smooth]{f(x)};
addplot[blue, very thick,domain=2:4, smooth]{g(x)};
% node[below left] at (-3, 0) {$-3$};
node[above] at (-2, 0) {$-2$};
%node[left,below] at (-1, 0) {$-1$};
node[below left] at ( 0,-4) {$-4$};
node[below left ] at ( 0,-2) {$-2$};
%node[above ] at (1,0) {$1$};
node[ left ] at (0,6) {$6$};
node[below right] at (0, 0) {$O$};
node[above] at (4, 0) {$4$};
node[below] at (2, 0) {$2$};
%node[left ] at (0, -2) {$-2$};
%addplot [mark=*,only marks,samples at={-1,1,0}] {f(x)};
;
draw[dashed, thick] (2,0) -- (2,6) -- (0,6)
(-2,0) -- (-2,-2) -- (4,-2) -- (4,0)
;
end{axis}
end{tikzpicture}
end{document}
pgfplots
In following code, I used xmin=-2.5, xmax=4.2
, but the output got incorrect result. How can I repair?
documentclass[tikz,12pt]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepackage{fouriernc}
begin{document}
begin{tikzpicture}[
declare function={
f(x)=(1/2)*x^3+3/2*(x^2)-4;
g(x)= -2*x^2+8*x-2;
}
]
begin{axis}[axis equal,
width=10cm,
grid=major,
axis x line=middle, axis y line=middle,
axis line style = very thick,
grid style={gray!30},
ymin=-5, ymax=7, yticklabels={}, ylabel=$y$,
xmin=-2.5, xmax=4.2, xticklabels={}, xlabel=$x$,
samples=500,
]
addplot[blue, very thick,domain=-3:2, smooth]{f(x)};
addplot[blue, very thick,domain=2:4, smooth]{g(x)};
% node[below left] at (-3, 0) {$-3$};
node[above] at (-2, 0) {$-2$};
%node[left,below] at (-1, 0) {$-1$};
node[below left] at ( 0,-4) {$-4$};
node[below left ] at ( 0,-2) {$-2$};
%node[above ] at (1,0) {$1$};
node[ left ] at (0,6) {$6$};
node[below right] at (0, 0) {$O$};
node[above] at (4, 0) {$4$};
node[below] at (2, 0) {$2$};
%node[left ] at (0, -2) {$-2$};
%addplot [mark=*,only marks,samples at={-1,1,0}] {f(x)};
;
draw[dashed, thick] (2,0) -- (2,6) -- (0,6)
(-2,0) -- (-2,-2) -- (4,-2) -- (4,0)
;
end{axis}
end{tikzpicture}
end{document}
pgfplots
pgfplots
asked 11 mins ago
minhthien_2016minhthien_2016
1,4791917
1,4791917
add a comment |
add a comment |
0
active
oldest
votes
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
});
}
});
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%2f485702%2fwhere-are-wrong-in-xmin-and-xmax-of-this-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f485702%2fwhere-are-wrong-in-xmin-and-xmax-of-this-code%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