From 1de605fb205246e98f72e428fafa1ed0c44d2d90 Mon Sep 17 00:00:00 2001 From: Luke Naylor <l.naylor@sms.ed.ac.uk> Date: Sun, 11 Jun 2023 17:52:08 +0100 Subject: [PATCH] Fix size issue of characteristic curves plots --- main.tex | 88 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 55 insertions(+), 33 deletions(-) diff --git a/main.tex b/main.tex index afec667..6b05075 100644 --- a/main.tex +++ b/main.tex @@ -121,67 +121,89 @@ $\Delta(v) \geq 0$ and positive rank. \begin{sagesilent} def charact_curves(v): - var("alpha beta") - coords_range = (beta, -10, 10), (alpha, 0, 8) + alpha = stability.Tilt().alpha + beta = stability.Tilt().beta + coords_range = (beta, -4, 5), (alpha, 0, 4) p = ( implicit_plot(stability.Tilt().degree(v), *coords_range ) + line([(mu(v),0),(mu(v),5)], linestyle = "dashed") - + text(r"$ch_2^{\alpha, \beta}(v)=0$",[3.5, 2], rotation=45, fontsize="large") - + text(r"$ch_1^{\alpha, \beta}(v)=0$", [0.45, 1.5], rotation=90, fontsize="large") - + text(r"$ch_2^{\alpha, \beta}(v)=0$", [-2, 2], rotation=-45, fontsize="large") - + text(r"$\nu_{\alpha, \beta}(v)>0$", [-3, 1], rgbcolor="black", fontsize="large") - + text(r"$\nu_{\alpha, \beta}(v)<0$", [-1, 3], rgbcolor="black", fontsize="large") - + text(r"$\nu_{\alpha, \beta}(-v)>0$", [2, 3], rgbcolor="black", fontsize="large") - + text(r"$\nu_{\alpha, \beta}(-v)<0$", [4, 1], rgbcolor="black", fontsize="large") + + text(r"$ch_2^{\alpha, \beta}(v)=0$",[3.5, 2], rotation=45, fontsize="x-large", clip=True) + + text(r"$ch_1^{\alpha, \beta}(v)=0$", [0.45, 1.5], rotation=90, fontsize="x-large", clip=True) + + text(r"$ch_2^{\alpha, \beta}(v)=0$", [-2, 2], rotation=-45, fontsize="x-large", clip=True) + + text(r"$\nu_{\alpha, \beta}(v)>0$", [-3, 1], rgbcolor="black", fontsize="x-large", clip=True) + + text(r"$\nu_{\alpha, \beta}(v)<0$", [-1, 3], rgbcolor="black", fontsize="x-large", clip=True) + + text(r"$\nu_{\alpha, \beta}(-v)>0$", [2, 3], rgbcolor="black", fontsize="x-large", clip=True) + + text(r"$\nu_{\alpha, \beta}(-v)<0$", [4, 1], rgbcolor="black", fontsize="x-large", clip=True) ) p.xmax(5) p.xmin(-4) p.ymax(4) p.axes_labels([r"$\beta$", r"$\alpha$"]) - p.tick_label_color("white") return p v1 = Chern_Char(3, 2, -2) v2 = Chern_Char(3, 2, 2/3) \end{sagesilent} +%\begin{figure} +% \centering +% \sageplot[width=\textwidth]{charact_curves(v1)} +% \caption{} +% \label{fig:charact_curves_vis} +%\end{figure} \begin{figure} \centering -\resizebox{\textwidth}{!}{ -\sageplot{charact_curves(v1)} +\begin{subfigure}{.49\textwidth} + \centering + \sageplot[width=\textwidth]{charact_curves(v1)} + \caption{$\Delta(v)>0$} + \label{fig:charact_curves_vis_bgmvlPos} +\end{subfigure}% +\hfill +\begin{subfigure}{.49\textwidth} + \centering + \sageplot[width=\textwidth]{charact_curves(v2)} + \caption{$\Delta(v)=0$} + \label{fig:charact_curves_vis_bgmlv0} +\end{subfigure} +\caption{ + Characteristic curves ($\chern_i^{\alpha,\beta}(v)=0$) of stability conditions + associated to Chern characters $v$ with $\Delta(v) \geq 0$ and positive rank. } -\caption{capt 1} \label{fig:charact_curves_vis} \end{figure} + \begin{sagesilent} v = Chern_Char(3, 2, -2) u = Chern_Char(1, 0, 0) -alpha = stability.Tilt().alpha -beta = stability.Tilt().beta - -coords_range = (beta, -5, 5), (alpha, 0, 5) - -charact_curve_plot = ( - implicit_plot(stability.Tilt().degree(u), *coords_range , rgbcolor = "red") - + implicit_plot(stability.Tilt().degree(v), *coords_range ) - + line([(mu(v),0),(mu(v),5)], linestyle = "dashed", legend_label = - r"$(3,2\ell,-4\ell^2/2)$") - + line([(mu(u),0),(mu(u),5)], rgbcolor = "red", linestyle = - "dashed", legend_label = r"$(1,0,0)$") - + implicit_plot(stability.Tilt().wall_eqn(u,v)/alpha, - *coords_range , rgbcolor = "black") -) -charact_curve_plot.xmax(1) -charact_curve_plot.xmin(-2) -charact_curve_plot.ymax(1.5) -charact_curve_plot.axes_labels([r"$\beta$", r"$\alpha$"]) +def charact_curve_with_wall_plot(u,v): + alpha = stability.Tilt().alpha + beta = stability.Tilt().beta + + coords_range = (beta, -5, 5), (alpha, 0, 5) + + charact_curve_plot = ( + implicit_plot(stability.Tilt().degree(u), *coords_range , rgbcolor = "red") + + implicit_plot(stability.Tilt().degree(v), *coords_range ) + + line([(mu(v),0),(mu(v),5)], linestyle = "dashed", legend_label = + r"$(3,2\ell,-4\ell^2/2)$") + + line([(mu(u),0),(mu(u),5)], rgbcolor = "red", linestyle = + "dashed", legend_label = r"$(1,0,0)$") + + implicit_plot(stability.Tilt().wall_eqn(u,v)/alpha, + *coords_range , rgbcolor = "black") + ) + charact_curve_plot.xmax(1) + charact_curve_plot.xmin(-2) + charact_curve_plot.ymax(1.5) + charact_curve_plot.axes_labels([r"$\beta$", r"$\alpha$"]) + return charact_curve_plot \end{sagesilent} \begin{figure} \centering - \sageplot[width=\linewidth]{charact_curve_plot} + \sageplot[width=\linewidth]{charact_curve_with_wall_plot(u,v)} \caption{} \label{fig:characteristic-curves-example} \end{figure} -- GitLab