Undesirable grid appears when ParametricPlot is exported as PDF
Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
Writing:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2]
I get:
but if I write:
Export["test.pdf", plot]
I get:
How can I get the same image in test.pdf
?
plotting export pdf-format
 |Â
show 2 more comments
up vote
5
down vote
favorite
Writing:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2]
I get:
but if I write:
Export["test.pdf", plot]
I get:
How can I get the same image in test.pdf
?
plotting export pdf-format
1
How about this?plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
You can try Will Robertson'sFixPolygons
package for joining the polygons.
– Alexey Popkov
Aug 13 at 14:40
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
1
What's up withMin[1, 2] t
? Surely that can be replaced byt
alone? Or doesn't the problem reproduce then?
– Andreas Rejbrand
Aug 13 at 16:46
 |Â
show 2 more comments
up vote
5
down vote
favorite
up vote
5
down vote
favorite
Writing:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2]
I get:
but if I write:
Export["test.pdf", plot]
I get:
How can I get the same image in test.pdf
?
plotting export pdf-format
Writing:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2]
I get:
but if I write:
Export["test.pdf", plot]
I get:
How can I get the same image in test.pdf
?
plotting export pdf-format
edited Aug 13 at 15:25
Alexey Popkov
37.5k4102254
37.5k4102254
asked Aug 13 at 12:46
TeM
1,643618
1,643618
1
How about this?plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
You can try Will Robertson'sFixPolygons
package for joining the polygons.
– Alexey Popkov
Aug 13 at 14:40
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
1
What's up withMin[1, 2] t
? Surely that can be replaced byt
alone? Or doesn't the problem reproduce then?
– Andreas Rejbrand
Aug 13 at 16:46
 |Â
show 2 more comments
1
How about this?plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
You can try Will Robertson'sFixPolygons
package for joining the polygons.
– Alexey Popkov
Aug 13 at 14:40
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
1
What's up withMin[1, 2] t
? Surely that can be replaced byt
alone? Or doesn't the problem reproduce then?
– Andreas Rejbrand
Aug 13 at 16:46
1
1
How about this?
plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
How about this?
plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
You can try Will Robertson's
FixPolygons
package for joining the polygons.– Alexey Popkov
Aug 13 at 14:40
You can try Will Robertson's
FixPolygons
package for joining the polygons.– Alexey Popkov
Aug 13 at 14:40
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
1
1
What's up with
Min[1, 2] t
? Surely that can be replaced by t
alone? Or doesn't the problem reproduce then?– Andreas Rejbrand
Aug 13 at 16:46
What's up with
Min[1, 2] t
? Surely that can be replaced by t
alone? Or doesn't the problem reproduce then?– Andreas Rejbrand
Aug 13 at 16:46
 |Â
show 2 more comments
2 Answers
2
active
oldest
votes
up vote
6
down vote
accepted
UPDATE: See more general solution in this answer.
You can solve this problem by joining the polygons using undocumented function Graphics`PolygonUtils`PolygonCombine
:
plot = Normal@
ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2] /.
p : __Polygon :> Graphics`PolygonUtils`PolygonCombine[p];
Export["test.pdf", plot] // SystemOpen
Here is how the file is rendered by Adobe Acrobat:
(checked with version 11.1.0).
Perfect! Thanks!
– TeM
Aug 13 at 17:34
add a comment |Â
up vote
2
down vote
Another workaround is to remove transparency from the polygons by specifying the PlotStyle
explicitly:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2, Mesh -> None,
PlotStyle -> RGBColor[0.812, 0.851, 0.914, 1]]
Now the PDF
Export["test.pdf", %] // SystemOpen
is rendered as
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
UPDATE: See more general solution in this answer.
You can solve this problem by joining the polygons using undocumented function Graphics`PolygonUtils`PolygonCombine
:
plot = Normal@
ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2] /.
p : __Polygon :> Graphics`PolygonUtils`PolygonCombine[p];
Export["test.pdf", plot] // SystemOpen
Here is how the file is rendered by Adobe Acrobat:
(checked with version 11.1.0).
Perfect! Thanks!
– TeM
Aug 13 at 17:34
add a comment |Â
up vote
6
down vote
accepted
UPDATE: See more general solution in this answer.
You can solve this problem by joining the polygons using undocumented function Graphics`PolygonUtils`PolygonCombine
:
plot = Normal@
ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2] /.
p : __Polygon :> Graphics`PolygonUtils`PolygonCombine[p];
Export["test.pdf", plot] // SystemOpen
Here is how the file is rendered by Adobe Acrobat:
(checked with version 11.1.0).
Perfect! Thanks!
– TeM
Aug 13 at 17:34
add a comment |Â
up vote
6
down vote
accepted
up vote
6
down vote
accepted
UPDATE: See more general solution in this answer.
You can solve this problem by joining the polygons using undocumented function Graphics`PolygonUtils`PolygonCombine
:
plot = Normal@
ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2] /.
p : __Polygon :> Graphics`PolygonUtils`PolygonCombine[p];
Export["test.pdf", plot] // SystemOpen
Here is how the file is rendered by Adobe Acrobat:
(checked with version 11.1.0).
UPDATE: See more general solution in this answer.
You can solve this problem by joining the polygons using undocumented function Graphics`PolygonUtils`PolygonCombine
:
plot = Normal@
ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2] /.
p : __Polygon :> Graphics`PolygonUtils`PolygonCombine[p];
Export["test.pdf", plot] // SystemOpen
Here is how the file is rendered by Adobe Acrobat:
(checked with version 11.1.0).
edited Aug 14 at 8:45
answered Aug 13 at 15:13
Alexey Popkov
37.5k4102254
37.5k4102254
Perfect! Thanks!
– TeM
Aug 13 at 17:34
add a comment |Â
Perfect! Thanks!
– TeM
Aug 13 at 17:34
Perfect! Thanks!
– TeM
Aug 13 at 17:34
Perfect! Thanks!
– TeM
Aug 13 at 17:34
add a comment |Â
up vote
2
down vote
Another workaround is to remove transparency from the polygons by specifying the PlotStyle
explicitly:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2, Mesh -> None,
PlotStyle -> RGBColor[0.812, 0.851, 0.914, 1]]
Now the PDF
Export["test.pdf", %] // SystemOpen
is rendered as
add a comment |Â
up vote
2
down vote
Another workaround is to remove transparency from the polygons by specifying the PlotStyle
explicitly:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2, Mesh -> None,
PlotStyle -> RGBColor[0.812, 0.851, 0.914, 1]]
Now the PDF
Export["test.pdf", %] // SystemOpen
is rendered as
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Another workaround is to remove transparency from the polygons by specifying the PlotStyle
explicitly:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2, Mesh -> None,
PlotStyle -> RGBColor[0.812, 0.851, 0.914, 1]]
Now the PDF
Export["test.pdf", %] // SystemOpen
is rendered as
Another workaround is to remove transparency from the polygons by specifying the PlotStyle
explicitly:
plot = ParametricPlot[x, Min[1, 2] t, x, 0, 2, t, 0, 1,
PlotRange -> 0, 2, -1, 2, Mesh -> None,
PlotStyle -> RGBColor[0.812, 0.851, 0.914, 1]]
Now the PDF
Export["test.pdf", %] // SystemOpen
is rendered as
answered Aug 13 at 15:38
Alexey Popkov
37.5k4102254
37.5k4102254
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%2f179951%2fundesirable-grid-appears-when-parametricplot-is-exported-as-pdf%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
1
How about this?
plot = Plot[1, x, 0, 2, PlotRange -> 0, 2, -1, 2, Frame -> True, Filling -> Axis, AspectRatio -> 1.5,PlotStyle -> Thin]
– Okkes Dulgerci
Aug 13 at 13:43
Thanks, the result is the desired one, but I should use the parametric method. :(
– TeM
Aug 13 at 14:31
You can try Will Robertson's
FixPolygons
package for joining the polygons.– Alexey Popkov
Aug 13 at 14:40
Does this help? Avoiding white lines inside filled area in RegionPlot exported as PDF or PS
– Jens
Aug 13 at 14:53
1
What's up with
Min[1, 2] t
? Surely that can be replaced byt
alone? Or doesn't the problem reproduce then?– Andreas Rejbrand
Aug 13 at 16:46