Datasets:
Download code/generate_figure.py from PureOne/Xiorume-Kai-Delta: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/datasets/PureOne/Xiorume-Kai-Delta/resolve/main/code/generate_figure.py
- Command line
-
hf download hf://datasets/PureOne/Xiorume-Kai-Delta/code/generate_figure.py
-
curl -L -o generate_figure.py https://huggingface.co/datasets/PureOne/Xiorume-Kai-Delta/resolve/main/code/generate_figure.py
958 Bytes
| import numpy as np | |
| import matplotlib | |
| matplotlib.use('Agg') | |
| import matplotlib.pyplot as plt | |
| plt.rcParams.update({'font.family':'DejaVu Sans','font.size':10}) | |
| fig,ax=plt.subplots(figsize=(6.5,2.8)) | |
| t=np.linspace(.04,.995,500) | |
| eps=np.exp(-np.exp(1/t)) | |
| for j,y in enumerate([0,np.sqrt(3),2*np.sqrt(3)]): | |
| ax.plot(t,y*eps,lw=2,label=f'positive branch {j+1}') | |
| ax.plot([-1,0],[0,0],color='#162a43',lw=2) | |
| ax.scatter([0],[0],s=30,color='#162a43',zorder=5) | |
| ax.annotate('one negative arm, three positive arms',xy=(0,0),xytext=(-.88,.155), | |
| arrowprops={'arrowstyle':'->','color':'#64748b'},fontsize=9) | |
| ax.set(xlabel=r'parameter $t$',ylabel=r'moving coefficient $a_2$',xlim=(-1,1),ylim=(-.01,.25)) | |
| ax.spines[['top','right']].set_visible(False) | |
| ax.grid(alpha=.15) | |
| ax.legend(frameon=False,fontsize=8,loc='upper left') | |
| fig.tight_layout() | |
| from pathlib import Path | |
| fig.savefig(Path(__file__).resolve().parents[1] / 'proofs' / 'Branches.pdf',bbox_inches='tight') | |