dot: graph is too large for cairo-renderer bitmaps.如何使得Graphviz不进行缩放
时间: 2023-12-14 08:38:05 浏览: 550
你可以尝试使用Graphviz的命令行选项来设置输出图像的分辨率,以避免缩放。具体来说,你可以使用`-Gdpi`选项来设置DPI(每英寸点数),例如:
```
dot -Tpng -Gdpi=300 input.dot -o output.png
```
这将生成一个分辨率为300 DPI的PNG图像,可以适应大多数打印和显示需求。你可以适当调整DPI值来平衡图像质量和文件大小。
相关问题
PermissionError: [Errno 13] Permission denied: './graph/graph2023-03-30-174100.pickle'
This error occurs when the script or program you are running is trying to write or save a file to a location where it does not have the necessary permissions.
To fix this error, you can try the following steps:
1. Check if the file or directory already exists and if it is being used by another program.
2. Ensure that you have the necessary permissions to write to the specified location. If you are running the script as a user with limited permissions, try running it with administrative privileges.
3. If the file or directory is being used by another program, close that program or process and try again.
4. Try specifying a different file path or location to save the file.
Once you have resolved the permission issue, you should be able to save the file without any errors.
(auto) [lzx@localhost git-2.30.8]$ make CC fuzz-commit-graph.o In file included from object-store.h:4, from commit-graph.h:5, from fuzz-commit-graph.c:1: cache.h:21:10: 致命错误:zlib.h:没有那个文件或目录 21 | #include <zlib.h> | ^~~~~~~~ 编译中断。 make: *** [Makefile:2436:fuzz-commit-graph.o] 错误 1
这个错误提示是缺失 zlib 库,你需要安装 zlib 库,然后再重新编译。如果你是在 Linux 上,可以使用以下命令安装 zlib 库:
```
sudo apt-get install zlib1g-dev
```
如果你是在 macOS 上,可以使用以下命令安装 zlib 库:
```
brew install zlib
```
安装完之后,再重新编译即可。
阅读全文