그려야 할 현과 하프

그려야 할 현과 하프

아래 손으로 그린 ​​그림과 비슷한 그림을 그리고 싶습니다.

구함

라벨 이 있는 $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, $\Psi_{L,S}$, $a_2$, $b_N : \mathbb{N}^{*} \setminus \mathbb{N}$, $-t$$t + 1$.$\Psi_{L,H}$

세 개의 점선 그림은 모두 다음과 같아야 합니다.

수배2

숫자 레이블은 없지만 해당 끝점 레이블이 있습니다.

두 번째 그림을 그리려면 이전 게시물을 참조하세요.붕괴되는 값의 막대 그래프를 그리는 방법은 무엇입니까?

길이는 1/3, 1/9, 1/9, 1/27, 1/27, 1/27 및 1/27입니다.

간결한 코드가 있으면 매우 감사하겠습니다.

답변1

한 가지 옵션:

\documentclass{article}
\usepackage{amssymb}
\usepackage{tikz}

\newlength\mylen
\setlength\mylen{3pt}

\newcommand\Mdot{%
  \hspace*{2pt}\rule{1pt}{.4pt}\hspace*{2pt}}
\newcommand\Mrule[1]{\rule{#1}{0.4pt}}
\newcommand\MDot{\Mdot\Mrule{\mylen}\Mdot}
\newcommand\MSet{%
  \rule[-4pt]{.4pt}{8pt}%
  \MDot\Mrule{3\mylen}%
  \MDot\Mrule{9\mylen}%
  \MDot\Mrule{27\mylen}%
  \MDot\Mrule{9\mylen}%
  \MDot\Mrule{3\mylen}%
  \MDot%
  \rule[-4pt]{.4pt}{8pt}%
}

\begin{document}

\begin{tikzpicture}
\node[inner sep=0pt,anchor=west] (topset)
  {\MSet};
\node at ([yshift=-10pt]topset.west) {$0$};  
\node at ([yshift=-10pt]topset.east) {$1$};
\node at ([yshift=-25pt]topset.east) {$\Psi_{L,H}$};
\begin{scope}[yshift=-3cm]
\foreach \Pos/\Len in {0/3cm,1/2cm,2/2cm,3/1cm,4/1cm,5/1cm,6/1cm}
  \draw[|-|] (\Pos,0) -- ++(0,-\Len); 
\node at (6.8cm,-0.5cm) {$\dots$};
\end{scope}   
\begin{scope}[yshift=-9cm]
\node[inner sep=0pt,anchor=west] (middleset)
  {\MSet};
\node at ([yshift=-10pt]middleset.west) {$-\varepsilon$};  
\node at ([yshift=-10pt]middleset.east) {$1+\varepsilon$};
\node at ([yshift=-25pt]middleset.east) {$\Psi_{L,H}$};
\end{scope}
\begin{scope}[yshift=-14cm]
\node[inner sep=0pt,anchor=west] (bottomset)
  {\MSet};
\node at ([yshift=-10pt]bottomset.west) {$-t$};  
\node at ([yshift=-10pt]bottomset.east) {$t+1$};
\node at ([yshift=-25pt]bottomset.east) {$\Psi_{L,H}$};
\end{scope}

\draw[->] 
  ([yshift=-1cm]topset.center) -- node[right] {$a_{1}$} ++(0,-1cm);
\node at 
  ([yshift=2.5cm]middleset.center) {$\ell +2\varepsilon$};
\draw[->] 
  ([yshift=2cm]middleset.center) -- node[right] {$b_{1}$} ++(0,-1cm);
\draw[->] 
  ([yshift=-1cm]middleset.center) -- node[right] {$a_{2}$} ++(0,-1cm);
\node[rotate=90] at ([yshift=-2.5cm]middleset.center) {$\dots$};  
\draw[->] 
  ([yshift=-3cm]middleset.center) -- node[right] {$b_{N}:N\in\mathbb{N}\sp{\ast}\setminus\mathbb{N}$} ++(0,-1cm);
\end{tikzpicture}

\end{document}

여기에 이미지 설명을 입력하세요

답변2

@Gonzalo와 동일한 아이디어, 약간 다른 구현, 레이블 및 줄임표가 있습니다.

\documentclass{standalone}

\usepackage{tikz,amssymb}
\usetikzlibrary{calc}

\begin{document}

\begin{tikzpicture}
%% Horizontal sections
% Bottom section
\node (-t) at (0,0) {$-t$};
\node (t1) at (6,0) {$t+1$};
\draw (0,.3)--(0,.8) (6,.3)--(6,.8);
\draw (.1,.55)--(5.9,.55);
\foreach \x in {.15,.55,1.25,1.65}{
  \draw[fill=black,draw=white,line width=2pt] (\x,.55) circle (.05);
  \draw[fill=black,draw=white,line width=2pt] (6-\x,.55) circle (.05);
}
\node at (5,-.5) {$\psi_{L,S}$};
% First middle section
\begin{scope}[shift={(0,4.5)}]
\node (-e) at (0,0) {$-\varepsilon$};
\node (e1) at (6,0) {$\varepsilon+1$};
\draw (0,.3)--(0,.8) (6,.3)--(6,.8);
\draw (.1,.55)--(5.9,.55);
\foreach \x in {.15,.55,1.25,1.65}{
  \draw[fill=black,draw=white,line width=2pt] (\x,.55) circle (.05);
  \draw[fill=black,draw=white,line width=2pt] (6-\x,.55) circle (.05);
}
\node at (5,-.5) {$\psi_{L,S}$};
\end{scope}
% Second middle section
\begin{scope}[shift={(0,10)}]
\draw[|-|] (0,0)--(0,-2.5);
\draw[|-|] (.5,0)--(.5,-1.25);
\draw[|-|] (1,0)--(1,-1.25);
\draw[|-|] (1.5,0)--(1.5,-.625);
\draw[|-|] (2,0)--(2,-.625);
\draw[|-|] (2.5,0)--(2.5,-.625);
\draw[|-|] (3,0)--(3,-.625);
\node at (3.5,-.3125) {$\cdots$};
\node at (5,-1.3) {$\psi_{L,H}$};
\node at (1,-2.5) {$\varphi + 2\varepsilon$};
\coordinate (b0) at (0,0);
\coordinate (b1) at (6,0);
\end{scope}
% Top 
\begin{scope}[shift={(0,12)}]
\node (0) at (0,0) {0};
\node (1) at (6,0) {1};
\draw (0,.3)--(0,.8) (6,.3)--(6,.8);
\draw (.1,.55)--(5.9,.55);
\foreach \x in {.15,.55,1.25,1.65}{
  \draw[fill=black,draw=white,line width=2pt] (\x,.55) circle (.05);
  \draw[fill=black,draw=white,line width=2pt] (6-\x,.55) circle (.05);
}
\node at (5,-.5) {$\psi_{L,S}$};
\end{scope}
%% Arrows
\draw[->,shorten >=.5cm] ($(0)!.5!(1)$) to node[right=5pt,pos=.45] {$a_1$} ($(b0)!.5!(b1)$);
\draw[->,shorten <=3cm,shorten >=1cm] ($(b0)!.5!(b1)$) to node[right=5pt,pos=.7] {$b_1$} ($(-e)!.5!(e1)$);
\draw[->] ($(-e)!.5!(e1)$) to node[right=5pt] {$a_2$} +(270:1.2);
\node at ($($(-e)!.5!(e1)$)!.33!($(-t)!.5!(t1)$)$) {$\vdots$};
\draw[->] ($($(-e)!.5!(e1)$)+(270:2)$) to node[right=5pt] {$b_N; N\in \mathbb N^*\setminus\mathbb N'$} +(270:1.2);
\end{tikzpicture}

\end{document}

다음과 같습니다:

여기에 이미지 설명을 입력하세요

빠른 편집:점선을 줄임표로 변경하고 위치를 조정했습니다.

관련 정보