PGFPlots: Background color for polar plot
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I would like to draw a so called "skyplot" in PGFPlots. Skyplots display satellites with their positions over the visible sky. In addition, I would like to draw a background for some specific disturbances. Eventually it should look like this:
Creating the coordinate system and placing the satellites worked like a charm with PGFPlots' polaraxis:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endtikzpicture
enddocument
This results in this diagram:
However, I cannot find a way to display the background colors. I developed an application which calculates the satellite positions and the background, this is how I created the figure. Now I would like to extend this application to generate tikz/pgf code for publication in TeX. The color data for the background is available as some kind of image, so an rectangular array of pixels with specific colors. However, as this data relies on a cartesian axis, I cannot plot it directly in the polaraxis environment.
How can I create such a colored background in PGFPlots polaraxis environment?
Thank you very much.
tikz-pgf pgfplots polarplot
New contributor
BigMick 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
6
down vote
favorite
I would like to draw a so called "skyplot" in PGFPlots. Skyplots display satellites with their positions over the visible sky. In addition, I would like to draw a background for some specific disturbances. Eventually it should look like this:
Creating the coordinate system and placing the satellites worked like a charm with PGFPlots' polaraxis:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endtikzpicture
enddocument
This results in this diagram:
However, I cannot find a way to display the background colors. I developed an application which calculates the satellite positions and the background, this is how I created the figure. Now I would like to extend this application to generate tikz/pgf code for publication in TeX. The color data for the background is available as some kind of image, so an rectangular array of pixels with specific colors. However, as this data relies on a cartesian axis, I cannot plot it directly in the polaraxis environment.
How can I create such a colored background in PGFPlots polaraxis environment?
Thank you very much.
tikz-pgf pgfplots polarplot
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I would like to draw a so called "skyplot" in PGFPlots. Skyplots display satellites with their positions over the visible sky. In addition, I would like to draw a background for some specific disturbances. Eventually it should look like this:
Creating the coordinate system and placing the satellites worked like a charm with PGFPlots' polaraxis:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endtikzpicture
enddocument
This results in this diagram:
However, I cannot find a way to display the background colors. I developed an application which calculates the satellite positions and the background, this is how I created the figure. Now I would like to extend this application to generate tikz/pgf code for publication in TeX. The color data for the background is available as some kind of image, so an rectangular array of pixels with specific colors. However, as this data relies on a cartesian axis, I cannot plot it directly in the polaraxis environment.
How can I create such a colored background in PGFPlots polaraxis environment?
Thank you very much.
tikz-pgf pgfplots polarplot
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I would like to draw a so called "skyplot" in PGFPlots. Skyplots display satellites with their positions over the visible sky. In addition, I would like to draw a background for some specific disturbances. Eventually it should look like this:
Creating the coordinate system and placing the satellites worked like a charm with PGFPlots' polaraxis:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endtikzpicture
enddocument
This results in this diagram:
However, I cannot find a way to display the background colors. I developed an application which calculates the satellite positions and the background, this is how I created the figure. Now I would like to extend this application to generate tikz/pgf code for publication in TeX. The color data for the background is available as some kind of image, so an rectangular array of pixels with specific colors. However, as this data relies on a cartesian axis, I cannot plot it directly in the polaraxis environment.
How can I create such a colored background in PGFPlots polaraxis environment?
Thank you very much.
tikz-pgf pgfplots polarplot
tikz-pgf pgfplots polarplot
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
BigMick 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
BigMick
312
312
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
BigMick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago
add a comment |Â
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
This is a way that can be adjusted in colors and the "blur" by you:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
definecolorSKY_ColorRGB0, 157, 210
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
endpolaraxis
clip (5.27,5.27) circle (5.25);
fill[SKY_Color] (5.3,5.3) circle (5.3);
fill[yellow,rotate=-30, shift=(70:10)] (1.6,-2) ellipse (4 and 6);
draw[yellow!85!SKY_Color,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.08 and 6.08);
draw[SKY_Color!70!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.2 and 6.2);
draw[SKY_Color!80!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.3 and 6.3);
beginscope
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endscope
endtikzpicture
enddocument
Output:
PS: I used a filled circle with your center, an ellipse with an appropriate color, center/rotation, some ellipses for "bluring" and cliped the image with a circle using your center and an appropriate radius.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
This is a way that can be adjusted in colors and the "blur" by you:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
definecolorSKY_ColorRGB0, 157, 210
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
endpolaraxis
clip (5.27,5.27) circle (5.25);
fill[SKY_Color] (5.3,5.3) circle (5.3);
fill[yellow,rotate=-30, shift=(70:10)] (1.6,-2) ellipse (4 and 6);
draw[yellow!85!SKY_Color,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.08 and 6.08);
draw[SKY_Color!70!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.2 and 6.2);
draw[SKY_Color!80!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.3 and 6.3);
beginscope
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endscope
endtikzpicture
enddocument
Output:
PS: I used a filled circle with your center, an ellipse with an appropriate color, center/rotation, some ellipses for "bluring" and cliped the image with a circle using your center and an appropriate radius.
add a comment |Â
up vote
3
down vote
This is a way that can be adjusted in colors and the "blur" by you:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
definecolorSKY_ColorRGB0, 157, 210
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
endpolaraxis
clip (5.27,5.27) circle (5.25);
fill[SKY_Color] (5.3,5.3) circle (5.3);
fill[yellow,rotate=-30, shift=(70:10)] (1.6,-2) ellipse (4 and 6);
draw[yellow!85!SKY_Color,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.08 and 6.08);
draw[SKY_Color!70!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.2 and 6.2);
draw[SKY_Color!80!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.3 and 6.3);
beginscope
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endscope
endtikzpicture
enddocument
Output:
PS: I used a filled circle with your center, an ellipse with an appropriate color, center/rotation, some ellipses for "bluring" and cliped the image with a circle using your center and an appropriate radius.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
This is a way that can be adjusted in colors and the "blur" by you:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
definecolorSKY_ColorRGB0, 157, 210
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
endpolaraxis
clip (5.27,5.27) circle (5.25);
fill[SKY_Color] (5.3,5.3) circle (5.3);
fill[yellow,rotate=-30, shift=(70:10)] (1.6,-2) ellipse (4 and 6);
draw[yellow!85!SKY_Color,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.08 and 6.08);
draw[SKY_Color!70!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.2 and 6.2);
draw[SKY_Color!80!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.3 and 6.3);
beginscope
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endscope
endtikzpicture
enddocument
Output:
PS: I used a filled circle with your center, an ellipse with an appropriate color, center/rotation, some ellipses for "bluring" and cliped the image with a circle using your center and an appropriate radius.
This is a way that can be adjusted in colors and the "blur" by you:
documentclassstandalone
usepackagepgfplots
usepackagetikz
pgfplotssetcompat=1.13
usepgfplotslibrarypolar
newlengthfigureheight
newlengthfigurewidth
definecolorGPS_ColorRGB0, 187, 0
definecolorGLO_ColorRGB196, 163, 0
definecolorGAL_ColorRGB0, 140, 190
definecolorBDS_ColorRGB196, 0, 0
definecolorSKY_ColorRGB0, 157, 210
begindocument
scriptsize
setlengthfigureheighttextwidth
setlengthfigurewidthtextwidth
begintikzpicture
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
endpolaraxis
clip (5.27,5.27) circle (5.25);
fill[SKY_Color] (5.3,5.3) circle (5.3);
fill[yellow,rotate=-30, shift=(70:10)] (1.6,-2) ellipse (4 and 6);
draw[yellow!85!SKY_Color,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.08 and 6.08);
draw[SKY_Color!70!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.2 and 6.2);
draw[SKY_Color!80!yellow,line width=0.2cm,rotate=-30,shift=(70:10)] (1.6,-2) ellipse (4.3 and 6.3);
beginscope
beginpolaraxis[
width=figurewidth,
height=figureheight,
rotate=-90,
axis lines*=none,
axis line style = draw=transparent,line width=0.0001pt,
x dir=reverse,
xticklabel style=anchor=-tick-90,
xtick=0,30,60,90,120,150,180,210,240,270,300,330,
xticklabels=N,30,60,E,120,150,S,210,240,W,300,330,
ymin=0,
ymax=90,
ytick=0,10,...,90,
yticklabels=empty
]
node [anchor=center,draw,circle,black,fill=GPS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:30,90-80) tinyG30;
node [anchor=center,draw,circle,black,fill=GAL_Color,minimum size=3ex,inner sep=0pt] at (axis cs:280,90-10) tinyE01;
node [anchor=center,draw,circle,black,fill=GLO_Color,minimum size=3ex,inner sep=0pt] at (axis cs:150,90-89) tinyR13;
node [anchor=center,draw,circle,black,fill=BDS_Color,minimum size=3ex,inner sep=0pt] at (axis cs:210,90-35) tinyC14;
endpolaraxis
endscope
endtikzpicture
enddocument
Output:
PS: I used a filled circle with your center, an ellipse with an appropriate color, center/rotation, some ellipses for "bluring" and cliped the image with a circle using your center and an appropriate radius.
edited 23 mins ago
answered 1 hour ago


koleygr
10.6k1836
10.6k1836
add a comment |Â
add a comment |Â
BigMick is a new contributor. Be nice, and check out our Code of Conduct.
BigMick is a new contributor. Be nice, and check out our Code of Conduct.
BigMick is a new contributor. Be nice, and check out our Code of Conduct.
BigMick 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%2f458160%2fpgfplots-background-color-for-polar-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
+1: Nice MWE and cool use case :)
– Dr. Manuel Kuehner
2 hours ago
Thank you, glad you like it :)
– BigMick
2 hours ago
Just as an inspiration, maybe these Q+As help: tex.stackexchange.com/questions/454970 or tex.stackexchange.com/questions/162889.
– Dr. Manuel Kuehner
1 hour ago
Could you show us the color data array? - First: I think we have to transform the cartesian color coordinate (of the array) into polar cordinates. Secondly: Fill background color with the specific color of the array. Maybe helpful: Creating a Polar Grid with Tikz, Polar plot fill segmented area, Tikz Polar Fill to Origin
– Bobyandbob
1 hour ago