What is the difference between plotstyle=curve and plotpoints=1000?
up vote
5
down vote
favorite
The first code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
% plotstyle=curve,
plotpoints=1000, <<-- notice
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The second code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
plotstyle=curve,
%plotpoints=1000,
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The result of compiling is frustrating.
- What is the difference between them?
- Can you fix the picture to make it become equal?
pstricks pst-plot
add a comment |
up vote
5
down vote
favorite
The first code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
% plotstyle=curve,
plotpoints=1000, <<-- notice
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The second code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
plotstyle=curve,
%plotpoints=1000,
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The result of compiling is frustrating.
- What is the difference between them?
- Can you fix the picture to make it become equal?
pstricks pst-plot
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
The first code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
% plotstyle=curve,
plotpoints=1000, <<-- notice
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The second code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
plotstyle=curve,
%plotpoints=1000,
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The result of compiling is frustrating.
- What is the difference between them?
- Can you fix the picture to make it become equal?
pstricks pst-plot
The first code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
% plotstyle=curve,
plotpoints=1000, <<-- notice
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The second code:
documentclass[pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psplot[ algebraic,
plotstyle=curve,
%plotpoints=1000,
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
The result of compiling is frustrating.
- What is the difference between them?
- Can you fix the picture to make it become equal?
pstricks pst-plot
pstricks pst-plot
edited Dec 1 at 13:57
Herbert
266k23405716
266k23405716
asked Dec 1 at 11:23
chishimotoji
382212
382212
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
The best way to explain is showing the animations, right?
With curve
plotstyle
It needs at least 3 points. When N=2
there is no graph.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=curve](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
With line
plotstyle
It needs at least 2 points.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=line](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
Final output
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
begin{pspicture}[algebraic](-.5,-.6)(4,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3.5,3.5)[$x$,0][$y$,90]
psplot[linecolor=red]{0}{xl}{m}
psplot[linecolor=red]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
My best practices
- Split the graph into two or more invocation of
psplot
when there are discontinuities in a single plot. - Increasing
plotpoints
blindly will waste more storage because the size of PDF (or SVG) increases as well. - You don't need to change
plotstyle
most of the time.
Explanation
defxl{3 -1.5 exp neg 1 add}
is the value ofxl<1
such thatf(xl)=3
.defxr{3 -1.5 exp 1 add}
is the value ofxr>1
such thatf(xr)=3
.plotstyle
represents the type of curves is used to connect points.
plotpoints
represents the number of points used to draw the curve.
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
add a comment |
up vote
2
down vote
documentclass[pstricks]{standalone}
usepackage{pst-plot}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psclip{psframe[linestyle=none](3,3)}
psplot[ algebraic,linewidth=1.5pt,linecolor=red]{0}{3}{1/((x-1)^2)^(1/3)}
endpsclip
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With settingyMaxValue
you have an internalif y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. Withplotpoints=5000
they are also nearly the same.
– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
orbezier
only for curves with continuous bends and plotpoints > 100.plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.
– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
|
show 3 more comments
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
The best way to explain is showing the animations, right?
With curve
plotstyle
It needs at least 3 points. When N=2
there is no graph.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=curve](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
With line
plotstyle
It needs at least 2 points.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=line](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
Final output
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
begin{pspicture}[algebraic](-.5,-.6)(4,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3.5,3.5)[$x$,0][$y$,90]
psplot[linecolor=red]{0}{xl}{m}
psplot[linecolor=red]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
My best practices
- Split the graph into two or more invocation of
psplot
when there are discontinuities in a single plot. - Increasing
plotpoints
blindly will waste more storage because the size of PDF (or SVG) increases as well. - You don't need to change
plotstyle
most of the time.
Explanation
defxl{3 -1.5 exp neg 1 add}
is the value ofxl<1
such thatf(xl)=3
.defxr{3 -1.5 exp 1 add}
is the value ofxr>1
such thatf(xr)=3
.plotstyle
represents the type of curves is used to connect points.
plotpoints
represents the number of points used to draw the curve.
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
add a comment |
up vote
3
down vote
accepted
The best way to explain is showing the animations, right?
With curve
plotstyle
It needs at least 3 points. When N=2
there is no graph.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=curve](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
With line
plotstyle
It needs at least 2 points.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=line](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
Final output
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
begin{pspicture}[algebraic](-.5,-.6)(4,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3.5,3.5)[$x$,0][$y$,90]
psplot[linecolor=red]{0}{xl}{m}
psplot[linecolor=red]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
My best practices
- Split the graph into two or more invocation of
psplot
when there are discontinuities in a single plot. - Increasing
plotpoints
blindly will waste more storage because the size of PDF (or SVG) increases as well. - You don't need to change
plotstyle
most of the time.
Explanation
defxl{3 -1.5 exp neg 1 add}
is the value ofxl<1
such thatf(xl)=3
.defxr{3 -1.5 exp 1 add}
is the value ofxr>1
such thatf(xr)=3
.plotstyle
represents the type of curves is used to connect points.
plotpoints
represents the number of points used to draw the curve.
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
The best way to explain is showing the animations, right?
With curve
plotstyle
It needs at least 3 points. When N=2
there is no graph.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=curve](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
With line
plotstyle
It needs at least 2 points.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=line](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
Final output
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
begin{pspicture}[algebraic](-.5,-.6)(4,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3.5,3.5)[$x$,0][$y$,90]
psplot[linecolor=red]{0}{xl}{m}
psplot[linecolor=red]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
My best practices
- Split the graph into two or more invocation of
psplot
when there are discontinuities in a single plot. - Increasing
plotpoints
blindly will waste more storage because the size of PDF (or SVG) increases as well. - You don't need to change
plotstyle
most of the time.
Explanation
defxl{3 -1.5 exp neg 1 add}
is the value ofxl<1
such thatf(xl)=3
.defxr{3 -1.5 exp 1 add}
is the value ofxr>1
such thatf(xr)=3
.plotstyle
represents the type of curves is used to connect points.
plotpoints
represents the number of points used to draw the curve.
The best way to explain is showing the animations, right?
With curve
plotstyle
It needs at least 3 points. When N=2
there is no graph.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=curve](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
With line
plotstyle
It needs at least 2 points.
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
multido{i=2+1}{20}{%
begin{pspicture}[algebraic,showpoints,plotstyle=line](-1,-1)(3.5,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3.5)[$x$,-90][$y$,0]
psplot[linecolor=red,plotpoints=i]{0}{xl}{m}
psplot[linecolor=red,plotpoints=i]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
rput[t](2,3){$N=i$}
end{pspicture}}
end{document}
Final output
documentclass[12pt,pstricks]{standalone}
usepackage{pst-plot}
defm{1/((x-1)^2)^(1/3)}
defxl{3 -1.5 exp neg 1 add}
defxr{3 -1.5 exp 1 add}
begin{document}
begin{pspicture}[algebraic](-.5,-.6)(4,4)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3.5,3.5)[$x$,0][$y$,90]
psplot[linecolor=red]{0}{xl}{m}
psplot[linecolor=red]{xr}{3}{m}
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
My best practices
- Split the graph into two or more invocation of
psplot
when there are discontinuities in a single plot. - Increasing
plotpoints
blindly will waste more storage because the size of PDF (or SVG) increases as well. - You don't need to change
plotstyle
most of the time.
Explanation
defxl{3 -1.5 exp neg 1 add}
is the value ofxl<1
such thatf(xl)=3
.defxr{3 -1.5 exp 1 add}
is the value ofxr>1
such thatf(xr)=3
.plotstyle
represents the type of curves is used to connect points.
plotpoints
represents the number of points used to draw the curve.
edited Dec 1 at 14:11
answered Dec 1 at 12:03
Artificial Stupidity
4,43111038
4,43111038
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
add a comment |
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
1
1
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
Many compliments too for the animations.
– Sebastiano
Dec 1 at 13:02
add a comment |
up vote
2
down vote
documentclass[pstricks]{standalone}
usepackage{pst-plot}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psclip{psframe[linestyle=none](3,3)}
psplot[ algebraic,linewidth=1.5pt,linecolor=red]{0}{3}{1/((x-1)^2)^(1/3)}
endpsclip
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With settingyMaxValue
you have an internalif y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. Withplotpoints=5000
they are also nearly the same.
– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
orbezier
only for curves with continuous bends and plotpoints > 100.plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.
– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
|
show 3 more comments
up vote
2
down vote
documentclass[pstricks]{standalone}
usepackage{pst-plot}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psclip{psframe[linestyle=none](3,3)}
psplot[ algebraic,linewidth=1.5pt,linecolor=red]{0}{3}{1/((x-1)^2)^(1/3)}
endpsclip
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With settingyMaxValue
you have an internalif y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. Withplotpoints=5000
they are also nearly the same.
– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
orbezier
only for curves with continuous bends and plotpoints > 100.plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.
– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
|
show 3 more comments
up vote
2
down vote
up vote
2
down vote
documentclass[pstricks]{standalone}
usepackage{pst-plot}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psclip{psframe[linestyle=none](3,3)}
psplot[ algebraic,linewidth=1.5pt,linecolor=red]{0}{3}{1/((x-1)^2)^(1/3)}
endpsclip
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
documentclass[pstricks]{standalone}
usepackage{pst-plot}
begin{document}
begin{pspicture}(-1,-1)(3.5,3.5)
psaxes[labelFontSize=scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
psclip{psframe[linestyle=none](3,3)}
psplot[ algebraic,linewidth=1.5pt,linecolor=red]{0}{3}{1/((x-1)^2)^(1/3)}
endpsclip
psline[linestyle=dashed](1,0)(1,3)
end{pspicture}
end{document}
answered Dec 1 at 14:01
Herbert
266k23405716
266k23405716
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With settingyMaxValue
you have an internalif y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. Withplotpoints=5000
they are also nearly the same.
– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
orbezier
only for curves with continuous bends and plotpoints > 100.plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.
– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
|
show 3 more comments
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With settingyMaxValue
you have an internalif y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. Withplotpoints=5000
they are also nearly the same.
– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
orbezier
only for curves with continuous bends and plotpoints > 100.plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.
– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
Can you explain the difference between them (my title) to me ? Herbert !
– chishimotoji
Dec 1 at 14:04
All curves are plotted by connecting points. With setting
yMaxValue
you have an internal if y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. With plotpoints=5000
they are also nearly the same.– Herbert
Dec 1 at 14:10
All curves are plotted by connecting points. With setting
yMaxValue
you have an internal if y > yMaxValue then do not plot
. It depends to the number of points how near do you get with the calculated point to the maximal value. With clipping you have exactly the same y value. With plotpoints=5000
they are also nearly the same.– Herbert
Dec 1 at 14:10
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
So, when should we use plotstyle replace plotpoints and opposite?
– chishimotoji
Dec 1 at 14:16
plotstyle=curve
or bezier
only for curves with continuous bends and plotpoints > 100. plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.– Herbert
Dec 1 at 14:20
plotstyle=curve
or bezier
only for curves with continuous bends and plotpoints > 100. plotstyle=line
for a lot of plotpoints and a curve which has not too big slopes. Howver, for plotpoints > 1000 it doesn't really matter which plotstyle do you use.– Herbert
Dec 1 at 14:20
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
Why we use plotpoints > 500 will make file size bigger than plotstyle?
– chishimotoji
Dec 1 at 14:31
|
show 3 more comments
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f462674%2fwhat-is-the-difference-between-plotstyle-curve-and-plotpoints-1000%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