图1

图1

我有两幅eps图,我想放大这两幅图中的标签和(图 1)以及和(图 2)的字体大小。这些标签应该具有相同Dimension 1Dimension 2大小Dimension 1Dimension 2Frequency

图1

在此处输入图片描述

图 2

在此处输入图片描述

\begin{figure}[H]        
        \centering
        \subfloat[Polygonal scatterplot]{\includegraphics[scale = 0.62]{scatter_price.eps}\label{fig:scatter_price}}
        %\hspace*{-2em}    
        \subfloat[Histogram]{\includegraphics[scale = 0.4, trim = 1cm 2cm 1cm 1cm, clip]{hist_price.eps}\label{fig:hist_longair}}
    \caption{Histogram and symbolic scatterplot of response variable} 
\label{descriptive1}
\end{figure}

答案1

只是想法:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{float}
\usepackage{subfig}

\begin{document}

\begin{figure}[H]      
        \centering
        \subfloat[Polygonal scatterplot]{\begin{tikzpicture}
        \node at (0,0) {\includegraphics[scale = 0.62]{fig1.png}}; % ADDING OUR PICTURE HERE 
        \fill[color=white] (-3.3,-1.5)--(-2.95,-1.5)--(-2.95,1.5)--(-3.3,1.5)--cycle; %HIDING OLD LABEL HERE WITH A RECTANGLE FILLED WHITE
        \node[rotate=90] at (-3.1,0) {\normalsize Dimension 2}; % ADDING NEW LABEL HERE WITH OUR CHOICE OF FONTSIZE (rotate starts from "3 o clock" and goes counterclockwise) 
        \end{tikzpicture}\label{fig:scatter_price}}
        %\hspace*{-2em}    
        \subfloat[Histogram]{\begin{tikzpicture}
        \node at (0,0) {\includegraphics[scale = 0.4, trim = 1cm 2cm 1cm 1cm, clip]{fig2.png}};
        \end{tikzpicture}\label{fig:hist_longair}}
    \caption{Histogram and symbolic scatterplot of response variable} 
\label{descriptive1}
\end{figure}

\end{document}

结果:在此处输入图片描述

正如你所看到的,由于文件格式不同,结果已经与你的不同(我的是从你的帖子中复制的 png)

建议:尝试在矩形中使用红色,直到“删除旧标签”才能更好地看到它。

相关内容