Where are wrong in `xmin` and `xmax` of this code? Announcing the arrival of Valued Associate...
Amount of permutations on an NxNxN Rubik's Cube
Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?
What is an "asse" in Elizabethan English?
How many time has Arya actually used Needle?
Is CEO the "profession" with the most psychopaths?
Getting prompted for verification code but where do I put it in?
How could we fake a moon landing now?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
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?
Are sorcerers unable to use the Careful Spell metamagic option on themselves?
What does 丫 mean? 丫是什么意思?
macOS: Name for app shortcut screen found by pinching with thumb and three fingers
Is there any word for a place full of confusion?
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
AppleTVs create a chatty alternate WiFi network
Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode
What does it mean that physics no longer uses mechanical models to describe phenomena?
A term for a woman complaining about things/begging in a cute/childish way
Semigroups with no morphisms between them
Girl Hackers - Logic Puzzle
How often does castling occur in grandmaster games?
Crossing US/Canada Border for less than 24 hours
Why are my pictures showing a dark band on one edge?
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 5 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