Я пытаюсь добавить supylabel к двум подграфикам в matplotlib и экспортировать результат как .pgf. Однако supylabel явно не центрирован.
Это код Python:
fig, axes = pyplot.subplots(
2,
1,
figsize=(3, 3),
squeeze=True,
sharex=True,
sharey=True,
layout="constrained"
)
xy = numpy.linspace(-80, 70)
z = numpy.zeros((len(xy), len(xy)))
supylabel_text = fig.supylabel("Super-y axis label")
for i in range(2):
ax: pyplot.Axes = axes[i]
im = ax.pcolormesh(
xy, xy, z, shading="gouraud", rasterized=True
)
ax.set_aspect("equal")
# Remove all ticks and labels, see comment.
# ax.get_xaxis().set_visible(False)
# ax.get_yaxis().set_visible(False)
fig.savefig("test_supy.pgf")
fig.savefig("test_supy.pgf.pdf")
Это рисунок, визуализированный внутри латексного документа:
Очевидно, что надстрочная метка висит слишком низко. Интересно, что в PDF-файле, который также экспортирован из приведенного выше кода, он размещен правильно:
\begingroup%
\makeatletter%
\begin{pgfpicture}%
\pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{3.000000in}{3.000000in}}%
\pgfusepath{use as bounding box, clip}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetmiterjoin%
\definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.000000pt}%
\definecolor{currentstroke}{rgb}{1.000000,1.000000,1.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{3.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{3.000000in}{3.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{3.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathclose%
\pgfusepath{fill}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetmiterjoin%
\definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.000000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetstrokeopacity{0.000000}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.984049in}{1.681793in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{1.681793in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{2.958330in}}%
\pgfpathlineto{\pgfqpoint{0.984049in}{2.958330in}}%
\pgfpathlineto{\pgfqpoint{0.984049in}{1.681793in}}%
\pgfpathclose%
\pgfusepath{fill}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsys@transformshift{0.980000in}{1.680000in}%
\pgftext[left,bottom]{\includegraphics[interpolate=true,width=1.280000in,height=1.280000in]{test_supy-img0.png}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{1.239357in}{1.681793in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{1.664869in}{1.681793in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{2.090381in}{1.681793in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{1.937100in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.602071in, y=1.884339in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{2.362613in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.798462in, y=2.309851in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{2.788125in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.710096in, y=2.735364in, left, b a s e ] { \ c o l o r { t e x t c o l o r } { \ s f f a m i l y \ f o n t s i z e { 1 0 . 0 0 0 0 0 0 } { 1 2 . 0 0 0 0 0 0 } \ s e l e c t f o n t \ c a t c o d e ` \ ^ = \ a c t i v e \ d e f ^ { \ i f m m o d e \ s p \ e l s e \ ^ { } \ f i } \ c a t c o d e ` \ % = \ a c t i v e \ d e f % { \ % } 5 0 } } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t b u t t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ d e f i n e c o l o r { c u r r e n t f i l l } { r g b } { 1 . 0 0 0 0 0 0 , 1 . 0 0 0 0 0 0 , 1 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t f i l l c o l o r { c u r r e n t f i l l } % < b r / > \ p g f s e t l i n e w i d t h { 0 . 0 0 0 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e}%
\pgfsetstrokeopacity{0.000000}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{0.273305in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}%
\pgfpathlineto{\pgfqpoint{0.984049in}{1.549842in}}%
\pgfpathlineto{\pgfqpoint{0.984049in}{0.273305in}}%
\pgfpathclose%
\pgfusepath{fill}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsys@transformshift{0.980000in}{0.270000in}%
\pgftext[left,bottom]{\includegraphics[interpolate=true,width=1.280000in,height=1.280000in]{test_supy-img1.png}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{1.239357in}{0.273305in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=1.239357in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{1.664869in}{0.273305in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=1.664869in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{2.090381in}{0.273305in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=2.090381in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}50}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{0.528612in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.602071in, y=0.475851in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{0.954125in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.798462in, y=0.901363in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetbuttcap%
\pgfsetroundjoin%
\definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetfillcolor{currentfill}%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{%
\pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}%
\pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}%
\pgfusepath{stroke,fill}%
}%
\begin{pgfscope}%
\pgfsys@transformshift{0.984049in}{1.379637in}%
\pgfsys@useobject{currentmarker}{}%
\end{pgfscope}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.710096in, y=1.326875in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}50}}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetrectcap%
\pgfsetmiterjoin%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}%
\pgfpathlineto{\pgfqpoint{0.984049in}{1.549842in}}%
\pgfusepath{stroke}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetrectcap%
\pgfsetmiterjoin%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{2.260586in}{0.273305in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}%
\pgfusepath{stroke}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetrectcap%
\pgfsetmiterjoin%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{0.273305in}}%
\pgfusepath{stroke}%
\end{pgfscope}%
\begin{pgfscope}%
\pgfsetrectcap%
\pgfsetmiterjoin%
\pgfsetlinewidth{0.803000pt}%
\definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{currentstroke}%
\pgfsetdash{}{0pt}%
\pgfpathmoveto{\pgfqpoint{0.984049in}{1.549842in}}%
\pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}%
\pgfusepath{stroke}%
\end{pgfscope}%
\begin{pgfscope}%
\definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
\pgfsetstrokecolor{textcolor}%
\pgfsetfillcolor{textcolor}%
\pgftext[x=0.168298in, y=0.761800in, left, base,rotate=90.000000]{\color{textcolor}{\sffamily\fontsize{12.000000}{14.400000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}Super-y axis label}}%
\end{pgfscope}%
\end{pgfpicture}%
\makeatother%
\endgroup%
После удаления всех галочек и меток надпись supylabel по-прежнему смещена:
Я пытаюсь добавить supylabel к двум подграфикам в matplotlib и экспортировать результат как .pgf. Однако supylabel явно не центрирован. Это код Python: [code]fig, axes = pyplot.subplots( 2, 1, figsize=(3, 3), squeeze=True, sharex=True, sharey=True, layout="constrained" )
xy = numpy.linspace(-80, 70) z = numpy.zeros((len(xy), len(xy)))
for i in range(2): ax: pyplot.Axes = axes[i] im = ax.pcolormesh( xy, xy, z, shading="gouraud", rasterized=True ) ax.set_aspect("equal") # Remove all ticks and labels, see comment. # ax.get_xaxis().set_visible(False) # ax.get_yaxis().set_visible(False)
fig.savefig("test_supy.pgf") fig.savefig("test_supy.pgf.pdf") [/code] Это рисунок, визуализированный внутри латексного документа: [img]https://i.sstatic.net/Olj9Xrw1.png[/img]
Очевидно, что надстрочная метка висит слишком низко. Интересно, что в PDF-файле, который также экспортирован из приведенного выше кода, он размещен правильно: [img]https://i.sstatic.net/JpjJm8G2.png[/img]
Это сгенерированный PGF: [code]\begingroup% \makeatletter% \begin{pgfpicture}% \pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{3.000000in}{3.000000in}}% \pgfusepath{use as bounding box, clip}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{1.000000,1.000000,1.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{3.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{3.000000in}{3.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{3.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.984049in}{1.681793in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{1.681793in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{2.958330in}}% \pgfpathlineto{\pgfqpoint{0.984049in}{2.958330in}}% \pgfpathlineto{\pgfqpoint{0.984049in}{1.681793in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsys@transformshift{0.980000in}{1.680000in}% \pgftext[left,bottom]{\includegraphics[interpolate=true,width=1.280000in,height=1.280000in]{test_supy-img0.png}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.239357in}{1.681793in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.664869in}{1.681793in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{2.090381in}{1.681793in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{1.937100in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.602071in, y=1.884339in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{2.362613in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.798462in, y=2.309851in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{2.788125in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.710096in, y=2.735364in, left, b a s e ] { \ c o l o r { t e x t c o l o r } { \ s f f a m i l y \ f o n t s i z e { 1 0 . 0 0 0 0 0 0 } { 1 2 . 0 0 0 0 0 0 } \ s e l e c t f o n t \ c a t c o d e ` \ ^ = \ a c t i v e \ d e f ^ { \ i f m m o d e \ s p \ e l s e \ ^ { } \ f i } \ c a t c o d e ` \ % = \ a c t i v e \ d e f % { \ % } 5 0 } } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 1 . 6 8 1 7 9 3 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t r e c t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ p g f s e t l i n e w i d t h { 0 . 8 0 3 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e } % < b r / > \ p g f s e t d a s h { } { 0 p t } % < b r / > \ p g f p a t h m o v e t o { \ p g f q p o i n t { 0 . 9 8 4 0 4 9 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f p a t h l i n e t o { \ p g f q p o i n t { 2 . 2 6 0 5 8 6 i n } { 2 . 9 5 8 3 3 0 i n } } % < b r / > \ p g f u s e p a t h { s t r o k e } % < b r / > \ e n d { p g f s c o p e } % < b r / > \ b e g i n { p g f s c o p e } % < b r / > \ p g f s e t b u t t c a p % < b r / > \ p g f s e t m i t e r j o i n % < b r / > \ d e f i n e c o l o r { c u r r e n t f i l l } { r g b } { 1 . 0 0 0 0 0 0 , 1 . 0 0 0 0 0 0 , 1 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t f i l l c o l o r { c u r r e n t f i l l } % < b r / > \ p g f s e t l i n e w i d t h { 0 . 0 0 0 0 0 0 p t } % < b r / > \ d e f i n e c o l o r { c u r r e n t s t r o k e } { r g b } { 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 , 0 . 0 0 0 0 0 0 } % < b r / > \ p g f s e t s t r o k e c o l o r { c u r r e n t s t r o k e}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{0.273305in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}% \pgfpathlineto{\pgfqpoint{0.984049in}{1.549842in}}% \pgfpathlineto{\pgfqpoint{0.984049in}{0.273305in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsys@transformshift{0.980000in}{0.270000in}% \pgftext[left,bottom]{\includegraphics[interpolate=true,width=1.280000in,height=1.280000in]{test_supy-img1.png}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.239357in}{0.273305in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.239357in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.664869in}{0.273305in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.664869in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{2.090381in}{0.273305in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=2.090381in,y=0.176083in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}50}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{0.528612in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.602071in, y=0.475851in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}\ensuremath{-}50}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{0.954125in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.798462in, y=0.901363in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.984049in}{1.379637in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.710096in, y=1.326875in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}50}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}% \pgfpathlineto{\pgfqpoint{0.984049in}{1.549842in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{2.260586in}{0.273305in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.984049in}{0.273305in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{0.273305in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.984049in}{1.549842in}}% \pgfpathlineto{\pgfqpoint{2.260586in}{1.549842in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.168298in, y=0.761800in, left, base,rotate=90.000000]{\color{textcolor}{\sffamily\fontsize{12.000000}{14.400000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}Super-y axis label}}% \end{pgfscope}% \end{pgfpicture}% \makeatother% \endgroup% [/code] После удаления всех галочек и меток надпись supylabel по-прежнему смещена:
Я рисовал как обычно, но после сохранения одного из моих графиков в формате PGF и последующей компиляции LaTeX он больше не работал. Насколько мне известно, я ничего не менял, так получилось, что он перестал работать.
Код, который я использую для...
I am struggling to plot my data using pyplot.imshow. I use the 'RdBu_r' colormap, and I need the white color to be at value 1 on a logarithmic scale which is not centered at 1. But how can I do it? I tried 'center=1' which works for seaborn, but...
Я хочу показать список файлов со звездным рейтингом в QTableView. Для этого я использую следующий делегат:
class StarRatingDelegate(QStyledItemDelegate):
def __init__(self, parent=None):
super().__init__(parent)
Я хочу показать список файлов со звездным рейтингом в QTableView. Для этого я использую следующий делегат:
class StarRatingDelegate(QStyledItemDelegate):
def __init__(self, parent=None):
super().__init__(parent)