I'm working with package smartdiagram. Since I can't specify the width of the diagram (or can I...?), I'm using \resizebox
as a workaround. This strategy works fine EXCEPT when I set custom colors (\setcolorbox...
). How does trying to change the color cause all this strange behavior (see the image), and what can I do to fix it?
MWE:
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{smartdiagram}
\begin{document}
\begin{figure}
\centering
\resizebox{.5\linewidth}{!}{%
\smartdiagramset{
bubble node size =3.5cm,
bubble center node font = \small,
bubble node font = \tiny,
distance center/other bubbles = 1cm,
}
\smartdiagram[bubble diagram]{Traffic Flow\\ Problem,Neuroscience,Computer\\Science,Economics,Mathematics,Engineering, Physics}
}%end resizebox
\end{figure}
\begin{figure}
\centering
\resizebox{.5\linewidth}{!}{%
\smartdiagramset{
bubble node size =3.5cm,
bubble center node font = \small,
bubble node font = \tiny,
distance center/other bubbles = 1cm,
set color list = {red!60, yellow!60, orange!60, green!60, purple!60, cyan!60}
}
\smartdiagram[bubble diagram]{Traffic Flow\\ Problem,Neuroscience,Computer\\Science,Economics,Mathematics,Engineering, Physics}
}%end resizebox
\end{figure}
\end{document}