Fill everything except a circle in the middle of the plot
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.
In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.
I have also tried to do it with fill between commands though i didn't get it to work.
MWE
documentclass[a4paper]scrartcl
usepackagetikz,pgfplots
usepgfplotslibraryfillbetween
usetikzlibraryintersections
usetikzlibrarybackgrounds
usepackagegraphicx
begindocument
begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=1.3linewidth,
xmin=-2,
xmax=2,
ymin=-2,
ymax=2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling]
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
tikz-pgf backgrounds circles
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.
In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.
I have also tried to do it with fill between commands though i didn't get it to work.
MWE
documentclass[a4paper]scrartcl
usepackagetikz,pgfplots
usepgfplotslibraryfillbetween
usetikzlibraryintersections
usetikzlibrarybackgrounds
usepackagegraphicx
begindocument
begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=1.3linewidth,
xmin=-2,
xmax=2,
ymin=-2,
ymax=2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling]
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
tikz-pgf backgrounds circles
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.
In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.
I have also tried to do it with fill between commands though i didn't get it to work.
MWE
documentclass[a4paper]scrartcl
usepackagetikz,pgfplots
usepgfplotslibraryfillbetween
usetikzlibraryintersections
usetikzlibrarybackgrounds
usepackagegraphicx
begindocument
begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=1.3linewidth,
xmin=-2,
xmax=2,
ymin=-2,
ymax=2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling]
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
tikz-pgf backgrounds circles
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed.
In the code you can see what i'm thinking about. The circle should be in the background though. Axis labels etc should be in the upper layer.
I have also tried to do it with fill between commands though i didn't get it to work.
MWE
documentclass[a4paper]scrartcl
usepackagetikz,pgfplots
usepgfplotslibraryfillbetween
usetikzlibraryintersections
usetikzlibrarybackgrounds
usepackagegraphicx
begindocument
begintikzpicture[background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=1.3linewidth,
xmin=-2,
xmax=2,
ymin=-2,
ymax=2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling]
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
tikz-pgf backgrounds circles
tikz-pgf backgrounds circles
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 hours ago
Luc
61
61
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Luc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
you mean something like this?
above image is obtain with use of the option axis on top
. in code is corrected the image width. now is not wide as width of text.
documentclass[a4paper]scrartcl
usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibraryfillbetween
usetikzlibrarybackgrounds,
intersections
begindocument
begintikzpicture[
background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=linewidth,
xmin=-2,
xmax= 2,
ymin=-2,
ymax= 2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling,
axis on top] % <---
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
you mean something like this?
above image is obtain with use of the option axis on top
. in code is corrected the image width. now is not wide as width of text.
documentclass[a4paper]scrartcl
usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibraryfillbetween
usetikzlibrarybackgrounds,
intersections
begindocument
begintikzpicture[
background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=linewidth,
xmin=-2,
xmax= 2,
ymin=-2,
ymax= 2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling,
axis on top] % <---
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
add a comment |Â
up vote
2
down vote
you mean something like this?
above image is obtain with use of the option axis on top
. in code is corrected the image width. now is not wide as width of text.
documentclass[a4paper]scrartcl
usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibraryfillbetween
usetikzlibrarybackgrounds,
intersections
begindocument
begintikzpicture[
background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=linewidth,
xmin=-2,
xmax= 2,
ymin=-2,
ymax= 2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling,
axis on top] % <---
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
you mean something like this?
above image is obtain with use of the option axis on top
. in code is corrected the image width. now is not wide as width of text.
documentclass[a4paper]scrartcl
usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibraryfillbetween
usetikzlibrarybackgrounds,
intersections
begindocument
begintikzpicture[
background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=linewidth,
xmin=-2,
xmax= 2,
ymin=-2,
ymax= 2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling,
axis on top] % <---
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
you mean something like this?
above image is obtain with use of the option axis on top
. in code is corrected the image width. now is not wide as width of text.
documentclass[a4paper]scrartcl
usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibraryfillbetween
usetikzlibrarybackgrounds,
intersections
begindocument
begintikzpicture[
background rectangle/.style=fill=gray!50, show background rectangle]
beginaxis[
width=linewidth,
xmin=-2,
xmax= 2,
ymin=-2,
ymax= 2,
axis equal,
axis lines=middle,
xlabel=Re($z$),
ylabel=Im($z$),
disabledatascaling,
axis on top] % <---
fill [white] (0,0) circle [radius=0.8];
endaxis
endtikzpicture
enddocument
answered 38 mins ago
Zarko
115k863152
115k863152
add a comment |Â
add a comment |Â
Luc is a new contributor. Be nice, and check out our Code of Conduct.
Luc is a new contributor. Be nice, and check out our Code of Conduct.
Luc is a new contributor. Be nice, and check out our Code of Conduct.
Luc 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456089%2ffill-everything-except-a-circle-in-the-middle-of-the-plot%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