如何缩放 tikz 图

如何缩放 tikz 图

我想放大用命令制作的图表,因为当前比例下的箭头对我来说太短了。但是,我尝试过的选项似乎没有效果。我尝试过、、、、,可能\graph还有scale其他。我正在使用LuaTeX进行编译。我感觉我错过了一些简单的东西。我只想放大它,类似于该选项对其他 tikz 图片所做的操作。sibling distancenode distancenode seplevel distancescale

\documentclass[12pt]{amsart}

\usepackage{tikz}

\usetikzlibrary{arrows,trees,graphs}

\usetikzlibrary{graphdrawing}
\usegdlibrary{trees,force}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

\[ 
\begin{tikzpicture}
    \graph[clockwise=7,math nodes, edges = {double equal sign distance, -implies}] { "p_1", "p_2", "p_3", "p_4", "p_5", "p_6", "p_7"; "p_1" -> "p_2" -> "p_3" -> "p_4" -> "p_5" -> "p_6" -> "p_7" -> "p_1" }; 
\end{tikzpicture}
\]

\end{document}

这是当前输出:

箭很短

谢谢你!

答案1

将选项传递radius=<value>\graph命令。

\documentclass[12pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{arrows,trees,graphs}
\usetikzlibrary{graphdrawing}
\usegdlibrary{trees,force}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}

\begin{tikzpicture}
    \graph[clockwise=7,radius=3cm,math nodes, edges = {double equal sign distance, -implies}] { "p_1", "p_2", "p_3", "p_4", "p_5", "p_6", "p_7"; "p_1" -> "p_2" -> "p_3" -> "p_4" -> "p_5" -> "p_6" -> "p_7" -> "p_1" }; 
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容