Could anyone help me to figure out hot to format the following figures?
Code: Select all
\documentclass{article}
\usepackage{graphics,eurosym,latexsym}
\usepackage{times}
\usepackage{listings}
\usepackage{mathtools}
\lstset{columns=fixed,basicstyle=\ttfamily,numbers=left,numberstyle=\tiny,stepnumber=5,breaklines=true}
\bibliographystyle{plain}
\oddsidemargin=0cm
\evensidemargin=0cm
\usepackage{pst-all}
\usepackage{enumerate}
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\I}{\item}
\newcommand{\ty}{\texttt}
\textwidth=16cm
\textheight=22cm
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,chains}
\usepackage{pgfplots}
\usepackage{verbatim}
\usetikzlibrary{calc}
\usepackage{amsthm}
\newtheorem{defn}{Definition}
\newtheorem{fac}{Fact}
\newtheorem{thm}{Theorem}
\newtheorem{problem}{Problem}
\newtheorem{lem}{Lemma}
\newtheorem{mdl}{Model}
\newtheorem{condition}{Condition}
\newtheorem{fc}{Fact}
\usepackage{latexsym}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{qtree}
\usepackage{graphicx}
\usepackage{epsf}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage{xcolor}
\usepackage{amsfonts}
\newlength{\mylen}
\addtolength{\mylen}{\baselineskip}
\addtolength{\mylen}{8pt}
\newcommand\myvspace{\rule{0pt}{1pt}\vspace*{-\mylen}}
\begin{document}
\begin{figure}
\begin{minipage}[p]{0.5\linewidth}
\begin{tikzpicture}[scale=0.5]
\draw[|<->|,
> = latex,
line width = .3pt] (-6,3)--
(-6,7.7)node[midway,
left]{\it $A[i]$};
\draw[|<->|,
> = latex,
line width = .3pt] (-4,3.5)--
(3.5,3.5)node[midway,
above]{\it $x$};
\path[draw] (-5,3) node [left] {$S$}
-- (-4,3) coordinate (A) node [below left] {$i$}
-- (4, 3) coordinate (E) node [below] {$i+x+1$}
-- (5, 3)
;
\draw (2,3) node {$\bigotimes$};
\draw (2,0) node {$\bigotimes$};
\draw (2,-3) node {$\diamondsuit$};
\draw (0,3) node {$\diamondsuit$};
\draw (0,0) node {$\bigotimes$};
\draw (0,-3) node {$\diamondsuit$};
\draw (4.5,3) node {$\bigodot$};
\draw (4.5,0) node {$\bigotimes$};
\draw (4.5,-3) node {$\diamondsuit$};
\end{tikzpicture}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[p]{0.5\linewidth}
\begin{tikzpicture}[scale=0.5]
\draw[|<->|,
> = latex,
line width = .3pt] (-4,3.5)--
(3.5,3.5)node[midway,
above]{\it $x$};
\draw[|<->|,
> = latex,
line width = .3pt] (-6,3)--
(-6,7.7)node[midway,
left]{\it $A[i]$};
\path[draw] (-5,3) node [left] {$S$}
-- (-4,3) coordinate (A) node [below left] {$i$}
-- (4, 3) coordinate (E) node [below] {$i+x+1$}
-- (5, 3)
;
\draw (2,3) node {$\bigotimes$};
\draw (2,0) node {$\bigotimes$};
\draw (2,-3) node {$\diamondsuit$};
\draw (0,3) node {$\diamondsuit$};
\draw (0,0) node {$\bigotimes$};
\draw (0,-3) node {$\diamondsuit$};
\draw (4.5,3) node {$\bigodot$};
\draw (4.5,0) node {$\bigotimes$};
\draw (4.5,-3) node {$\diamondsuit$};
\end{tikzpicture}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[p]{0.5\linewidth}
\begin{tikzpicture}[scale=0.5]
\draw[|<->|,
> = latex,
line width = .3pt] (-4,3.5)--
(3.5,3.5)node[midway,
above]{\it $x$};
\draw[|<->|,
> = latex,
line width = .3pt] (-6,3)--
(-6,7.7)node[midway,
left]{\it $A[i]$};
\path[draw] (-5,3) node [left] {$S$}
-- (-4,3) coordinate (A) node [below left] {$i$}
-- (4, 3) coordinate (E) node [below] {$i+x+1$}
-- (5, 3)
;
\draw (2,3) node {$\bigotimes$};
\draw (2,0) node {$\bigotimes$};
\draw (2,-3) node {$\diamondsuit$};
\draw (0,3) node {$\diamondsuit$};
\draw (0,0) node {$\bigotimes$};
\draw (0,-3) node {$\diamondsuit$};
\draw (4.5,3) node {$\bigodot$};
\draw (4.5,0) node {$\bigotimes$};
\draw (4.5,-3) node {$\diamondsuit$};
\end{tikzpicture}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[p]{0.5\linewidth}
\caption{Here is my caption and jvnsdbvf dbfjba djfbdbf asdjfbhjf as dfhasd sdf bsdfsd fhjsvdhf sdfsdf fsd fhv ef ehjfzwef uwebfzhef sdvfzuweh fzef bsd fgvw efrbwefzwebfb ezbfhwef ev fzuwe vbfrzg bwezuifbhwe vbfhwe fwehjv fzh wevbfr bwehjfbhwebf hweb } \label{fig:pp}
\end{minipage}
\end{figure}
\end{document}
so :
Fig1 Fig2
Fig3 Capt
Thank you
baxy