- gnuplot Cookbook
- Lee Phillips
- 231字
- 2021-08-20 15:42:54
Plotting circles
This recipe will introduce gnuplot's ability to place objects at locations specified in a datafile or by mathematical functions, and to define their properties dynamically to convey information about the data. The following figure shows how gnuplot plots circles:

Getting ready
We have provided a datafile called parabolaCircles.text
, which is similar to the parabola.text
file that we created previously with gnuplot's help, but with a third column that consists of some random numbers. Make sure this file is in your current directory so that gnuplot can find it. Alternatively, use any datafile you like with three columns.
How to do it…
Enter the following script to make a circle plot:
set key off plot "parabolaCircles.text" with circles
How it works…
For each point in the datafile, we get a circle with a radius determined by the number in the third column. Here the radii are random, but in practice you can encode some value of interest in the radii, in effect providing a way to plot two values for each point on the x-axis.
For example, the y coordinate can represent a measurement and the radii can indicate the uncertainty in the measurement; or we can get meteorological data and can plot temperature versus time, with the circle radius representing humidity.
The first line in the script turns off the legend that otherwise gnuplot adds by default.
- 計算機組成原理與接口技術:基于MIPS架構實驗教程(第2版)
- 在你身邊為你設計Ⅲ:騰訊服務設計思維與實戰
- Python數據分析與挖掘實戰
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- Creating Mobile Apps with Sencha Touch 2
- 新型數據庫系統:原理、架構與實踐
- 大數據導論
- Libgdx Cross/platform Game Development Cookbook
- 城市計算
- SQL Server 2012數據庫管理教程
- 算法設計與分析
- 數據分析思維:產品經理的成長筆記
- Kubernetes快速進階與實戰
- Trino權威指南(原書第2版)
- 數據庫高效優化:架構、規范與SQL技巧