Independent customization of satellites in smartdiagram[constellation diagram]
Is it possible to assign independent properties further than colour (through set color list), e.g., shape, border, opacity...to each satellite around the central planet in an independent fashion?
documentclass[9pt]{beamer}
usepackage{smartdiagram}
begin{document}
smartdiagramset{
planet size =2.3cm,
satellite size =1.8cm,
satellite text opacity =1,
set color list ={yellow, cyan, green, red, orange}
}
smartdiagram[constellation diagram]{ SUN , A-STAR, B-STAR, C-STAR, D-STAR, E-STAR }
end{document}
MWE produces 5 satellites around the central planet with user-defined colors. I would like to customize also other properties of each one, e.g. assign different sizes to each one.
smartdiagram
add a comment |
Is it possible to assign independent properties further than colour (through set color list), e.g., shape, border, opacity...to each satellite around the central planet in an independent fashion?
documentclass[9pt]{beamer}
usepackage{smartdiagram}
begin{document}
smartdiagramset{
planet size =2.3cm,
satellite size =1.8cm,
satellite text opacity =1,
set color list ={yellow, cyan, green, red, orange}
}
smartdiagram[constellation diagram]{ SUN , A-STAR, B-STAR, C-STAR, D-STAR, E-STAR }
end{document}
MWE produces 5 satellites around the central planet with user-defined colors. I would like to customize also other properties of each one, e.g. assign different sizes to each one.
smartdiagram
Please provide us with an MWE, i.e. a compilable code that starts withdocumentclass
and ends withend{document}
. Use this MWE to explain in more detail what you want to achieve.
– marmot
Feb 15 at 15:53
add a comment |
Is it possible to assign independent properties further than colour (through set color list), e.g., shape, border, opacity...to each satellite around the central planet in an independent fashion?
documentclass[9pt]{beamer}
usepackage{smartdiagram}
begin{document}
smartdiagramset{
planet size =2.3cm,
satellite size =1.8cm,
satellite text opacity =1,
set color list ={yellow, cyan, green, red, orange}
}
smartdiagram[constellation diagram]{ SUN , A-STAR, B-STAR, C-STAR, D-STAR, E-STAR }
end{document}
MWE produces 5 satellites around the central planet with user-defined colors. I would like to customize also other properties of each one, e.g. assign different sizes to each one.
smartdiagram
Is it possible to assign independent properties further than colour (through set color list), e.g., shape, border, opacity...to each satellite around the central planet in an independent fashion?
documentclass[9pt]{beamer}
usepackage{smartdiagram}
begin{document}
smartdiagramset{
planet size =2.3cm,
satellite size =1.8cm,
satellite text opacity =1,
set color list ={yellow, cyan, green, red, orange}
}
smartdiagram[constellation diagram]{ SUN , A-STAR, B-STAR, C-STAR, D-STAR, E-STAR }
end{document}
MWE produces 5 satellites around the central planet with user-defined colors. I would like to customize also other properties of each one, e.g. assign different sizes to each one.
smartdiagram
smartdiagram
edited Feb 15 at 17:21
Marc Olm
asked Feb 15 at 15:39
Marc OlmMarc Olm
205
205
Please provide us with an MWE, i.e. a compilable code that starts withdocumentclass
and ends withend{document}
. Use this MWE to explain in more detail what you want to achieve.
– marmot
Feb 15 at 15:53
add a comment |
Please provide us with an MWE, i.e. a compilable code that starts withdocumentclass
and ends withend{document}
. Use this MWE to explain in more detail what you want to achieve.
– marmot
Feb 15 at 15:53
Please provide us with an MWE, i.e. a compilable code that starts with
documentclass
and ends with end{document}
. Use this MWE to explain in more detail what you want to achieve.– marmot
Feb 15 at 15:53
Please provide us with an MWE, i.e. a compilable code that starts with
documentclass
and ends with end{document}
. Use this MWE to explain in more detail what you want to achieve.– marmot
Feb 15 at 15:53
add a comment |
1 Answer
1
active
oldest
votes
While you can change all of the satellite shapes in one go by setting the satellite
style via tikzset
(see this answer), no interface is provided for doing so on a satellite-by-satellite basis.
I would recommend drawing the diagram in tikz, without the smartdiagram package which is convenient but does not provide the flexibility you need. Using tikz nodes for each satellite, you can load the shapes.geometric
library and use any of the plethora of shapes from there for any or none of your satellites (refer to section 70 of the tikz manual).
In the below code I define three base tikz styles - one for the sun, one for the satellites and one for the satellite arrows. To actually construct the diagram, I firstly place a pentagon down called frame
and use the anchors defined at its center (frame.center
) and each corner (frame.corner 1
etc.) as positions of the sun and each satellite. I've also made two of the satellites star shaped.
documentclass[9pt]{beamer}
usepackage{tikz}
% usepackage{smartdiagram}
usetikzlibrary{shapes.geometric} % tikz library for node shapes
begin{document}
begin{tikzpicture}
tikzset{sun/.style={circle,
color = black!70,
fill = black!15,
minimum size = 2.75cm,
inner sep = 0.1cm}}
tikzset{satellite/.style={circle,
color = black!70,
minimum size = 1.8cm,
inner sep = 0.1cm}}
tikzset{satellitearrow/.style={-latex,
line width = 0.125cm}}
draw (0,0) node (frame) [shape=regular polygon, minimum size=7cm, rotate=-15] {};
node (sun) at (frame.center) [sun] {SUN};
node (satellitea) at (frame.corner 1) [satellite, fill=yellow!50] {A-STAR};
node (satelliteb) at (frame.corner 2) [satellite, star, inner sep=0cm, fill=blue!50] {B-STAR};
node (satellitec) at (frame.corner 3) [satellite, fill=green!50] {C-STAR};
node (satellited) at (frame.corner 4) [satellite, star, inner sep=0cm, fill=red!50] {D-STAR};
node (satellitee) at (frame.corner 5) [satellite, fill=orange!50] {E-STAR};
draw [satellitearrow, draw=yellow!50] (sun) -- (satellitea);
draw [satellitearrow, draw=blue!50] (sun) -- (satelliteb);
draw [satellitearrow, draw=green!50] (sun) -- (satellitec);
draw [satellitearrow, draw=red!50] (sun) -- (satellited);
draw [satellitearrow, draw=orange!50] (sun) -- (satellitee);
end{tikzpicture}
end{document}
Output:
Obviously you may want to tweak the colours (take a look at LaTeX/Colors if you need ideas).
You have control over a great number of aspects of the diagram. For example, by changing the valueminimum size
and rotate
of the first frame
node you can easily expand/shrink and rotate the diagram without breaking it. You could even make a fun animation using this :).
add a comment |
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%2f475047%2findependent-customization-of-satellites-in-smartdiagramconstellation-diagram%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
While you can change all of the satellite shapes in one go by setting the satellite
style via tikzset
(see this answer), no interface is provided for doing so on a satellite-by-satellite basis.
I would recommend drawing the diagram in tikz, without the smartdiagram package which is convenient but does not provide the flexibility you need. Using tikz nodes for each satellite, you can load the shapes.geometric
library and use any of the plethora of shapes from there for any or none of your satellites (refer to section 70 of the tikz manual).
In the below code I define three base tikz styles - one for the sun, one for the satellites and one for the satellite arrows. To actually construct the diagram, I firstly place a pentagon down called frame
and use the anchors defined at its center (frame.center
) and each corner (frame.corner 1
etc.) as positions of the sun and each satellite. I've also made two of the satellites star shaped.
documentclass[9pt]{beamer}
usepackage{tikz}
% usepackage{smartdiagram}
usetikzlibrary{shapes.geometric} % tikz library for node shapes
begin{document}
begin{tikzpicture}
tikzset{sun/.style={circle,
color = black!70,
fill = black!15,
minimum size = 2.75cm,
inner sep = 0.1cm}}
tikzset{satellite/.style={circle,
color = black!70,
minimum size = 1.8cm,
inner sep = 0.1cm}}
tikzset{satellitearrow/.style={-latex,
line width = 0.125cm}}
draw (0,0) node (frame) [shape=regular polygon, minimum size=7cm, rotate=-15] {};
node (sun) at (frame.center) [sun] {SUN};
node (satellitea) at (frame.corner 1) [satellite, fill=yellow!50] {A-STAR};
node (satelliteb) at (frame.corner 2) [satellite, star, inner sep=0cm, fill=blue!50] {B-STAR};
node (satellitec) at (frame.corner 3) [satellite, fill=green!50] {C-STAR};
node (satellited) at (frame.corner 4) [satellite, star, inner sep=0cm, fill=red!50] {D-STAR};
node (satellitee) at (frame.corner 5) [satellite, fill=orange!50] {E-STAR};
draw [satellitearrow, draw=yellow!50] (sun) -- (satellitea);
draw [satellitearrow, draw=blue!50] (sun) -- (satelliteb);
draw [satellitearrow, draw=green!50] (sun) -- (satellitec);
draw [satellitearrow, draw=red!50] (sun) -- (satellited);
draw [satellitearrow, draw=orange!50] (sun) -- (satellitee);
end{tikzpicture}
end{document}
Output:
Obviously you may want to tweak the colours (take a look at LaTeX/Colors if you need ideas).
You have control over a great number of aspects of the diagram. For example, by changing the valueminimum size
and rotate
of the first frame
node you can easily expand/shrink and rotate the diagram without breaking it. You could even make a fun animation using this :).
add a comment |
While you can change all of the satellite shapes in one go by setting the satellite
style via tikzset
(see this answer), no interface is provided for doing so on a satellite-by-satellite basis.
I would recommend drawing the diagram in tikz, without the smartdiagram package which is convenient but does not provide the flexibility you need. Using tikz nodes for each satellite, you can load the shapes.geometric
library and use any of the plethora of shapes from there for any or none of your satellites (refer to section 70 of the tikz manual).
In the below code I define three base tikz styles - one for the sun, one for the satellites and one for the satellite arrows. To actually construct the diagram, I firstly place a pentagon down called frame
and use the anchors defined at its center (frame.center
) and each corner (frame.corner 1
etc.) as positions of the sun and each satellite. I've also made two of the satellites star shaped.
documentclass[9pt]{beamer}
usepackage{tikz}
% usepackage{smartdiagram}
usetikzlibrary{shapes.geometric} % tikz library for node shapes
begin{document}
begin{tikzpicture}
tikzset{sun/.style={circle,
color = black!70,
fill = black!15,
minimum size = 2.75cm,
inner sep = 0.1cm}}
tikzset{satellite/.style={circle,
color = black!70,
minimum size = 1.8cm,
inner sep = 0.1cm}}
tikzset{satellitearrow/.style={-latex,
line width = 0.125cm}}
draw (0,0) node (frame) [shape=regular polygon, minimum size=7cm, rotate=-15] {};
node (sun) at (frame.center) [sun] {SUN};
node (satellitea) at (frame.corner 1) [satellite, fill=yellow!50] {A-STAR};
node (satelliteb) at (frame.corner 2) [satellite, star, inner sep=0cm, fill=blue!50] {B-STAR};
node (satellitec) at (frame.corner 3) [satellite, fill=green!50] {C-STAR};
node (satellited) at (frame.corner 4) [satellite, star, inner sep=0cm, fill=red!50] {D-STAR};
node (satellitee) at (frame.corner 5) [satellite, fill=orange!50] {E-STAR};
draw [satellitearrow, draw=yellow!50] (sun) -- (satellitea);
draw [satellitearrow, draw=blue!50] (sun) -- (satelliteb);
draw [satellitearrow, draw=green!50] (sun) -- (satellitec);
draw [satellitearrow, draw=red!50] (sun) -- (satellited);
draw [satellitearrow, draw=orange!50] (sun) -- (satellitee);
end{tikzpicture}
end{document}
Output:
Obviously you may want to tweak the colours (take a look at LaTeX/Colors if you need ideas).
You have control over a great number of aspects of the diagram. For example, by changing the valueminimum size
and rotate
of the first frame
node you can easily expand/shrink and rotate the diagram without breaking it. You could even make a fun animation using this :).
add a comment |
While you can change all of the satellite shapes in one go by setting the satellite
style via tikzset
(see this answer), no interface is provided for doing so on a satellite-by-satellite basis.
I would recommend drawing the diagram in tikz, without the smartdiagram package which is convenient but does not provide the flexibility you need. Using tikz nodes for each satellite, you can load the shapes.geometric
library and use any of the plethora of shapes from there for any or none of your satellites (refer to section 70 of the tikz manual).
In the below code I define three base tikz styles - one for the sun, one for the satellites and one for the satellite arrows. To actually construct the diagram, I firstly place a pentagon down called frame
and use the anchors defined at its center (frame.center
) and each corner (frame.corner 1
etc.) as positions of the sun and each satellite. I've also made two of the satellites star shaped.
documentclass[9pt]{beamer}
usepackage{tikz}
% usepackage{smartdiagram}
usetikzlibrary{shapes.geometric} % tikz library for node shapes
begin{document}
begin{tikzpicture}
tikzset{sun/.style={circle,
color = black!70,
fill = black!15,
minimum size = 2.75cm,
inner sep = 0.1cm}}
tikzset{satellite/.style={circle,
color = black!70,
minimum size = 1.8cm,
inner sep = 0.1cm}}
tikzset{satellitearrow/.style={-latex,
line width = 0.125cm}}
draw (0,0) node (frame) [shape=regular polygon, minimum size=7cm, rotate=-15] {};
node (sun) at (frame.center) [sun] {SUN};
node (satellitea) at (frame.corner 1) [satellite, fill=yellow!50] {A-STAR};
node (satelliteb) at (frame.corner 2) [satellite, star, inner sep=0cm, fill=blue!50] {B-STAR};
node (satellitec) at (frame.corner 3) [satellite, fill=green!50] {C-STAR};
node (satellited) at (frame.corner 4) [satellite, star, inner sep=0cm, fill=red!50] {D-STAR};
node (satellitee) at (frame.corner 5) [satellite, fill=orange!50] {E-STAR};
draw [satellitearrow, draw=yellow!50] (sun) -- (satellitea);
draw [satellitearrow, draw=blue!50] (sun) -- (satelliteb);
draw [satellitearrow, draw=green!50] (sun) -- (satellitec);
draw [satellitearrow, draw=red!50] (sun) -- (satellited);
draw [satellitearrow, draw=orange!50] (sun) -- (satellitee);
end{tikzpicture}
end{document}
Output:
Obviously you may want to tweak the colours (take a look at LaTeX/Colors if you need ideas).
You have control over a great number of aspects of the diagram. For example, by changing the valueminimum size
and rotate
of the first frame
node you can easily expand/shrink and rotate the diagram without breaking it. You could even make a fun animation using this :).
While you can change all of the satellite shapes in one go by setting the satellite
style via tikzset
(see this answer), no interface is provided for doing so on a satellite-by-satellite basis.
I would recommend drawing the diagram in tikz, without the smartdiagram package which is convenient but does not provide the flexibility you need. Using tikz nodes for each satellite, you can load the shapes.geometric
library and use any of the plethora of shapes from there for any or none of your satellites (refer to section 70 of the tikz manual).
In the below code I define three base tikz styles - one for the sun, one for the satellites and one for the satellite arrows. To actually construct the diagram, I firstly place a pentagon down called frame
and use the anchors defined at its center (frame.center
) and each corner (frame.corner 1
etc.) as positions of the sun and each satellite. I've also made two of the satellites star shaped.
documentclass[9pt]{beamer}
usepackage{tikz}
% usepackage{smartdiagram}
usetikzlibrary{shapes.geometric} % tikz library for node shapes
begin{document}
begin{tikzpicture}
tikzset{sun/.style={circle,
color = black!70,
fill = black!15,
minimum size = 2.75cm,
inner sep = 0.1cm}}
tikzset{satellite/.style={circle,
color = black!70,
minimum size = 1.8cm,
inner sep = 0.1cm}}
tikzset{satellitearrow/.style={-latex,
line width = 0.125cm}}
draw (0,0) node (frame) [shape=regular polygon, minimum size=7cm, rotate=-15] {};
node (sun) at (frame.center) [sun] {SUN};
node (satellitea) at (frame.corner 1) [satellite, fill=yellow!50] {A-STAR};
node (satelliteb) at (frame.corner 2) [satellite, star, inner sep=0cm, fill=blue!50] {B-STAR};
node (satellitec) at (frame.corner 3) [satellite, fill=green!50] {C-STAR};
node (satellited) at (frame.corner 4) [satellite, star, inner sep=0cm, fill=red!50] {D-STAR};
node (satellitee) at (frame.corner 5) [satellite, fill=orange!50] {E-STAR};
draw [satellitearrow, draw=yellow!50] (sun) -- (satellitea);
draw [satellitearrow, draw=blue!50] (sun) -- (satelliteb);
draw [satellitearrow, draw=green!50] (sun) -- (satellitec);
draw [satellitearrow, draw=red!50] (sun) -- (satellited);
draw [satellitearrow, draw=orange!50] (sun) -- (satellitee);
end{tikzpicture}
end{document}
Output:
Obviously you may want to tweak the colours (take a look at LaTeX/Colors if you need ideas).
You have control over a great number of aspects of the diagram. For example, by changing the valueminimum size
and rotate
of the first frame
node you can easily expand/shrink and rotate the diagram without breaking it. You could even make a fun animation using this :).
answered Feb 15 at 22:11
Pippip19Pippip19
1,2838
1,2838
add a comment |
add a comment |
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%2f475047%2findependent-customization-of-satellites-in-smartdiagramconstellation-diagram%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
Please provide us with an MWE, i.e. a compilable code that starts with
documentclass
and ends withend{document}
. Use this MWE to explain in more detail what you want to achieve.– marmot
Feb 15 at 15:53