您好,我有一个类似下面的块,我想将标签更改为以下颜色(变为蓝色)。您能帮我吗?谢谢
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tikz}
\usepackage{verbatim}
\begin{document}
\usetikzlibrary{shapes,arrows.meta,decorations, positioning, arrows.meta, calc, shapes.geometric}
\tikzset{block/.style={draw, fill=blue!15, rectangle, minimum height=1.7em, minimum width=2em},
cell/.style={rectangle, rounded corners=5mm, fill=green!15, draw,very thick,}}
\begin{tikzpicture}[auto]
\node [cell, minimum height =6.7cm, minimum width=7.2cm, label={[above, very thick, font = \large]
\textbf{ABC}}](celll) at (3.5,-2.7){} ;
\end{tikzpicture}
\end{document}
\end{document}
答案1
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzset{cell/.style={rectangle, rounded corners=5mm, fill=green!15, draw,very thick,}}
\begin{tikzpicture}[auto]
\node [cell, minimum height =6.7cm, minimum width=7.2cm,
label={[font = \large\bfseries,rotate=-90,anchor=south]right:ABC}](celll) at (3.5,-2.7){} ;
\end{tikzpicture}
\end{document}
答案2
同样的答案重新塑造
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzset{
cell/.style={
rectangle, rounded corners=5mm, fill=green!15, draw,very thick,minimum height =6.7cm, minimum width=7.2cm, },
every label/.style={
font=\large\bfseries, rotate=-90, anchor=south}
}
\begin{tikzpicture}[auto]
\node [cell, label=0:zero](){} ;
\end{tikzpicture}
\end{document}